Hi everybody,
I am trying to get stunnel 4.11 compiled on my AIX boxes but I am not having much luck. I am using GCC 3.3.2 on AIX 5.2. OpenSSL has been compiled and is working on those same boxes (OpenSSL 0.9.8).
I configured stunnel using: root@tax178:/tmp/stunnel/stunnel-4.11 # ./configure --sysconfdir=/etc/stunnel --prefix=/usr/local --disable-libwrap
And everything seems to go OK during the config steps. When I try to build stunnel it comes up with a series of warnings and eventually dies with a bunch of errors.
First the warnings: "nt.Po"; else rm -f ".deps/client.Tpo"; exit 1; fi client.c: In function `init_local': client.c:178: warning: passing arg 3 of `ngetpeername' from incompatible pointer type client.c: In function `make_sockets': client.c:894: warning: passing arg 3 of `ngetsockname' from incompatible pointer type client.c:902: warning: passing arg 3 of `naccept' from incompatible pointer type client.c: In function `connect_wait': client.c:996: warning: passing arg 5 of `getsockopt' from incompatible pointer type if gcc -DPACKAGE_NAME="stunnel" -D"
"/options.Po"; else rm -f ".deps/options.Tpo"; exit 1; fi options.c: In function `print_socket_options': options.c:1401: warning: passing arg 5 of `getsockopt' from incompatible pointer type if gcc -DPACKAGE_NAME="stunnel" -DPACKAGE_TARNAME="stunnel""
"ps/sthreads.Tpo" ".deps/sthreads.Po"; else rm -f ".deps/sthreads.Tpo"; exit 1; fi sthreads.c: In function `stack_info': sthreads.c:343: warning: int format, long unsigned int arg (arg 4) sthreads.c:343: warning: int format, long unsigned int arg (arg 5) sthreads.c:343: warning: int format, long unsigned int arg (arg 6) sthreads.c:343: warning: int format, long unsigned int arg (arg 7) if gcc -DPACKAGE_NAME="stunnel" -DPACKAGE_TARNAME="stunnel""
"tunnel.Tpo" ".deps/stunnel.Po"; else rm -f ".deps/stunnel.Tpo"; exit 1; fi stunnel.c: In function `accept_connection': stunnel.c:206: warning: passing arg 3 of `naccept' from incompatible pointer type if gcc -DPACKAGE_NAME="stunnel" -DPACKAGE_TARNAME="stunnel""
And then the final errors:
"/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -Wshadow -Wcast-align -Wpointer-arith -I/usr/local/include -o stunnel client.o log.o options.o protocol.o network.o resolver.o ssl.o sthreads.o stunnel.o pty.o -lnsl -ldl -L/usr/local/lib -lssl -lcrypto gcc -g -O2 -Wall -Wshadow -Wcast-align -Wpointer-arith -I/usr/local/include -o stunnel client.o log.o options.o protocol.o network.o resolver.o ssl.o sthreads.o stunnel.o pty.o -lnsl -ldl -L/usr/local/lib -lssl -lcrypto ld: 0711-317 ERROR: Undefined symbol: .inflateEnd ld: 0711-317 ERROR: Undefined symbol: .deflateEnd ld: 0711-317 ERROR: Undefined symbol: .inflateInit_ ld: 0711-317 ERROR: Undefined symbol: .deflateInit_ ld: 0711-317 ERROR: Undefined symbol: .deflate ld: 0711-317 ERROR: Undefined symbol: .inflate ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1."
Hopefully there will be some C/AIX gurus out there who can help me get past this problem...
Thank you in advance, Claus
On 2005-07-22, at 17:05, Claus Lund wrote:
ld: 0711-317 ERROR: Undefined symbol: .inflateEnd ld: 0711-317 ERROR: Undefined symbol: .deflateEnd ld: 0711-317 ERROR: Undefined symbol: .inflateInit_ ld: 0711-317 ERROR: Undefined symbol: .deflateInit_ ld: 0711-317 ERROR: Undefined symbol: .deflate ld: 0711-317 ERROR: Undefined symbol: .inflate ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1."
Hopefully there will be some C/AIX gurus out there who can help me get past this problem...
It looks like you've built your OpenSSL library to use zlib as shared library. Edit your "src/Makefile" and add "-lz" to the line starting with "LIBS =". Please let us know if it helped.
Best regards, Mike
Thank you Mike! That did it. Any chance somebody can change the configure script to detect this and have it create a working Makefile? :-)
-Claus
-----Original Message----- From: stunnel-users-bounces@mirt.net [mailto:stunnel-users-bounces@mirt.net]On Behalf Of Michal Trojnara Sent: Saturday, July 23, 2005 6:26 PM To: stunnel-users@mirt.netstunnel-users@mirt.netstunnel-users@mirt.net Subject: Re: [stunnel-users] Problems compiling on AIX5.2 -- ld: 0711-317ERROR: Undefined symbol: .inflateEnd
On 2005-07-22, at 17:05, Claus Lund wrote:
ld: 0711-317 ERROR: Undefined symbol: .inflateEnd ld: 0711-317 ERROR: Undefined symbol: .deflateEnd ld: 0711-317 ERROR: Undefined symbol: .inflateInit_ ld: 0711-317 ERROR: Undefined symbol: .deflateInit_ ld: 0711-317 ERROR: Undefined symbol: .deflate ld: 0711-317 ERROR: Undefined symbol: .inflate ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1."
Hopefully there will be some C/AIX gurus out there who can help me get past this problem...
It looks like you've built your OpenSSL library to use zlib as shared library. Edit your "src/Makefile" and add "-lz" to the line starting with "LIBS =". Please let us know if it helped.
Best regards, Mike
stunnel-users mailing list stunnel-users@mirt.net http://stunnel.mirt.net/mailman/listinfo/stunnel-users
On Monday 25 of July 2005 13:47, Claus Lund wrote:
Thank you Mike! That did it. Any chance somebody can change the configure script to detect this and have it create a working Makefile? :-)
Sure. Version 4.12 will have updated Makefile.
Best regards, Mike