[stunnel-users] compilation errors

Greg Matthews gmatt at nerc.ac.uk
Thu Mar 3 12:36:11 CET 2005


On Thu, 2005-03-03 at 11:51 +0100, Michal Trojnara wrote:
> Greg Matthews wrote:
> > it seems socklen_t is undefined as a type on this OS (and also older
> > versions of solaris).
> 
> ftp://stunnel.mirt.net/stunnel/socklen_t.patch
> 
> It will get integrated in the next release.

excellent! compilation almost completes now. It falls over at the
linking stage:

        /bin/sh ../libtool --tag=CC --mode=link cc -n32  -g
-I/usr/local/ssl/include   -L/usr/lib32 -o stunnel   client.o log.o
options.o  protocol.o network.o resolver.o  ssl.o sthreads.o stunnel.o
pty.o  -lpthread -lsocket -lnsl -ldl  -L/usr/local/ssl/lib -lssl
-lcrypto
cc -n32 -g -I/usr/local/ssl/include -o stunnel client.o log.o options.o
protocol.o network.o resolver.o ssl.o sthreads.o stunnel.o pty.o
-L/usr/lib32 -lpthread -lsocket -lnsl -ldl -L/usr/local/ssl/lib -lssl
-lcrypto

<...warnings snipped...>

ld32: ERROR 33: Unresolved text symbol "ENGINE_load_builtin_engines" --
1st referenced by ssl.o.
        Use linker option -v to see when and which objects, archives and
dsos are loaded.
ld32: ERROR 33: Unresolved text symbol "ENGINE_register_all_complete" --
1st referenced by ssl.o.
        Use linker option -v to see when and which objects, archives and
dsos are loaded.
ld32: ERROR 33: Unresolved text symbol "ENGINE_by_id" -- 1st referenced
by ssl.o.
        Use linker option -v to see when and which objects, archives and
dsos are loaded.
ld32: ERROR 33: Unresolved text symbol "ENGINE_init" -- 1st referenced
by ssl.o.        Use linker option -v to see when and which objects,
archives and dsos are loaded.
ld32: ERROR 33: Unresolved text symbol "ENGINE_free" -- 1st referenced
by ssl.o.        Use linker option -v to see when and which objects,
archives and dsos are loaded.
ld32: ERROR 33: Unresolved text symbol "ENGINE_set_default" -- 1st
referenced by ssl.o.
        Use linker option -v to see when and which objects, archives and
dsos are loaded.
ld32: ERROR 33: Unresolved text symbol "ENGINE_finish" -- 1st referenced
by ssl.o.
        Use linker option -v to see when and which objects, archives and
dsos are loaded.
ld32: INFO 152: Output file removed because of error.
*** Error code 2 (bu21)
*** Error code 1 (bu21)

these symbols should be included from engine.h which was found during
configure (/usr/local/ssl/include/openssl/engine.h). I've tried setting
CPPFLAGS to explicitly point to the right directory. Any idea what I can
do here?

here is the relevant o/p from configure:
configure: **************************************** SSL and entropy
checking for SSL directory... /usr/local/ssl
checking /usr/local/ssl/include/openssl/engine.h usability... yes
checking /usr/local/ssl/include/openssl/engine.h presence... yes
checking for /usr/local/ssl/include/openssl/engine.h... yes
checking for "/dev/urandom"... no

I've snipped out the warnings before the above errors as I'm told the
mips compiler complains a lot anyway but let me know if you think they
might be useful (mainly weak definitions).

GREG

> 
> Best regards,
>     Mike
> _______________________________________________
> stunnel-users mailing list
> stunnel-users at mirt.net
> http://stunnel.mirt.net/mailman/listinfo/stunnel-users
-- 
Greg Matthews
iTSS Wallingford        01491 692445




More information about the stunnel-users mailing list