If you let it compile against the 8.0 header files, and link to 6.2 you could be in for trouble down the road unless there's some guarantee that the ABI hasn't changed between those versions. It's entirely possible to get an error-free link but still have latent runtime issues due to changes in the ABI that the compiler/linker toolchain simply can't detect. Just a friendly warning, as I have no particular knowledge of libjpeg's API/ABI.<br>
<br>Kendall<br><br><div class="gmail_quote">On Wed, Jun 30, 2010 at 12:43 PM, Daniel A. Ramaley <span dir="ltr"><<a href="mailto:daniel.ramaley@drake.edu">daniel.ramaley@drake.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks for the responses. I was able to get PHP compiled against libjpeg<br>
6.2. The way i did it was to temporarily change the symlink libjpeg.so<br>
to point to the 6.2 library, did the ./configure and make steps, then<br>
switched the symlink back to the way it was.<br>
<br>
<br>
On 2010-06-29 at 09:45:08, Daniel A. Ramaley wrote:<br>
>If multiple versions of a library are installed, is is possible to<br>
>compile software against a specific version? If so, how?<br>
><br>
>My specific situation is that a web server has 3 versions of libjpeg<br>
>installed, 6.2, 7.0, and 8.0. I need to compile PHP against version<br>
>6.2, but it always finds the 8.0 version instead. All 3 versions are<br>
>installed in /usr/local. I tried configuring PHP specifying the exact<br>
>one using --with-jpeg-dir=/usr/local/lib/libjpeg.so.62, but it still<br>
>ended up using the 8.0 version. Unfortunately, i can't just remove<br>
>the newer versions as other running software is using it.<br>
--<br>
Daniel A. Ramaley<br>
Network Engineer 2<br>
<br>
Dial Center 118, Drake University<br>
2407 Carpenter Ave / Des Moines IA 50311 USA<br>
Tel: +1 515 271-4540<br>
Fax: +1 515 271-1938<br>
E-mail: <a href="mailto:daniel.ramaley@drake.edu">daniel.ramaley@drake.edu</a><br></blockquote></div>