pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: wenjin.zheng <wenjin.zheng@biosourcetechnologies.com>
To: 'pgsql-interfaces@postgresql.org' <pgsql-interfaces@postgresql.org>
Subject: Errors from compiling examples for libpq++
Date: Wed, 29 Sep 1999 13:04:23 -0700
Message-ID: <E3E65B3C4E12D311BE6900A0C9EC2FA1FC19@GENOMICS1> (raw)

Hi, 

I have tried to compile examples in libpq++.  I got the following errors:

postgres@vaca1>make all -f Makefile
g++  -Wno-error -Wno-unused -Wl,-Bdynamic
-I/U07/postgres/usr/src/pgsql/postgresql-6.5/include -o testlibpq0
testlibpq0.cc -L/U07/postgres/usr/src/pgsql/postgresql-6.5/lib -lpq++ 
Undefined                       first referenced
 symbol                             in file
socket
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
recv
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
getprotobyname
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
gethostbyname
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
send
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
setsockopt
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
getsockname
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
connect
/U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so
ld: fatal: Symbol referencing errors. No output written to testlibpq0
collect2: ld returned 1 exit status
make: *** [testlibpq0] Error 1


Could anyone help me and let me know whether there is something wrong with
the initial setup and how can I avoid the errors?  I am using g++ (gcc
2.8.1) on Sun solaries 2.6.

Thank you for help.

Jim



Message-ID: <E3E65B3C4E12D311BE6900A0C9EC2FA1FC19@GENOMICS1>
Permalink:  ../E3E65B3C4E12D311BE6900A0C9EC2FA1FC19@GENOMICS1/
Also on:    postgresql.org/message-id/E3E65B3C4E12D311BE6900A0C9EC2FA1FC19@GENOMICS1

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-interfaces@postgresql.org
  Cc: wenjin.zheng@biosourcetechnologies.com
  Subject: Re: Errors from compiling examples for libpq++
  In-Reply-To: <E3E65B3C4E12D311BE6900A0C9EC2FA1FC19@GENOMICS1>
  References: <E3E65B3C4E12D311BE6900A0C9EC2FA1FC19@GENOMICS1>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox