Thanks, adding the LDFLAGS environment variable got me past the linking errors:

env LDFLAGS="-L/usr/local/lib -R/usr/local/lib -lexpat" perl Makefile.PL \
--with-apache2-apxs=/usr/local/apache2/bin/apxs

but now I am wondering if the perl modules will work when I see warnings like 
this snippet produced by (I think) XSBuilder:

mkdir xs
writing...xs//typemap
WARNING no convert code for HASH(0xe8f600) -> {typemapid}
WARNING no convert code for HASH(0xe8f600) -> {typemapid}
WARNING no convert code for HASH(0xe8f4ec) -> {typemapid}
WARNING no convert code for HASH(0xe8f4ec) -> {typemapid}
WARNING no convert code for HASH(0xe8f4d4) -> {typemapid}
WARNING no convert code for HASH(0xe8f4d4) -> {typemapid}
WARNING no convert code for HASH(0xe8f498) -> {typemapid}
WARNING no convert code for HASH(0xe8f498) -> {typemapid}
WARNING no convert code for HASH(0xe8f4e0) -> {typemapid}
WARNING no convert code for HASH(0xe8f4e0) -> {typemapid}
Parse xsbuilder/maps/apreq_functions.map...
DEFINE DEFINE_apreq_xs_APR__Request__Apache2_handle arg=const char *:class, 
request_rec *:r
DEFINE DEFINE_apreq_xs_APR__Request__CGI_handle arg=const char *:class, 
apr_pool_t *:p
DEFINE DEFINE_apreq_xs_APR__Request__Cookie__Table_get arg=
DEFINE DEFINE_apreq_xs_APR__Request__Cookie__Table_FETCH arg=
DEFINE DEFINE_apreq_xs_APR__Request__Cookie__Table_NEXTKEY arg=
DEFINE DEFINE_apreq_xs_APR__Request__Cookie__Table_FIRSTKEY arg=
DEFINE DEFINE_apreq_xs_APR__Request__Cookie__Table_do arg=
DEFINE DEFINE_apreq_xs_APR__Request_parse arg=
DEFINE DEFINE_apreq_xs_APR__Request_jar arg=
DEFINE DEFINE_apreq_xs_APR__Request_args arg=
DEFINE DEFINE_apreq_xs_APR__Request_body arg=
DEFINE DEFINE_apreq_xs_APR__Request_param arg=
DEFINE DEFINE_apreq_xs_APR__Request__Param__Table_get arg=
DEFINE DEFINE_apreq_xs_APR__Request__Param__Table_FETCH arg=
DEFINE DEFINE_apreq_xs_APR__Request__Param__Table_NEXTKEY arg=
DEFINE DEFINE_apreq_xs_APR__Request__Param__Table_FIRSTKEY arg=
DEFINE DEFINE_apreq_xs_APR__Request__Param__Table_do arg=
DEFINE DEFINE_apreq_xs_APR__Request__Brigade_new arg=
DEFINE DEFINE_apreq_xs_APR__Request__Brigade_TIEHANDLE arg=
DEFINE DEFINE_apreq_xs_APR__Request__Brigade_READ arg=
DEFINE DEFINE_apreq_xs_APR__Request__Brigade_READLINE arg=
DEFINE DEFINE_apreq_xs_APR__Request__Brigade__IO_read arg=
DEFINE DEFINE_apreq_xs_APR__Request__Brigade__IO_readline arg=
struct apreq_cookie_t...
Parse xsbuilder/maps/apreq_structures.map...
WARNING: apreq_cookie_t for path not in mapfile
WARNING: apreq_cookie_t for domain not in mapfile
WARNING: apreq_cookie_t for port not in mapfile
WARNING: apreq_cookie_t for comment not in mapfile
WARNING: apreq_cookie_t for commentURL not in mapfile
WARNING: apreq_cookie_t for max_age not in mapfile
WARNING: apreq_cookie_t for flags not in mapfile
WARNING: apreq_cookie_t for v not in mapfile
struct apreq_handle_t...
WARNING: apreq_handle_t for module not in mapfile
WARNING: pool not in mapfile
WARNING: bucket_alloc not in mapfile

There are alot more of these warnings that I've omitted to shorten this already 
lengthy post.

Thanks for any insights into these messages.
-James


________________________________________
From: John D Groenveld [jdg...@elvis.arl.psu.edu]
Sent: Thursday, January 27, 2011 6:48 PM
To: modperl@perl.apache.org
Subject: Re: build of libapreq2 fails

In message <527c4914f1b2ea47b38422de0fa05a65064b1ba...@dh201.dhmcmaster.dh.hitc
hcock.org>, "James B. Muir" writes:
>Hi, I am trying to build libapreq2 so that I may use it with Apache2 and mo=
>d_perl. I'm on a Solaris 10 system. The version of Apache I am using is old=
>:
>
>./bin/apachectl -v
>Server version: Apache/2.0.59
>Server built:   Aug 22 2006 11:38:34

<URL:http://www.apache.org/dist/httpd/CHANGES_2.0.64>

>
>I receive the following surprising errors during the build of libapreq2:
>
>gmake[2]: Entering directory `/opt/sfw/libapreq2-2.13/module'
>/bin/bash ../libtool --tag=3DCC   --mode=3Dlink gcc  -g -O2 `/usr/local/lib=
>apreq2-2.
>13/apreq2-config --link-libtool`  -L/usr/local/apache2/lib -laprutil-0 -L/u=
>sr/lo
>cal/apache2/lib -lapr-0  -o test_cgi test_cgi.o
>gcc -g -O2 -o .libs/test_cgi test_cgi.o  /opt/sfw/libapreq2-2.13/library/.l=
>ibs/l
>ibapreq2.so -L/usr/local/apache2/lib /usr/local/apache2/lib/libaprutil-0.so=
> /usr
>/local/apache2/lib/libapr-0.so -lsendfile -lrt -lm -lsocket -lnsl -lresolv =
>-lpth
>read  -R/usr/local/apache2/lib
>Undefined                       first referenced
>symbol                             in file
>XML_Parse                           /usr/local/apache2/lib/libaprutil-0.so
>XML_ParserCreate                    /usr/local/apache2/lib/libaprutil-0.so
>XML_ErrorString                     /usr/local/apache2/lib/libaprutil-0.so
>XML_SetUserData                     /usr/local/apache2/lib/libaprutil-0.so
>XML_ParserFree                      /usr/local/apache2/lib/libaprutil-0.so
>XML_GetErrorCode                    /usr/local/apache2/lib/libaprutil-0.so
>XML_SetCharacterDataHandler         /usr/local/apache2/lib/libaprutil-0.so
>XML_SetElementHandler               /usr/local/apache2/lib/libaprutil-0.so
>ld: fatal: Symbol referencing errors. No output written to .libs/test_cgi
>collect2: ld returned 1 exit status
>gmake[2]: *** [test_cgi] Error 1
>gmake[2]: Leaving directory `/opt/sfw/libapreq2-2.13/module'
>
>
>I recently installed libexpat to /usr/local/lib.
>
>ls -lF libexpat*
>-rw-r--r--   1 root     root      492744 Dec 14 16:23 libexpat.a
>-rwxr-xr-x   1 root     root         816 Dec 14 16:23 libexpat.la*
>lrwxrwxrwx   1 root     root          17 Dec 14 16:23 libexpat.so -> libexp=
>at.so.1.5.2*
>lrwxrwxrwx   1 root     root          17 Dec 14 16:23 libexpat.so.1 -> libe=
>xpat.so.1.5.2*
>-rwxr-xr-x   1 root     root      305504 Dec 14 16:23 libexpat.so.1.5.2*
>
>Does anyone have any idea why I am seeing the undefined symbols when I buil=
>d libapreq2? Do I need to rebuild apache to resolve this?

I don't see the attempt to link libexpat.
You can try manually adding it to LDFLAGS

$ env LDFLAGS="-L/usr/local/lib -R/usr/local/lib -lexpat" perl Makefile.PL \
--with-apache2-apxs=/usr/local/apache2/bin/apxs

And libexpat ships with Solaris 10 in the SUNWlexpt package.

When building Apache httpd 2.2, you specify --with-expat in the
configure.

John
groenv...@acm.org

IMPORTANT NOTICE REGARDING THIS ELECTRONIC MESSAGE:

This message is intended for the use of the person to whom it is addressed and 
may contain information that is privileged, confidential, and protected from 
disclosure under applicable law.  If you are not the intended recipient, your 
use of this message for any purpose is strictly prohibited.  If you have 
received this communication in error, please delete the message and notify the 
sender so that we may correct our records.

Reply via email to