You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by pan <pa...@halcyonsoft.com> on 2002/03/11 07:45:22 UTC

apxs: error

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/modules.mk
Creating [FILE] foo/mod_foo.c
Creating [FILE] foo/.deps

[root@redhat7 foo]# ../apxs -o mod_foo.so -i -c mod_foo.c
/home/panxin/apache/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_
HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500
-D_BSD_SO
URCE -D_SVID_SOURCE -g -O2 -pthread -I/home/panxin/apache/include  -c -o
mod_foo
.lo mod_foo.c && touch mod_foo.slo
/home/panxin/apache/build/libtool --silent --mode=link gcc -o mod_foo.so -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
r
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
`ap_hook_handler'

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

Thanks
Pan


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


apxs: error

Posted by pan <pa...@halcyonsoft.com>.
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/modules.mk
Creating [FILE] foo/mod_foo.c
Creating [FILE] foo/.deps

[root@redhat7 foo]# ../apxs -o mod_foo.so -i -c mod_foo.c
/home/panxin/apache/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -D_SVID_SOURCE -g -O2 -pthread -I/home/panxin/apache/include  -c -o
mod_foo.lo mod_foo.c && touch mod_foo.slo /home/panxin/apache/build/libtool
--silent --mode=link gcc -o mod_foo.so -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
reference 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 `ap_hook_handler'

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

Thanks
Pan