Hi,

> Somebody tried to help me out but I am still having this problem.
> Can anybody have a solution or suggestion?
(snipp)
> >uname -m = sun4u
> >uname -r = 5.8
> >uname -s = SunOS

So we have an ordering sensitive linker. Looks like it might be my
favourite bug in the configure script: It's appending libraries that are
newly tested instead of prepending them...

(snipp)
> >configure:3542: gcc -o conftest -g -O2 -D_REENTRANT
> >-D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5
> >-I/usr/home/kevin/Build/radiusd/../openssl-0.9.7e/include -Wall
> >-D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align
> >-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> >-Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef
> >-I/usr/home/kevin/Build/radiusd/../openldap-tmp/include conftest.c
> >-lresolv -lnsl -lresolv -lsocket -lposix4 -lpthread -lcrypto -lcrypto
> >-lssl -L/usr/home/kevin/Build/radiusd/../openldap-tmp/lib -llber -lldap >&5
> >conftest.c:10: warning: function declaration isn't a prototype
> >conftest.c:13: warning: function declaration isn't a prototype
> >Undefined first referenced
> >symbol in file
> >ber_flatten2
> >/usr/home/kevin/Build/radiusd/../openldap-tmp/lib/libldap.a(controls.o)
> >ber_dup /usr/home/kevin/Build/radiusd/../openldap-tmp/lib/libldap.a(error.o)
> >ber_get_int
> >/usr/home/kevin/Build/radiusd/../openldap-tmp/lib/libldap.a(result.o)
> >ber_printf
(many more errors snipped)

Yes, it is. ldap library can't find any symbols in the lber library that was
already tested because -lldap is appended after -llber.
As a workaround,
LIBS="-L/usr/home/kevin/Build/radiusd/../openldap-tmp/lib -lldap -llber" 
/configure <all_your_options>
(all in one line) should work.

        HTH,
                Stefan




-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to