httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pan <>
Subject apxs: error
Date Mon, 11 Mar 2002 06:45:22 GMT
Hi ,

I installed apache 2.0.32 on redhat 7.2. and I generated mod_foo.c using apxs,
but the mod_foo.c was compiled failure. please Help !!!.

[root@redhat7 bin]# ./apxs -g -n foo
Creating [DIR]  foo
Creating [FILE] foo/Makefile
Creating [FILE] foo/
Creating [FILE] foo/mod_foo.c
Creating [FILE] foo/.deps

[root@redhat7 foo]# ../apxs -o -i -c mod_foo.c
/home/panxin/apache/build/libtool --silent --mode=compile gcc -prefer-pic
URCE -D_SVID_SOURCE -g -O2 -pthread -I/home/panxin/apache/include  -c -o
.lo mod_foo.c && touch mod_foo.slo
/home/panxin/apache/build/libtool --silent --mode=link gcc -o -rpath

/home/panxin/apache/modules -module -avoid-version   mod_foo.lo
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): undefined
eference to `main'
mod_foo.o: In function `foo_handler':
/home/panxin/apache/bin/foo/mod_foo.c:54: undefined reference to `ap_rputs'
mod_foo.o: In function `foo_register_hooks':
/home/panxin/apache/bin/foo/mod_foo.c:60: undefined reference to

collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message