httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject undefined reference to 'testversion'
Date Tue, 06 Jul 2004 19:06:12 GMT
hi all

I can't seem to run 'make test' on current CVS (just sync'd):

gcc -g -O2 -o .libs/testall testall.o  libapreq2_tests.a
../src/.libs/libapreq2.so /apache/2.0/worker/perl-5.8.4/lib/libapr-0.so -lrt
-lm -lcrypt -lnsl -ldl /apache/2.0/worker/perl-5.8.4/lib/libaprutil-0.so
/usr/lib/libgdbm.so /usr/lib/libdb-4.1.so -lpthread /usr/lib/libexpat.so
-Wl,--rpath -Wl,/apache/2.0/worker/perl-5.8.4/lib
testall.o(.rodata+0x4): In function `apr_assert_success':
/src/httpd-apreq-2/t/testall.c:28: undefined reference to `testversion'
collect2: ld returned 1 exit status
make[2]: *** [testall] Error 1

commenting out the testversion entry in the testlist struct makes everything
happy, but short of that I can't figure out what the underlying problem is.

I'm running the gcc that came with fedora core-1 if it helps narrow things down:

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux
Thread model: posix
gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)

oh, and sorry if this has been discussed - I checked the archives and it
doesn't look like anyone has reported this yet, but I haven't been able to
keep up with the recent flurry of activity :)

--Geoff

Mime
View raw message