Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error in building an example module

Status
Not open for further replies.

kyru

Programmer
Jan 17, 2009
45
ES
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top