Ticket #76 (closed defect: fixed)

Opened 20 months ago

Last modified 7 months ago

Compilation problem.

Reported by: dreamcatch Owned by: smoku
Priority: major Component: General
Version: 2.1 Keywords:
Cc: Tracforge_linkmap:
Blocking: Blocked By:

Description

Error after make:

mv -f .deps/c2s-sm.Tpo .deps/c2s-sm.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -Wl,-export-dynamic -L/usr/local/lib/mysql -L/usr/local/lib  -o c2s c2s-authreg.o c2s-bind.o c2s-c2s.o c2s-main.o c2s-sm.o ../sx/libsx.la ../mio/libmio.la ../util/libutil.la ../subst/libsubst.la  -lssl -lcrypto -lgsasl -lidn -lexpat -lresolv
gcc -g -O2 -Wl,-export-dynamic -o c2s c2s-authreg.o c2s-bind.o c2s-c2s.o c2s-main.o c2s-sm.o  -L/usr/local/lib/mysql -L/usr/local/lib ../sx/.libs/libsx.a -L/usr/lib ../mio/.libs/libmio.a ../util/.libs/libutil.a ../subst/.libs/libsubst.a -lssl -lcrypto /usr/lib/libgsasl.so -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err /usr/lib/libidn.so /usr/lib/libexpat.so -lresolv
../sx/.libs/libsx.a(sasl_gsasl.o): In function `_sx_sasl_open':/root/jabberd-2.1.6/sx/sasl_gsasl.c:167: undefined reference to `gsasl_session_hook_get'
../sx/.libs/libsx.a(sasl_gsasl.o): In function `_sx_sasl_client_process':/root/jabberd-2.1.6/sx/sasl_gsasl.c:319: undefined reference to `gsasl_session_hook_set'
../sx/.libs/libsx.a(sasl_gsasl.o): In function `_sx_sasl_gsasl_callback':/root/jabberd-2.1.6/sx/sasl_gsasl.c:609: undefined reference to `gsasl_session_hook_get'
../sx/.libs/libsx.a(sasl_gsasl.o): In function `sx_sasl_auth':/root/jabberd-2.1.6/sx/sasl_gsasl.c:760: undefined reference to `gsasl_session_hook_set'
collect2: ld returned 1 exit status
make[2]: *** [c2s] Error 1
make[2]: Leaving directory `/root/jabberd-2.1.6/c2s'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/jabberd-2.1.6'
make: *** [all] Error 2

Change History

Changed 20 months ago by smoku

  • status changed from new to assigned

Which version of GnuSASL do you have?

Changed 20 months ago by dreamcatch

# gsasl --version gsasl 0.2.5

Changed 20 months ago by smoku

0.2.14 minimum is required.

I've found a bug in configure script, that should check for that.

Changed 20 months ago by smoku

  • status changed from assigned to closed
  • resolution set to fixed

(In [216]) Correct check function for GSASL library. Fixes #76

Changed 20 months ago by lendy

checking gsasl.h usability... yes checking gsasl.h presence... yes checking for gsasl.h... yes checking for gsasl_check_version in -lgsasl... yes checking for GnuSASL version >= 0.2.14... no configure: error: GnuSASL >= 0.2.14 not found [root@localhost jabberd-2.1-20070523]# gsasl -V gsasl 0.2.16 [root@localhost jabberd-2.1-20070523]#

what's wrong?

Changed 20 months ago by lendy

checking gsasl.h usability... yes checking gsasl.h presence... yes checking for gsasl.h... yes checking for gsasl_check_version in -lgsasl... yes checking for GnuSASL version >= 0.2.14... no configure: error: GnuSASL >= 0.2.14 not found [root@localhost jabberd-2.1-20070523]# gsasl -V gsasl 0.2.16 [root@localhost jabberd-2.1-20070523]#

what's wrong?

Changed 20 months ago by smoku

  • status changed from closed to reopened
  • resolution fixed deleted

Where is your gsasl installed? ( 'which gsasl' )

If it's in any non-standard path you will need to use --with-extra-include-path and --with-extra-library-path and update your /etc/ld.so.conf

Changed 20 months ago by smoku

For SunOS 5.10 Generic_118833-36 sun4v sparc SUNW,Sun-Fire-T1000

  • sm/Makefile change sm_LDFLAGS = -Wl,-export-dynamic to sm_LDFLAGS = -Wl , -B dynamic
  • c2s/Makefile change c2s_LDFLAGS = -Wl,-export-dynamic to c2s_LDFLAGS = -Wl , -B dynamic

Is there a way to ./configure it?

Changed 19 months ago by smoku

  • status changed from reopened to closed
  • resolution set to fixed

(In [243]) Fixed dynamic linker detection with libtool. Fixes #76

Note: See TracTickets for help on using tickets.