From: | "Larry Rosenman" <ler(at)lerctr(dot)org> |
---|---|
To: | "'Bruce Momjian'" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "'Jim Morcombe'" <jim(at)seekchrist(dot)org> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Can't build libpq test example |
Date: | 2005-02-09 23:22:06 |
Message-ID: | E1Cz1AV-0000s5-IJ@lerami.lerctr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Bruce Momjian wrote:
> Strange, it looks OK to me with the -lpq. My guess is that it is
> some SCO strangeness but I am not sure what. Do an 'nm' on libpq.so
> and see if those symbols are in there.
>
>
---------------------------------------------------------------------------
>
> Jim Morcombe wrote:
>> Can anyone help me with this problem?
>>
>> I have installed postgresql-7.2.1 and am trying to compile one of the
>> test programs from the directory src/test/examples.
>>
>> I am running an old version of SCO Openserver 5
>>
>> I am using the following command:
>>
>> cc testlibpq.c -I/usr/local/pgsql/include -L/usr/local/pgsql/lib
>> -lpq -otestlibpq
>>
>> I receive the following error messages:
>>
>> undefined first referenced
>> symbol in file
>> PQfinish testlibpq.o
>> PQsetdbLogin testlibpq.o
>> PQstatus testlibpq.o
>> PQerrorMessage testlibpq.o
>> PQexec testlibpq.o
>> PQresultStatus testlibpq.o
>> PQclear testlibpq.o
>> PQnfields testlibpq.o
>> PQfname testlibpq.o
>> PQgetvalue testlibpq.o
>> PQntuples testlibpq.o
>> ld fatal: Symbol referencing errors. No output written to testlibpq
>>
>> ---------------------------(end of
>> broadcast)---------------------------
>> TIP 2: you can get off all lists at once with the unregister command
>> (send "unregister YourEmailAddressHere" to
>> majordomo(at)postgresql(dot)org)
And, are you sure you have the right libpq in /usr/local/pgsql/lib ?
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
From | Date | Subject | |
---|---|---|---|
Next Message | Ed L. | 2005-02-09 23:34:30 | Re: Understanding EXPLAIN ANALYZE output |
Previous Message | Martijn van Oosterhout | 2005-02-09 23:08:37 | Re: Understanding EXPLAIN ANALYZE output |