<p>Yeah, that worked well. But I guess I'll have to check out gcc too.</p>
<p>Thanks,<br>
Doug</p>
<div class="gmail_quote">On Sep 1, 2011 4:11 PM, "Paul Ramsey" <<a href="mailto:pramsey@opengeo.org">pramsey@opengeo.org</a>> wrote:<br type="attribution">> Yes, that might probably work :)<br>> My guess is that your gcc is generating a 32-bit object and then<br>
> failing to link it to the 64-bit library.<br>> P.<br>> <br>> On Thu, Sep 1, 2011 at 11:38 AM, Doug McComber <<a href="mailto:doug.mccomber@gmail.com">doug.mccomber@gmail.com</a>> wrote:<br>>> Thanks Paul, here's the relevant config.log part:<br>
>><br>>> configure:15850: checking for PQserverVersion in -lpq<br>>> configure:15875: gcc -o conftest -g -O2 conftest.c -lpq<br>>> -L/usr/postgres/9.0-pgdg/lib/64 -lpq >&5<br>>> ld: fatal: file /usr/postgres/9.0-pgdg/lib/64/libpq.so: wrong ELF<br>
>> class: ELFCLASS64<br>>> ld: fatal: file /usr/postgres/9.0-pgdg/lib/64/libpq.so: wrong ELF<br>>> class: ELFCLASS64<br>>> ld: fatal: file processing errors. No output written to conftest<br>>> collect2: ld returned 1 exit status<br>
>><br>>> My install of PostgreSQL is empty and I'm just using it for some<br>>> development work. Should I remove it and install the 32-bit version<br>>> instead? I mean, would that be the easiest solution here?<br>
>><br>>> Thanks,<br>>> Doug<br>>><br>>> On 1 September 2011 15:30, Paul Ramsey <<a href="mailto:pramsey@opengeo.org">pramsey@opengeo.org</a>> wrote:<br>>>> The linking test is failing, but it's finding all the other libpq<br>
>>> components. Check the config.log and see how/why the test is failing.<br>>>> From what I see in your mail this is probably a limitation in our<br>>>> configure script, not in your system setup.<br>
>>><br>>>> P.<br>>>><br>>>> On Thu, Sep 1, 2011 at 11:19 AM, Doug McComber <<a href="mailto:doug.mccomber@gmail.com">doug.mccomber@gmail.com</a>> wrote:<br>>>>> Hi,<br>
>>>><br>>>>> I'm trying to compile PostGIS 1.5.3 in Solaris 11 on sparc hardware.<br>>>>> I can't get past configure! :) Here is the tail output of that where<br>>>>> it fails:<br>
>>>><br>>>>><br>>>>> checking for pg_config... /usr/postgres/9.0-pgdg/bin/64/pg_config<br>>>>> checking PostgreSQL version... PostgreSQL 9.0.4<br>>>>> checking libpq-fe.h usability... yes<br>
>>>> checking libpq-fe.h presence... yes<br>>>>> checking for libpq-fe.h... yes<br>>>>> checking for PQserverVersion in -lpq... no<br>>>>> configure: error: could not find libpq<br>
>>>><br>>>>> PostgreSQL 9.0.4 was install by downloading a binary from the<br>>>>> PostgreSQL website. A find of 'libpq*' shows:<br>>>>><br>>>>><br>>>>> ./usr/postgres/9.0-pgdg/lib/64/libpq.so.5<br>
>>>> ./usr/postgres/9.0-pgdg/lib/64/libpq.a<br>>>>> ./usr/postgres/9.0-pgdg/lib/64/libpqwalreceiver.so<br>>>>> ./usr/postgres/9.0-pgdg/lib/64/libpq.so<br>>>>> ./usr/postgres/9.0-pgdg/lib/64/libpq.so.5.3<br>
>>>> ./usr/postgres/9.0-pgdg/share/locale/zh_TW/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>>>>> ./usr/postgres/9.0-pgdg/share/locale/fr/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>
>>>> ./usr/postgres/9.0-pgdg/share/locale/cs/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>>>>> ./usr/postgres/9.0-pgdg/share/locale/zh_CN/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>
>>>> ./usr/postgres/9.0-pgdg/share/locale/es/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>>>>> ./usr/postgres/9.0-pgdg/share/locale/tr/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>
>>>> ./usr/postgres/9.0-pgdg/share/locale/it/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>>>>> ./usr/postgres/9.0-pgdg/share/locale/pt_BR/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>
>>>> ./usr/postgres/9.0-pgdg/share/locale/ta/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>>>>> ./usr/postgres/9.0-pgdg/share/locale/sv/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>
>>>> ./usr/postgres/9.0-pgdg/share/locale/ko/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>>>>> ./usr/postgres/9.0-pgdg/share/locale/ru/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>
>>>> ./usr/postgres/9.0-pgdg/share/locale/de/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>>>>> ./usr/postgres/9.0-pgdg/share/locale/ja/LC_MESSAGES/<a href="http://libpq5-9.0.mo">libpq5-9.0.mo</a><br>
>>>> ./usr/postgres/9.0-pgdg/include/64/libpq-fe.h<br>>>>> ./usr/postgres/9.0-pgdg/include/64/libpq<br>>>>> ./usr/postgres/9.0-pgdg/include/64/libpq/libpq-fs.h<br>>>>> ./usr/postgres/9.0-pgdg/include/64/internal/libpq-int.h<br>
>>>> ./usr/postgres/9.0-pgdg/include/64/internal/libpq<br>>>>> ./usr/postgres/9.0-pgdg/include/64/libpq-events.h<br>>>>> ./usr/postgres/9.0-pgdg/include/64/server/libpq<br>>>>> ./usr/postgres/9.0-pgdg/include/64/server/libpq/libpq-be.h<br>
>>>> ./usr/postgres/9.0-pgdg/include/64/server/libpq/libpq-fs.h<br>>>>> ./usr/postgres/9.0-pgdg/include/64/server/libpq/libpq.h<br>>>>><br>>>>> What am I missing?<br>>>>><br>
>>>> Thanks,<br>>>>> Doug<br>>>>> _______________________________________________<br>>>>> postgis-users mailing list<br>>>>> <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
>>>> <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>>>>><br>>>> _______________________________________________<br>
>>> postgis-users mailing list<br>>>> <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>>>> <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
>>><br>>> _______________________________________________<br>>> postgis-users mailing list<br>>> <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
>> <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>>><br>> _______________________________________________<br>> postgis-users mailing list<br>
> <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>> <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</div>