You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Geoffrey Young <ge...@modperlcookbook.org> on 2004/07/06 21:06:12 UTC

undefined reference to 'testversion'

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

Re: undefined reference to 'testversion'

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Joe Schaefer wrote:
> Geoffrey Young <ge...@modperlcookbook.org> writes:
> 
> [...]
> 
> 
>>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. 
> 
> 
> Run ./buildconf and start over, unless config.nice includes
> 
>   --enable-maintainer-mode

whoops, sorry about that - I should have known better.

anyway, a fresh checkout passes 100% for me :)

--Geoff

Re: undefined reference to 'testversion'

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Geoffrey Young <ge...@modperlcookbook.org> writes:

[...]

> 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. 

Run ./buildconf and start over, unless config.nice includes

  --enable-maintainer-mode

-- 
Joe Schaefer