httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sorin Manolache <sor...@gmail.com>
Subject Re: How to compiling/link/use Apache module that uses shared library?
Date Thu, 21 Jun 2012 18:02:03 GMT
On 2012-06-21 19:47, ohaya@cox.net wrote:

> I've tried using "-l" pointing directly to the .so, libobaccess.so, but when I do that,
it says it can't find the .so:
>
> [root@apachemodule build-mod_headers]# ./compile-mod-headers.sh
> /apps/httpd2222/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT
-D_GNU_SOURCE -g -O2 -pthread -I/apps/httpd2222/include  -I/apps/httpd2222/include   -I/apps/httpd2222/include
  -c -o mod_headers.lo mod_headers.c && touch mod_headers.slo
> /apps/httpd2222/build/libtool --silent --mode=link gcc -o mod_headers.la  -l/apps/netpoint/AccessServerSDK/oblix/lib/libobaccess.so
-rpath /apps/httpd2222/modules -module -avoid-version    mod_headers.lo
> /usr/bin/ld: cannot find -l/apps/netpoint/AccessServerSDK/oblix/lib/libobaccess.so
> collect2: ld returned 1 exit status
> apxs:Error: Command failed with rc=65536

Try -lobaccess

S

Mime
View raw message