<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We're having problems with a GDAL build from source and hope that someone here can point us in the right direction.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We've got a server running Scientific Linux 7 and we're using Jenkins 1.602.2 for CI. Every job builds our application from scratch, which includes a build of gdal. Up until yesterday, it was working fine, but then another user on that
 server installed postgres and we started to get build errors. Other users can still build the application, but the jenkins user fails each time with the error:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#333333">/home/jba/.jenkins/workspace/Farm_unit_tests/src/gdal/gdal/libgdal.so: undefined reference to `CPLHTTPSetOptions(void*, char**)'<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#333333">/home/jba/.jenkins/workspace/Farm_unit_tests/src/gdal/gdal/libgdal.so: undefined reference to `OGRCreateExpatXMLParser()'<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#333333">collect2: error: ld returned 1 exit status<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Comparing the console output for earlier (successful) builds with later (failing) builds, we can see that during make, after the command (cd frmts; make), some extra options are enabled: -DFRMT_wcs -DFRMT_wms -DFRMT_plmosaic. Then later
 on in the build, after (cd apps; make appslib), the extra options -lexpat -lpcre and -lcurl appear.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Why would extra options be enabled when we haven't made any changes to the makefile? And are these extra options likely to be the failure in building libgdal.so?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jon<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-GB">Jon Morris<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#A9A19C;mso-fareast-language:EN-GB">Software Developer<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#A9A19C;mso-fareast-language:EN-GB"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#A9A19C;mso-fareast-language:EN-GB">t: +44 (0) 1756 799919<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#ED7D31;mso-fareast-language:EN-GB">P</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#F79646;mso-fareast-language:EN-GB">lease click
<u><a href="http://www.jbarisk.com/get-touch"><span style="color:#F79646">here</span></a></u> if you would like to subscribe to our email news</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;background:white">Find out more about us here:
<a href="http://www.jbarisk.com/">www.jbarisk.com</a> and </span></b><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#444444;background:white"><a href="http://twitter.com/JBARisk" target="_blank">follow us on Twitter @JBARisk</a> and
<a href="https://www.linkedin.com/company/2370847?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A2370847%2Cidx%3A2-1-2%2CtarId%3A1447414259786%2Ctas%3AJBA%20RISK%20MANAGEMENT">
LinkedIn</a> </span></b><o:p></o:p></p>
<p><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black;background:white">The JBA Group supports the JBA Trust.</span><o:p></o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#444444;background:white">All JBA Risk Management's email messages contain confidential information and are intended only for the individual(s) named.
 If you are not the named addressee you should not disseminate, distribute or copy this e-mail.</span><br>
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#444444;background:white">Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system.</span><br>
 <o:p></o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#444444;background:white">JBA Risk Management Limited is registered in England, company number 07732946, South Barn, Broughton Hall, Skipton, North
 Yorkshire, BD23 3AE, </span><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black;background:white">Telephone: +441756799919</span><o:p></o:p></p>
<p> <o:p></o:p></p>
</div>
</body>
</html>