build of libapreq2 fails

--_000_527C4914F1B2EA47B38422DE0FA05A65064B1BA899DH201DHMCMa st_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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

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?
This is the script I am using to build libapreq2:

#!/usr/bin/bash

# Make sure we can get to gcc, but not cc. Set the path
# to find the gcc compiler in /usr/local/bin.
# Use the GNU make in /usr/sfw/bin/

PATH=3D/usr/local/bin:/usr/sfw/bin:/usr/sbin:/usr/bin:/usr/c cs/bin
export PATH

cd /usr/local/libapreq2-2.13

perl Makefile.PL --with-apache2-apxs=3D/usr/local/apache2/bin/apxs

gmake


Thanks for any input on this matter,
-James


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 recipien=
t, your use of this message for any purpose is strictly prohibited. If you =
have received this communication in error, please delete the message and no=
tify the sender so that we may correct our records.

--_000_527C4914F1B2EA47B38422DE0FA05A65064B1BA899DH201DHMCMa st_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
[at] font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
[at] font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
..MsoChpDefault
{mso-style-type:export-only;}
[at] page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">Hi, I am trying to build lib=
apreq2 so that I may use it with Apache2 and mod_perl. I’m on a Solar=
is 10 system. The version of Apache I am using is old:<o:p></o:p></span></p=
>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">./bin/apachectl -v &nbs=
p;            
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">Server version: Apache/2.0.5=
9         
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">Server built:   Au=
g 22 2006 11:38:34  
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none">I receive the followin=
g surprising errors during the build of libapreq2:<span style=3D"font-size:=
10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">gmake[2]: Entering directory=
`/opt/sfw/libapreq2-2.13/module'<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">/bin/bash ../libtool --tag=
=3DCC   --mode=3Dlink gcc  -g -O2 `/usr/local/libapreq2-2.<o=
:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">13/apreq2-config --link-libt=
ool`  -L/usr/local/apache2/lib -laprutil-0 -L/usr/lo<o:p></o:p></span>=
</p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">cal/apache2/lib -lapr-0 =
; -o test_cgi test_cgi.o<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">gcc -g -O2 -o .libs/test_cgi=
test_cgi.o  /opt/sfw/libapreq2-2.13/library/.libs/l<o:p></o:p></span>=
</p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">ibapreq2.so -L/usr/local/apa=
che2/lib /usr/local/apache2/lib/libaprutil-0.so /usr<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">/local/apache2/lib/libapr-0.=
so -lsendfile -lrt -lm -lsocket -lnsl -lresolv -lpth<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">read  -R/usr/local/apac=
he2/lib<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">Undefined   &=
nbsp;           &nbs=
p;       first referenced<o:p></o:p></span></=
p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">symbol   &nbs=
p;            &=
nbsp;            in =
file<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">XML_Parse   &=
nbsp;           &nbs=
p;           /usr/local/a=
pache2/lib/libaprutil-0.so<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">XML_ParserCreate  =
            &nb=
sp;     /usr/local/apache2/lib/libaprutil-0.so<o:p></o:=
p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">XML_ErrorString  &=
nbsp;           &nbs=
p;      /usr/local/apache2/lib/libaprutil-0.so<o:p=
></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">XML_SetUserData  &=
nbsp;           &nbs=
p;      /usr/local/apache2/lib/libaprutil-0.so<o:p=
></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">XML_ParserFree  &n=
bsp;            =
;       /usr/local/apache2/lib/libaprutil-0.s=
o<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">XML_GetErrorCode  =
             &n=
bsp;    /usr/local/apache2/lib/libaprutil-0.so<o:p></o:=
p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">XML_SetCharacterDataHandler&=
nbsp;        /usr/local/apache2/lib/liba=
prutil-0.so<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">XML_SetElementHandler &=
nbsp;           &nbs=
p; /usr/local/apache2/lib/libaprutil-0.so<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">ld: fatal: Symbol referencin=
g errors. No output written to .libs/test_cgi<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">collect2: ld returned 1 exit=
status<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">gmake[2]: *** [test_cgi] Err=
or 1<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">gmake[2]: Leaving directory =
`/opt/sfw/libapreq2-2.13/module'<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">I recently installed libexpat to /usr/local/lib.<o:p=
></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">ls -lF libexpat*  =
            &nb=
sp;            =
            &nb=
sp;            =
     
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">-rw-r--r--   1 roo=
t     root      492744 Dec 14 =
16:23 libexpat.a          =
;     
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">-rwxr-xr-x   1 roo=
t     root       &nb=
sp; 816 Dec 14 16:23 libexpat.la*       =
      
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">lrwxrwxrwx   1 roo=
t     root       &nb=
sp;  17 Dec 14 16:23 libexpat.so -> libexpat.so.1.5.2*  &=
nbsp;           &nbs=
p;            &=
nbsp;           &nbs=
p;            &=
nbsp;           &nbs=
p;       
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">lrwxrwxrwx   1 roo=
t     root       &nb=
sp;  17 Dec 14 16:23 libexpat.so.1 -> libexpat.so.1.5.2*  =
;             &=
nbsp;           &nbs=
p;            &=
nbsp;           &nbs=
p;            &=
nbsp;     <o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">-rwxr-xr-x   1 roo=
t     root      305504 Dec 14 =
16:23 libexpat.so.1.5.2*       
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Does anyone have any idea why I am seeing the undefi=
ned symbols when I build libapreq2? Do I need to rebuild apache to resolve =
this?<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">This is the script I am usin=
g to build libapreq2:<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">#!/usr/bin/bash  &=
nbsp;           &nbs=
p;            &=
nbsp;           &nbs=
p;           
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">    &nbs=
p;            &=
nbsp;           &nbs=
p;            &=
nbsp;           &nbs=
p;            <=
o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New""># Make sure we can get to gc=
c, but not cc. Set the path        =
   
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New""># to find the gcc compiler i=
n /usr/local/bin.         &nbs=
p;           
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New""># Use the GNU make in /usr/s=
fw/bin/           &n=
bsp;            =
;       
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">    &nbs=
p;            &=
nbsp;           &nbs=
p;            &=
nbsp;           &nbs=
p;            <=
o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">PATH=3D/usr/local/bin:/usr/s=
fw/bin:/usr/sbin:/usr/bin:/usr/ccs/bin 
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">export PATH   =
;            &n=
bsp;            =
;            &n=
bsp;            =
;  
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">    &nbs=
p;            &=
nbsp;           &nbs=
p;            &=
nbsp;           &nbs=
p;            <=
o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">cd /usr/local/libapreq2-2.13=
            &nb=
sp;            =
            &nb=
sp;
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">    &nbs=
p;            &=
nbsp;           &nbs=
p;            &=
nbsp;           &nbs=
p;            <=
o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">perl Makefile.PL --with-apac=
he2-apxs=3D/usr/local/apache2/bin/apxs  
<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">    &nbs=
p;            &=
nbsp;           &nbs=
p;            &=
nbsp;           &nbs=
p;            <=
o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:"Courier New"">gmake    =
;            &n=
bsp;            =
;            &n=
bsp;            =
;       
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Thanks for any input on this matter,<o:p></o:p></p>
<p class=3D"MsoNormal">-James<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
<br>
<font face=3D"Verdana" color=3D"Black" size=3D"1">IMPORTANT NOTICE REGARDIN=
G THIS ELECTRONIC MESSAGE:<br>
<br>
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 recipien=
t, your use of this message for
any purpose is strictly prohibited. If you have received this communicatio=
n in error, please delete the message and notify the sender so that we may =
correct our records.<br>
</font>
</body>
</html>

--_000_527C4914F1B2EA47B38422DE0FA05A65064B1BA899DH201DHMCMa st_--
James.B.Muir [ Do, 27 Januar 2011 21:45 ] [ ID #2053938 ]

Re: build of libapreq2 fails

In message <527C4914F1B2EA47B38422DE0FA05A65064B1BA899 [at] 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
groenveld [at] acm.org
John D Groenveld [ Fr, 28 Januar 2011 00:48 ] [ ID #2054011 ]

VS: build of libapreq2 fails

Hi,

Also configuring the runtime linking environment under Solaris 10 often hel=
ps a lot along with LDFLAGS:

> crle -u -l /usr/sfw/lib
> crle -u -l /usr/local/lib

Kind regards,
Kasper L=F8vschall

Special Consultant, Civil Engineer M.Sc.
Aalborg University Library
Langagervej 2
Po.Box 8200
DK-9220 Aalborg =D8st
Denmark

Tlf: (+45) 99 40 73 03, Mobile: (+45) 28 95 91 29

E-mail: kl [at] aub.aau.dk




-----Oprindelig meddelelse-----
Fra: John D Groenveld [mailto:jdg117 [at] elvis.arl.psu.edu]
Sendt: 28. januar 2011 00:49
Til: modperl [at] perl.apache.org
Emne: Re: build of libapreq2 fails

In message <527C4914F1B2EA47B38422DE0FA05A65064B1BA899 [at] 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 m=
o=3D
>d_perl. I'm on a Solaris 10 system. The version of Apache I am using is ol=
d=3D
>:
>
>./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=3D3DCC --mode=3D3Dlink gcc -g -O2 `/usr/loca=
l/lib=3D
>apreq2-2.
>13/apreq2-config --link-libtool` -L/usr/local/apache2/lib -laprutil-0 -L/=
u=3D
>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=3D
>ibs/l
>ibapreq2.so -L/usr/local/apache2/lib /usr/local/apache2/lib/libaprutil-0.s=
o=3D
> /usr
>/local/apache2/lib/libapr-0.so -lsendfile -lrt -lm -lsocket -lnsl -lresolv=
=3D
>-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 -> libex=
p=3D
>at.so.1.5.2*
>lrwxrwxrwx 1 root root 17 Dec 14 16:23 libexpat.so.1 -> lib=
e=3D
>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 bui=
l=3D
>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=3D"-L/usr/local/lib -R/usr/local/lib -lexpat" perl Makefile.P=
L \
--with-apache2-apxs=3D/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
groenveld [at] acm.org
kl [ Fr, 28 Januar 2011 12:23 ] [ ID #2054023 ]

Re: VS: build of libapreq2 fails

In message <B175E5DAA6BE4F4896AD6A8AA534B18701EDE9CF0E [at] AD-MAILBOX01.aau.dk>, =?
iso-8859-1?Q?Kasper_L=F8vschall?= writes:
>Also configuring the runtime linking environment under Solaris 10 often helps
>a lot along with LDFLAGS:
>
>> crle -u -l /usr/sfw/lib
>> crle -u -l /usr/local/lib

If you add the -R flag to the linker (or not set any runtime paths
with -R and instead set them with the LD_RUN_PATH environment) then
you shouldn't need to kludge the Solaris system or user runtime link
environment.

My notes for building 64-bit modperl with httpd 2.2 remind me to
check these build files:
# edit apr_rules.mk and config_vars.mk in /opt/apache2/build
# add "-m64 -xO3" to EXTRA_CFLAGS and "-m64" EXTRA_LDFLAGS
# confirm "-m64 -L/usr/sfw/lib/64 -R/usr/sfw/lib/64"
# edit apr-1-config and apu-1-config in /opt/apache2/bin
# add the same to CFLAGS and LDFLAGS
# confirm "-m64 -L/usr/sfw/lib/64 -R/usr/sfw/lib/64"


BTW with 32-bit Solaris builds one needs to be dilligent about
building httpd and Perl the same as either largefile(5) or not
or modperl will core.

John
groenveld [at] acm.org
John D Groenveld [ Fr, 28 Januar 2011 16:47 ] [ ID #2054024 ]

RE: build of libapreq2 fails

Thanks, adding the LDFLAGS environment variable got me past the linking err=
ors:

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

but now I am wondering if the perl modules will work when I see warnings li=
ke 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=3Dconst char *:clas=
s, request_rec *:r
DEFINE DEFINE_apreq_xs_APR__Request__CGI_handle arg=3Dconst char *:class, a=
pr_pool_t *:p
DEFINE DEFINE_apreq_xs_APR__Request__Cookie__Table_get arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Cookie__Table_FETCH arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Cookie__Table_NEXTKEY arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Cookie__Table_FIRSTKEY arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Cookie__Table_do arg=3D
DEFINE DEFINE_apreq_xs_APR__Request_parse arg=3D
DEFINE DEFINE_apreq_xs_APR__Request_jar arg=3D
DEFINE DEFINE_apreq_xs_APR__Request_args arg=3D
DEFINE DEFINE_apreq_xs_APR__Request_body arg=3D
DEFINE DEFINE_apreq_xs_APR__Request_param arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Param__Table_get arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Param__Table_FETCH arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Param__Table_NEXTKEY arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Param__Table_FIRSTKEY arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Param__Table_do arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Brigade_new arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Brigade_TIEHANDLE arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Brigade_READ arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Brigade_READLINE arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Brigade__IO_read arg=3D
DEFINE DEFINE_apreq_xs_APR__Request__Brigade__IO_readline arg=3D
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 alr=
eady lengthy post.

Thanks for any insights into these messages.
-James


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

In message <527C4914F1B2EA47B38422DE0FA05A65064B1BA899 [at] 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 m=
o=3D
>d_perl. I'm on a Solaris 10 system. The version of Apache I am using is ol=
d=3D
>:
>
>./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=3D3DCC --mode=3D3Dlink gcc -g -O2 `/usr/loca=
l/lib=3D
>apreq2-2.
>13/apreq2-config --link-libtool` -L/usr/local/apache2/lib -laprutil-0 -L/=
u=3D
>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=3D
>ibs/l
>ibapreq2.so -L/usr/local/apache2/lib /usr/local/apache2/lib/libaprutil-0.s=
o=3D
> /usr
>/local/apache2/lib/libapr-0.so -lsendfile -lrt -lm -lsocket -lnsl -lresolv=
=3D
>-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 -> libex=
p=3D
>at.so.1.5.2*
>lrwxrwxrwx 1 root root 17 Dec 14 16:23 libexpat.so.1 -> lib=
e=3D
>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 bui=
l=3D
>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=3D"-L/usr/local/lib -R/usr/local/lib -lexpat" perl Makefile.P=
L \
--with-apache2-apxs=3D/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
groenveld [at] 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 recipie=
nt, your use of this message for any purpose is strictly prohibited. If yo=
u have received this communication in error, please delete the message and =
notify the sender so that we may correct our records.
James.B.Muir [ Mo, 31 Januar 2011 22:53 ] [ ID #2054247 ]
Webserver » gmane.comp.apache.mod-perl » build of libapreq2 fails

Vorheriges Thema: mod_psgi
Nächstes Thema: [JOB] sysadmin for large mod_perl site