This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

undefined refrences to Apache symbols


Hi Everybody,

I have an an application which is working with apache web server on Linux As 2.1 m/c. While compiling I have to use 
-Wl,-Bsymbolic option. My compiler is gcc. When I use this option & try to compile my application, I get following warnings:

ExAPACHE.o: In function `CExApi::GetProtInfo(tagProtocolInfo*)':
ExAPACHE.o(.text+0x237): undefined reference to `ap_table_get'
ExAPACHE.o(.text+0x263): undefined reference to `ap_get_server_port'
ExAPACHE.o: In function `CExApi::GetAuthOnlyHeader(char*, unsigned)':
ExAPACHE.o(.text+0x4d7): undefined reference to `ap_table_get'
ExAPACHE.o: In function `CExApi::GetCookies(char**)':
ExAPACHE.o(.text+0x54f): undefined reference to `ap_table_get'
ExAPACHE.o: In function `CExApi::SetCookie(char*)':
ExAPACHE.o(.text+0x5d1): undefined reference to `ap_pstrdup'
ExAPACHE.o(.text+0x5ef): undefined reference to `ap_table_addn'
ExAPACHE.o: In function `CExApi::GetBasicAuth(char*, unsigned)':
ExAPACHE.o(.text+0x657): undefined reference to `ap_table_get'
ExAPACHE.o: In function `CExApi::SetBasicAuth(char*)':
ExAPACHE.o(.text+0x6d1): undefined reference to `ap_pstrdup'
ExAPACHE.o(.text+0x6ef): undefined reference to `ap_table_setn'
ExAPACHE.o: In function `CExApi::GetLocation(char*, unsigned)':
ExAPACHE.o(.text+0x757): undefined reference to `ap_table_get'
ExAPACHE.o: In function `CExApi::SetLocation(char*)':
ExAPACHE.o(.text+0x7dc): undefined reference to `ap_pstrdup'
ExAPACHE.o(.text+0x7fa): undefined reference to `ap_table_setn'
ExAPACHE.o(.text+0x808): undefined reference to `ap_parse_uri'
ExAPACHE.o: In function `CExApi::GetReferer(char*, unsigned)':
ExAPACHE.o(.text+0x867): undefined reference to `ap_table_get'
ExAPACHE.o: In function `CExApi::SetReferer(char*)':
ExAPACHE.o(.text+0x8e1): undefined reference to `ap_pstrdup'
ExAPACHE.o(.text+0x8ff): undefined reference to `ap_table_setn'

-Wl,-Bsymbolic says when  creating  a shared library, bind references to global symbols to the definition within the shared library, if any. 

All the symbols shown above are apache symbols. How can I get rid of these symbols. If I don't use -Wl,-Bsymbolic option these warning do't come. But I have to use -Wl,-Bsymbolic in my compilation. How can I get rid of these unnecessary warnings.

Regards,
Gagan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]