I have a file mod_foo.c in the folder foo in the bin directory of Apache, this file together with its components has been created with ./apxs-g-n foo.
The process I have seen that it is necessary to generate it is:
./apxs-c foo/mod_foo.c
gcc-fpic-DSHARED_MODULE -I/usr/local/apache/include-c foo / mod_foo.c
ld-o-Bshareable mod_foo.so mod_foo.o
apxs-i-a foo / mod_foo.c
At this point I have the error: apxs: Error: file foo / mod_foo.c is not a shared object.
Why not? I'd swear that it should work . Does anyone have any idea what is wrong?
The process I have seen that it is necessary to generate it is:
./apxs-c foo/mod_foo.c
gcc-fpic-DSHARED_MODULE -I/usr/local/apache/include-c foo / mod_foo.c
ld-o-Bshareable mod_foo.so mod_foo.o
apxs-i-a foo / mod_foo.c
At this point I have the error: apxs: Error: file foo / mod_foo.c is not a shared object.
Why not? I'd swear that it should work . Does anyone have any idea what is wrong?