hrm, what version of apxs/apache are you doing this with?


-----Original Message-----
From: Andy Ciordia [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 27, 2001 4:02 PM
To: CF-Linux
Subject: RE: Problem: Debian/Apache/Apxs


Ok.. My point was missed.. I've installed libstdc++2.9.0-30.i386.rpm,
took a while to track it down since its not as common now.

To the point I want clarified first.. I am trying to build my own
mod_coldfusion.so.  I have followed the instructions on how to do so using
apxs.  Following their directions it fails with: <see below>

> 
> So I read more of the document and get to the installing via apxs that got
> me here:
> 
> atlas:/opt/coldfusion/webserver/apache/src> make
> apxs -c   ./libcf.a mod_coldfusion.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
> -DNO_DL_NEEDED  -I/opt/apache_1.3.20/include  -c mod_coldfusion.c
>   -o mod_coldfusion.so mod_coldfusion.o ./libcf.a 
> apxs:Break: Command failed with rc=255
> make: *** [mod_coldfusion.so] Error 1
> 

The first part of the above command executes no problem. I end up with
mod_coldfusion.o. The second command, linking mod_coldfusion.o and libcf.a
into mod_coldfusion.so, fails with the following:

atlas:/opt/coldfusion/webserver/apache/src> gcc -o mod_coldfusion.so
mod_cold       
fusion.o ./libcf.a
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
mod_coldfusion.o: In function `ApacheGetHeader':
mod_coldfusion.o(.text+0x15c): undefined reference to `ap_palloc'
mod_coldfusion.o: In function `ApacheSetupEnvironment':
mod_coldfusion.o(.text+0x1d2): undefined reference to `ap_add_common_vars'
mod_coldfusion.o(.text+0x1e1): undefined reference to `ap_add_cgi_vars'
mod_coldfusion.o: In function `ApacheTableGet':
mod_coldfusion.o(.text+0x204): undefined reference to `ap_table_get'
mod_coldfusion.o: In function `ApacheSetupClientBlock':
mod_coldfusion.o(.text+0x224): undefined reference to
`ap_setup_client_block'
mod_coldfusion.o: In function `ApacheShouldClientBlock':
mod_coldfusion.o(.text+0x242): undefined reference to
`ap_should_client_block       
'
mod_coldfusion.o: In function `ApacheGetClientBlock':
mod_coldfusion.o(.text+0x26a): undefined reference to
`ap_get_client_block'
mod_coldfusion.o: In function `ApacheSendHeaders':
mod_coldfusion.o(.text+0x28a): undefined reference to
`ap_send_http_header'
mod_coldfusion.o: In function `ApacheAddHeader':
mod_coldfusion.o(.text+0x2b0): undefined reference to `ap_table_add'
mod_coldfusion.o: In function `ApacheSetContentType':
mod_coldfusion.o(.text+0x2d0): undefined reference to `ap_pstrdup'
mod_coldfusion.o: In function `ApacheStrdup':
mod_coldfusion.o(.text+0x2f8): undefined reference to `ap_pstrdup'
mod_coldfusion.o: In function `ApacheSetLocation':
mod_coldfusion.o(.text+0x325): undefined reference to `ap_table_set'
mod_coldfusion.o: In function `ApacheWrite':
mod_coldfusion.o(.text+0x346): undefined reference to `ap_rwrite'
mod_coldfusion.o: In function `ApacheSetStatusCode':
mod_coldfusion.o(.text+0x380): undefined reference to `ap_pstrdup'
mod_coldfusion.o: In function `ApacheFlush':
mod_coldfusion.o(.text+0x3c2): undefined reference to `ap_rflush'
mod_coldfusion.o: In function `ApachePoolCAlloc':
mod_coldfusion.o(.text+0x3f8): undefined reference to `ap_pcalloc'
mod_coldfusion.o: In function `ApacheSoftTimeout':
mod_coldfusion.o(.text+0x41a): undefined reference to `ap_soft_timeout'
mod_coldfusion.o: In function `ApacheResetTimeout':
mod_coldfusion.o(.text+0x432): undefined reference to `ap_reset_timeout'
mod_coldfusion.o: In function `ApacheKillTimeout':
mod_coldfusion.o(.text+0x44a): undefined reference to `ap_kill_timeout'

Apparently, apxs is not invoking gcc with the correct libraries.  We
attempted statically linking the libraries from apache's build directory,
and were able to produce a mod_coldfusion.so.  Its size was 4x the
mod_coldfusion downloaded, and apache segfaults on startup.

I don't think we want to statically link these libraries, why isn't apxs
building the module correctly by default?

-A

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to