Nevermind, I've figured it out by rereading "man gcc"!
I have to put my .o files before the -L ... -lapreq:

gcc build/mod_pref.o build/pgsql.o -shared -fPIC -DSHARED_MODULE -L
/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/libapreq -lapreq
-L /usr/local/lib -lpq -o mod_pref.so

On 1/31/06, Alexander Farber <[EMAIL PROTECTED]> wrote:
> could someone please give me a hint,
> how to use libapreq from my Apache module?
...
>     laptop:afarber {862} sudo /usr/sbin/httpd -X
>     /usr/sbin/httpd:/usr/lib/apache/modules/mod_pref.so: undefined
> symbol 'ApacheRequest_new'

Reply via email to