[stunnel-users] Problems compiling on AIX5.2 -- ld: 0711-317 ERROR: Undefined symbol: .inflateEnd

Claus Lund clund at tax.state.vt.us
Fri Jul 22 17:05:55 CEST 2005


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 at 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




More information about the stunnel-users mailing list