Re: ipsvd-0.9.4 available
Gerrit Pape <[email protected]>
| Newsgroups | gmane.comp.misc.pape.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Uffe,
On Wed, Jul 07, 2004 at 05:02:03PM +0200, Uffe Jakobsen wrote:
> Building ipsvd-0.9.4 on Sun Solaris gives the following problems:
> ./compile check-tcpsvd.c
> ./load check-tcpsvd unix.a byte.a
> Undefined first referenced
> symbol in file
> socket unix.a(socket_tcp.o)
[...]
> ld: fatal: Symbol referencing errors. No output written to check-tcpsvd
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `check-tcpsvd'
> I think you need to apply the "socket.lib" fix to check-tcpsvd and
> check-udpsvd... :-)
Hrm, again ;-). Thanks.
> Also the package/compile fails without notice
> for i in `cat package/commands` `grep sslio <compile/command.linux`
> sh -cx ": $i"
> rm -f command/$i'{new}'
> cp -p compile/$i command/$i'{new}'
> mv -f command/$i'{new}' command/$i
> done
> The problem is that `grep sslio <compile/command.linux` returns code 1 and
> that terminates the for-loop before it begins.
Funny solaris' /bin/sh, but we should be able to work around it.
> In package/upgrade "mkdir -p /command" fails with errorcode 2 and the
> message 'mkdir: "/command": Exists but is not a directory'
> if /command is a symbolic-link
A symbolic link to a directory I assume. Hopefully test -d follows
symlinks on solaris.
> I'll be happy to test any patch that you produce.
Thanks, please try the attached patch.
Regards, Gerrit.
diff2
(text/plain, 2.5 KB)
Index: src/Makefile
===================================================================
RCS file: /var/lib/cvs/ipsvd/src/Makefile,v
retrieving revision 1.21
diff -u -r1.21 Makefile
--- src/Makefile 19 Jun 2004 14:49:20 -0000 1.21
+++ src/Makefile 8 Jul 2004 17:55:54 -0000
@@ -43,11 +43,11 @@
mv -f matrixConfig.h matrixssl/src/matrixConfig.h
touch matrixssl
-check-tcpsvd: load check-tcpsvd.o unix.a byte.a
- ./load check-tcpsvd unix.a byte.a
+check-tcpsvd: load check-tcpsvd.o unix.a byte.a socket.lib
+ ./load check-tcpsvd unix.a byte.a `cat socket.lib`
-check-udpsvd: load check-udpsvd.o unix.a byte.a
- ./load check-udpsvd unix.a byte.a
+check-udpsvd: load check-udpsvd.o unix.a byte.a socket.lib
+ ./load check-udpsvd unix.a byte.a `cat socket.lib`
check-ipsvd-cdb: load check-ipsvd-cdb.o uint32_unpack.o unix.a byte.a
./load check-ipsvd-cdb uint32_unpack.o unix.a byte.a
Index: package/compile
===================================================================
RCS file: /var/lib/cvs/ipsvd/package/compile,v
retrieving revision 1.3
diff -u -r1.3 compile
--- package/compile 1 May 2004 13:22:08 -0000 1.3
+++ package/compile 8 Jul 2004 17:55:56 -0000
@@ -19,7 +19,7 @@
sh -cx 'cd compile && exec make'
echo 'Copying commands into ./command...'
-for i in `cat package/commands` `grep sslio <compile/command.linux`; do
+for i in `cat package/commands` `grep sslio <compile/command.linux || :`; do
sh -cx ": $i"
rm -f command/$i'{new}'
cp -p compile/$i command/$i'{new}'
Index: package/upgrade
===================================================================
RCS file: /var/lib/cvs/ipsvd/package/upgrade,v
retrieving revision 1.23
diff -u -r1.23 upgrade
--- package/upgrade 19 Jun 2004 14:49:20 -0000 1.23
+++ package/upgrade 8 Jul 2004 17:55:56 -0000
@@ -13,15 +13,15 @@
mv -f ipsvd ..
echo 'Making command links in /command...'
-mkdir -p /command
-for i in `cat package/commands` `grep sslio <compile/command.linux`; do
+test -d /command || mkdir -p /command
+for i in `cat package/commands` `grep sslio <compile/command.linux || :`; do
rm -f /command/$i'{new}'
ln -s $parent/ipsvd/command/$i /command/$i'{new}'
mv -f /command/$i'{new}' /command/$i
done
echo 'Making compatibility links in /usr/local/bin...'
mkdir -p /usr/local/bin
-for i in `cat package/commands` `grep sslio <compile/command.linux`; do
+for i in `cat package/commands` `grep sslio <compile/command.linux || :`; do
rm -f /usr/local/bin/$i'{new}'
ln -s /command/$i /usr/local/bin/$i'{new}'
mv -f /usr/local/bin/$i'{new}' /usr/local/bin/$i