[OPEN-ILS-DEV] OpenSRF error

Carl T. Miller carl at carltm.com
Mon Feb 16 19:24:10 EST 2009


Thanks, Dan.  Adding libmemcache was all it needed.

I'm stuck at another error that I don't understand.
How do I fix an undefined reference to rpl_malloc?

Here is the pertinent output from make.

Making all in libopensrf
make[2]: Entering directory `/opt/opensrf/OpenSRF-1.0.4/src/libopensrf'
/bin/sh ../../libtool --tag=CC   --mode=link gcc -D_LARGEFILE64_SOURCE
-DNDEBUG -pipe -g -Wall -O2 -fPIC -I/opt/opensrf/OpenSRF-1.0.4/include/
-I/usr/include/libxml2/ -I/usr/include/apache2 -I/usr/include/apr-1.0
-DASSUME_STATELESS  -DOSRF_STRICT_PARAMS -rdynamic -fno-strict-aliasing
-DOSRF_JSON_ENABLE_XML_UTILS -g -O2  -R /openils/lib  -o opensrf-c
opensrf.o -lxml2 -ldl -lmemcache -lopensrf -lxml2 -lreadline -lncurses
-lmemcache -ldl
gcc -D_LARGEFILE64_SOURCE -DNDEBUG -pipe -g -Wall -O2 -fPIC
-I/opt/opensrf/OpenSRF-1.0.4/include/ -I/usr/include/libxml2/
-I/usr/include/apache2 -I/usr/include/apr-1.0 -DASSUME_STATELESS
-DOSRF_STRICT_PARAMS -rdynamic -fno-strict-aliasing
-DOSRF_JSON_ENABLE_XML_UTILS -g -O2 -o .libs/opensrf-c opensrf.o
/opt/opensrf/OpenSRF-1.0.4/src/libopensrf/.libs/libopensrf.so -lxml2
-lreadline -lncurses -lmemcache -ldl  -Wl,--rpath -Wl,/openils/lib
/opt/opensrf/OpenSRF-1.0.4/src/libopensrf/.libs/libopensrf.so: undefined
reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [opensrf-c] Error 1
make[2]: Leaving directory `/opt/opensrf/OpenSRF-1.0.4/src/libopensrf'

Any suggestions?

c





More information about the Open-ils-dev mailing list