[Vortex] build issues

Joan Picanyol i Puig lists-vortex at biaix.org
Thu Apr 2 14:26:33 CEST 2009


Hi, 

Attached are two minor changes to configure script (against 1.1.0): one of
them is a documentation nit. The second one is more serious, since it
breaks building without sasl support.

However, there are some other nits: vortex-client needs both tls and
sasl so this kind of limits its usefulness for testing parts of the
library. 

With the following environment (although it should be reproduceable in a
"standard" environment):

 AXL_LIBS="-L/shared/syst/arm9-linux-abtrack/package/host/aspl.es/axl-0.5.6/lib/
 -laxl -lm"
 AXL_CFLAGS=-I/shared/syst/arm9-linux-abtrack/package/host/aspl.es/axl-0.5.6/include/axl
 CC=/package/host/abtrack.it/arm9-linux-toolchain-2.1/prefix/bin/arm-linux-gcc
 LDFLAGS="-L/package/host/abtrack.it/arm9-linux-toolchain-2.1/prefix/arm-linux/lib"
 ~/wd/sources/contrib/vortex/configure
 --prefix=/shared/syst/arm9-linux-abtrack/package/host/aspl.es/vortex-1.1.0
 --disable-http-support --disable-pull-support --disable-tunnel-support
 --disable-xml-rpc-support-gen --disable-xml-rpc-support
 --disable-sasl-support --disable-vortex-log
 --host=armv4tl-unknown-linux-gnu && make

Compile fails at:

/package/host/abtrack.it/arm9-linux-toolchain-2.1/prefix/bin/arm-linux-gcc
-g -O2 -o .libs/vortex-client vortex-client.o
-L/package/host/abtrack.it/arm9-linux-toolchain-2.1/prefix/arm-linux/lib
-L/shared/syst/arm9-linux-abtrack/package/host/aspl.es/axl-0.5.6/lib/
../src/.libs/libvortex-1.1.so -L/lib -lreadline
/shared/syst/arm9-linux-abtrack/package/host/aspl.es/axl-0.5.6/lib/libaxl.so
-lm  -Wl,--rpath
-Wl,/shared/syst/arm9-linux-abtrack/package/host/aspl.es/vortex-1.1.0/lib
-Wl,--rpath
-Wl,/shared/syst/arm9-linux-abtrack/package/host/aspl.es/axl-0.5.6/lib
vortex-client.o(.text+0x1068): In function
`vortex_client_connection_status':
/home/jpicanyol/wd/sources/contrib/vortex/test/vortex-client.c:648:
undefined reference to `vortex_sasl_get_propertie'
vortex-client.o(.text+0x1094):/home/jpicanyol/wd/sources/contrib/vortex/test/vortex-client.c:650:
undefined reference to `vortex_sasl_is_authenticated'
vortex-client.o(.text+0x1130): In function `vortex_client_begin_auth':
/home/jpicanyol/wd/sources/contrib/vortex/test/vortex-client.c:677:
undefined reference to `vortex_sasl_init'
vortex-client.o(.text+0x120c):/home/jpicanyol/wd/sources/contrib/vortex/test/vortex-client.c:718:
undefined reference to `vortex_sasl_set_propertie'
vortex-client.o(.text+0x1254):/home/jpicanyol/wd/sources/contrib/vortex/test/vortex-client.c:725:
undefined reference to `vortex_sasl_set_propertie'
vortex-client.o(.text+0x1270):/home/jpicanyol/wd/sources/contrib/vortex/test/vortex-client.c:731:
undefined reference to `vortex_sasl_set_propertie'
vortex-client.o(.text+0x12a0):/home/jpicanyol/wd/sources/contrib/vortex/test/vortex-client.c:737:
undefined reference to `vortex_sasl_set_propertie'
vortex-client.o(.text+0x12b4):/home/jpicanyol/wd/sources/contrib/vortex/test/vortex-client.c:764:
undefined reference to `vortex_sasl_start_auth_sync'
vortex-client.o(.text+0x12f4):/home/jpicanyol/wd/sources/contrib/vortex/test/vortex-client.c:737:
undefined reference to `vortex_sasl_set_propertie'
vortex-client.o(.text+0x1328):/home/jpicanyol/wd/sources/contrib/vortex/test/vortex-client.c:737:
undefined reference to `vortex_sasl_set_propertie'
vortex-client.o(.text+0x1804): In function `main':
/home/jpicanyol/wd/sources/contrib/vortex/test/vortex-client.c:1101:
undefined reference to `vortex_tls_set_auto_tls'
vortex-client.o(.text+0x1a08):/home/jpicanyol/wd/sources/contrib/vortex/test/vortex-client.c:1112:
undefined reference to `vortex_tls_init'
vortex-client.o(.text+0x1c40):/home/jpicanyol/wd/sources/contrib/vortex/test/vortex-client.c:1118:
undefined reference to `vortex_tls_start_negotiation_sync'
../src/.libs/libvortex-1.1.so: undefined reference to `pthread_create'
../src/.libs/libvortex-1.1.so: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
make[2]: *** [vortex-client] Error 1
make[2]: Leaving directory
`/home/jpicanyol/wd/sources/contrib/vortex/test'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jpicanyol/wd/sources/contrib/vortex'
make: *** [all] Error 2

There's two diferent issues here (I believe). First, test/ is not
modular enough (i.e.: vortex-client needs a complete vortex library).
I'll try to come up with a further ifdef'd version, but I can't promise
anything.

Second there's something going on with -lpthread detection/use
(configure didn't complain...), but that's for another day.

qvb
-- 
pica
-------------- next part --------------
Index: configure
===================================================================
RCS file: /PxU/sources/contrib/vortex/configure,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 configure
--- configure	19 Mar 2009 15:52:21 -0000	1.1.1.1
+++ configure	1 Apr 2009 17:09:23 -0000
@@ -1533,7 +1533,9 @@
   --disable-tls-support     Makes buidling Vortex Library TLS support (OpenSSL required)
   --disable-sasl-support    Makes Vortex Library to be built without SASL support
   --disable-xml-rpc-support    Makes Vortex Library to be built without XML-RPC (RFC3529) support
-  --disable-xml-rpc-gen-tool    Makes Vortex Library to be built without xml-rpc-gen tool
+ --disable-xml-rpc-support-gen Makes Vortex Library to be built without xml-rpc-gen tool
+
+
   --disable-tunnel-support    Makes Vortex Library to be built without TUNNEL (RFC3620) profile support
   --disable-pull-support    Makes Vortex Library to be built without PULL API support
   --disable-http-support    Makes Vortex Library to be built without HTTP CONNECT proxy support
@@ -21227,6 +21229,7 @@
 if test "$enable_sasl_support" = "yes" ; then
       SASL_LIBS=`pkg-config --libs libgsasl`
    SASL_CFLAGS=`pkg-config --cflags libgsasl`
+fi
 
 
 
@@ -21240,7 +21243,6 @@
   ENABLE_SASL_SUPPORT_FALSE=
 fi
 
-fi
 
 # Check whether --enable-xml-rpc-support was given.
 if test "${enable_xml_rpc_support+set}" = set; then


More information about the Vortex mailing list