Re: : Errors when compiling with Postgres 7.2.3 Libraries on RedHat 8
Hello,
I tried compiling with g++ and i'm still recieving linking errors. I've also
pasted the contents of my /etc/ld.so.conf file in this e-mail.
/usr/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-3.0.5/lib
/usr/lib/sane
/usr/qt/lib
Sheheryar Sewani
Houston, TX
----Original Message Follows----
From: Tommi Maekitalo <t.maekitalo@epgmbh.de>
To: pgsql-general@postgresql.org
Subject: Re: [GENERAL] :
Date: Mon, 21 Oct 2002 16:55:31 +0200
IME-Version: 1.0
Received: from mc4-f18.law16.hotmail.com ([65.54.237.153]) by
mc4-s7.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 21 Oct
2002 07:57:02 -0700
Received: from relay2.pgsql.com ([64.49.215.143]) by
mc4-f18.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 21 Oct
2002 07:57:02 -0700
Received: from postgresql.org (postgresql.org [64.49.215.8])by
relay2.pgsql.com (Postfix) with ESMTPid EAD4CEE089B; Mon, 21 Oct 2002
10:55:38 -0400 (EDT)
Received: from localhost (postgresql.org [64.49.215.8])by postgresql.org
(Postfix) with ESMTP id D772C475D0Dfor <pgsql-general@postgresql.org>; Mon,
21 Oct 2002 10:55:28 -0400 (EDT)
Received: from mail.eckpart.de (mail.eckpart.de [217.6.160.186])by
postgresql.org (Postfix) with SMTP id 7092A475AD7for
<pgsql-general@postgresql.org>; Mon, 21 Oct 2002 10:55:27 -0400 (EDT)
Received: (qmail 18334 invoked from network); 21 Oct 2002 14:55:31 -0000
Received: from db2.eckpart.de (HELO db2) (tommi@192.168.41.72) by
cserv.eckpart.de with SMTP; 21 Oct 2002 14:55:31 -0000
Organization: Dr. Eckhardt + Partner GmbH
User-Agent: KMail/1.4.3
References: <F183rhUaCxyst1130OB000063a5@hotmail.com>
In-Reply-To: <F183rhUaCxyst1130OB000063a5@hotmail.com>
Message-Id: <200210211655.31411.t.maekitalo@epgmbh.de>
X-Virus-Scanned: by AMaViS new-20020517
Precedence: bulk
Sender: pgsql-general-owner@postgresql.org
Return-Path: pgsql-general-owner+M31891@postgresql.org
X-OriginalArrivalTime: 21 Oct 2002 14:57:02.0256 (UTC)
FILETIME=[1CFDC300:01C27912]
Am Montag, 21. Oktober 2002 16:49 schrieb shey sewani:
Cand find postgres Libpq libraries
Date: Mon, 21 Oct 2002 09:49:25 -0500
Mime-Version: 1.0
Content-Type: text/plain; format=flowedHello,
I recently Intalled RedHat 8.0 on my server. I also upgraded from
Postgres
7.1 to Postgres 7.2.3 using RPMS. I installed all the RPMS for 7.2.3 on
this machine. Unfortunatley I've had some problems compiling programs
that
use libpq++ on this machine. When I compile such programs I get the
following error messages."Querydtntrack.o(.text+0x2d): undefined reference to
`PgConnection::ConnectionBad() const'
Querydtntrack.o(.text+0x4b): undefined reference to
`PgConnection::ErrorMessage() const'
Querydtntrack.o: In function `PgDatabase::PgDatabase[in-charge](char
const*)':
Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseC1EPKc+0x10): undefined
reference to `PgConnection::PgConnection[not-in-charge](char
const*)'Querydtntrack.o: In function `PgDatabase::~PgDatabase
[in-charge]()':
Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseD1Ev+0x16): undefined
reference to `PgConnection::~PgConnection [not-in-charge]()'
Querydtntrack.o: In function `PgDatabase::~PgDatabase [in-charge
deleting]()':
Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseD0Ev+0x16): undefined
reference to `PgConnection::~PgConnection [not-in-charge]()'
Querydtntrack.o(.gnu.linkonce.d._ZTI10PgDatabase+0x8): undefined
reference
to `typeinfo for PgConnection'
collect2: ld returned 1 exit status
make: *** [Querydtntrack] Error 1"I'm using the same make file as I did on my Redhat 7.1 machine with
postgres 7.1"all: Querydtntrack
Querydtntrack: Querydtntrack.o
gcc -o Querydtntrack Querydtntrack.o -lstdc++ -lpq++ -lpq
-march=i686;
clean:
rm -f *.o Querydtntrack core"Any suggestions on what the problem may be.
Thanks,
Sheheryar Sewani
Houston, TX_________________________________________________________________
Get faster connections -- switch to MSN Internet Access!
http://resourcecenter.msn.com/access/plans/default.asp---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
Hi,
you should use g++ when compiling/linking c++.
Tommi
--
Dr. Eckhardt + Partner GmbH
http://www.epgmbh.de
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
_________________________________________________________________
Surf the Web without missing calls!�Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp
Hi,
I just checked my 7.2.2-installation. It looks like libpq++ is not compiled in
by default. Maybe your rpms don't have them. Check "rpm -ql
postgresql-lib|grep libpq++". It should print out the location of your
libpq++.so.
Tommi
Am Montag, 21. Oktober 2002 17:21 schrieb shey sewani:
Hello,
I tried compiling with g++ and i'm still recieving linking errors. I've
also pasted the contents of my /etc/ld.so.conf file in this e-mail./usr/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-3.0.5/lib
/usr/lib/sane
/usr/qt/libSheheryar Sewani
Houston, TX----Original Message Follows----
From: Tommi Maekitalo <t.maekitalo@epgmbh.de>
To: pgsql-general@postgresql.org
Subject: Re: [GENERAL] :
Date: Mon, 21 Oct 2002 16:55:31 +0200
IME-Version: 1.0
Received: from mc4-f18.law16.hotmail.com ([65.54.237.153]) by
mc4-s7.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 21 Oct
2002 07:57:02 -0700
Received: from relay2.pgsql.com ([64.49.215.143]) by
mc4-f18.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 21
Oct 2002 07:57:02 -0700
Received: from postgresql.org (postgresql.org [64.49.215.8])by
relay2.pgsql.com (Postfix) with ESMTPid EAD4CEE089B; Mon, 21 Oct 2002
10:55:38 -0400 (EDT)
Received: from localhost (postgresql.org [64.49.215.8])by postgresql.org
(Postfix) with ESMTP id D772C475D0Dfor <pgsql-general@postgresql.org>; Mon,
21 Oct 2002 10:55:28 -0400 (EDT)
Received: from mail.eckpart.de (mail.eckpart.de [217.6.160.186])by
postgresql.org (Postfix) with SMTP id 7092A475AD7for
<pgsql-general@postgresql.org>; Mon, 21 Oct 2002 10:55:27 -0400 (EDT)
Received: (qmail 18334 invoked from network); 21 Oct 2002 14:55:31 -0000
Received: from db2.eckpart.de (HELO db2) (tommi@192.168.41.72) by
cserv.eckpart.de with SMTP; 21 Oct 2002 14:55:31 -0000
Organization: Dr. Eckhardt + Partner GmbH
User-Agent: KMail/1.4.3
References: <F183rhUaCxyst1130OB000063a5@hotmail.com>
In-Reply-To: <F183rhUaCxyst1130OB000063a5@hotmail.com>
Message-Id: <200210211655.31411.t.maekitalo@epgmbh.de>
X-Virus-Scanned: by AMaViS new-20020517
Precedence: bulk
Sender: pgsql-general-owner@postgresql.org
Return-Path: pgsql-general-owner+M31891@postgresql.org
X-OriginalArrivalTime: 21 Oct 2002 14:57:02.0256 (UTC)
FILETIME=[1CFDC300:01C27912]Am Montag, 21. Oktober 2002 16:49 schrieb shey sewani:
Cand find postgres Libpq libraries
Date: Mon, 21 Oct 2002 09:49:25 -0500
Mime-Version: 1.0
Content-Type: text/plain; format=flowedHello,
I recently Intalled RedHat 8.0 on my server. I also upgraded from
Postgres
7.1 to Postgres 7.2.3 using RPMS. I installed all the RPMS for 7.2.3 on
this machine. Unfortunatley I've had some problems compiling programsthat
use libpq++ on this machine. When I compile such programs I get the
following error messages."Querydtntrack.o(.text+0x2d): undefined reference to
`PgConnection::ConnectionBad() const'
Querydtntrack.o(.text+0x4b): undefined reference to
`PgConnection::ErrorMessage() const'
Querydtntrack.o: In function `PgDatabase::PgDatabase[in-charge](char
const*)':
Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseC1EPKc+0x10): undefined
reference to `PgConnection::PgConnection[not-in-charge](char
const*)'Querydtntrack.o: In function `PgDatabase::~PgDatabase
[in-charge]()':
Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseD1Ev+0x16): undefined
reference to `PgConnection::~PgConnection [not-in-charge]()'
Querydtntrack.o: In function `PgDatabase::~PgDatabase [in-charge
deleting]()':
Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseD0Ev+0x16): undefined
reference to `PgConnection::~PgConnection [not-in-charge]()'
Querydtntrack.o(.gnu.linkonce.d._ZTI10PgDatabase+0x8): undefinedreference
to `typeinfo for PgConnection'
collect2: ld returned 1 exit status
make: *** [Querydtntrack] Error 1"I'm using the same make file as I did on my Redhat 7.1 machine with
postgres 7.1"all: Querydtntrack
Querydtntrack: Querydtntrack.o
gcc -o Querydtntrack Querydtntrack.o -lstdc++ -lpq++ -lpq
-march=i686;
clean:
rm -f *.o Querydtntrack core"Any suggestions on what the problem may be.
Thanks,
Sheheryar Sewani
Houston, TX_________________________________________________________________
Get faster connections -- switch to MSN Internet Access!
http://resourcecenter.msn.com/access/plans/default.asp---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?Hi,
you should use g++ when compiling/linking c++.
Tommi
--
Dr. Eckhardt + Partner GmbH
http://www.epgmbh.de
Hello,
my RPM is currently not working right now, it just hangs, but if i ru the
locate command for the library file (locate libpq++) its under /usr/lib.
I installed the library file and the rest of the RPM packages for Postgres
7.2.3
few days ago.
Sheheryar Sewani
Houston, TX
----Original Message Follows----
From: Tommi Maekitalo <t.maekitalo@epgmbh.de>
To: "shey sewani" <pakix2000@hotmail.com>,pgsql-general@postgresql.org
Subject: Re: [GENERAL] : Errors when compiling with Postgres 7.2.3 Libraries
on RedHat 8
Date: Tue, 22 Oct 2002 08:50:58 +0200
MIME-Version: 1.0
Received: from mc7-f27.law1.hotmail.com ([65.54.253.34]) by
mc7-s14.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.4905); Mon, 21 Oct
2002 23:52:38 -0700
Received: from relay2.pgsql.com ([64.49.215.143]) by
mc7-f27.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.4905); Mon, 21 Oct
2002 23:52:38 -0700
Received: from postgresql.org (postgresql.org [64.49.215.8])by
relay2.pgsql.com (Postfix) with ESMTPid 09336EDFE1E; Tue, 22 Oct 2002
02:51:08 -0400 (EDT)
Received: from localhost (postgresql.org [64.49.215.8])by postgresql.org
(Postfix) with ESMTP id 7D6EE475AD7for <pgsql-general@postgresql.org>; Tue,
22 Oct 2002 02:51:00 -0400 (EDT)
Received: from mail.eckpart.de (mail.eckpart.de [217.6.160.186])by
postgresql.org (Postfix) with SMTP id 13371474E53for
<pgsql-general@postgresql.org>; Tue, 22 Oct 2002 02:50:59 -0400 (EDT)
Received: (qmail 23027 invoked from network); 22 Oct 2002 06:50:59 -0000
Received: from db2.eckpart.de (HELO db2) (tommi@192.168.41.72) by
cserv.eckpart.de with SMTP; 22 Oct 2002 06:50:59 -0000
Organization: Dr. Eckhardt + Partner GmbH
User-Agent: KMail/1.4.3
References: <F45MSi6xzmeWgUSp3sJ0000188f@hotmail.com>
In-Reply-To: <F45MSi6xzmeWgUSp3sJ0000188f@hotmail.com>
Message-Id: <200210220850.58612.t.maekitalo@epgmbh.de>
X-Virus-Scanned: by AMaViS new-20020517
Precedence: bulk
Sender: pgsql-general-owner@postgresql.org
Return-Path: pgsql-general-owner+M31950@postgresql.org
X-OriginalArrivalTime: 22 Oct 2002 06:52:38.0334 (UTC)
FILETIME=[9BF4F5E0:01C27997]
Hi,
I just checked my 7.2.2-installation. It looks like libpq++ is not compiled
in
by default. Maybe your rpms don't have them. Check "rpm -ql
postgresql-lib|grep libpq++". It should print out the location of your
libpq++.so.
Tommi
Am Montag, 21. Oktober 2002 17:21 schrieb shey sewani:
Hello,
I tried compiling with g++ and i'm still recieving linking errors. I've
also pasted the contents of my /etc/ld.so.conf file in this e-mail./usr/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-3.0.5/lib
/usr/lib/sane
/usr/qt/libSheheryar Sewani
Houston, TX----Original Message Follows----
From: Tommi Maekitalo <t.maekitalo@epgmbh.de>
To: pgsql-general@postgresql.org
Subject: Re: [GENERAL] :
Date: Mon, 21 Oct 2002 16:55:31 +0200
IME-Version: 1.0
Received: from mc4-f18.law16.hotmail.com ([65.54.237.153]) by
mc4-s7.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 21
Oct
2002 07:57:02 -0700
Received: from relay2.pgsql.com ([64.49.215.143]) by
mc4-f18.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 21
Oct 2002 07:57:02 -0700
Received: from postgresql.org (postgresql.org [64.49.215.8])by
relay2.pgsql.com (Postfix) with ESMTPid EAD4CEE089B; Mon, 21 Oct 2002
10:55:38 -0400 (EDT)
Received: from localhost (postgresql.org [64.49.215.8])by postgresql.org
(Postfix) with ESMTP id D772C475D0Dfor <pgsql-general@postgresql.org>;
Mon,
21 Oct 2002 10:55:28 -0400 (EDT)
Received: from mail.eckpart.de (mail.eckpart.de [217.6.160.186])by
postgresql.org (Postfix) with SMTP id 7092A475AD7for
<pgsql-general@postgresql.org>; Mon, 21 Oct 2002 10:55:27 -0400 (EDT)
Received: (qmail 18334 invoked from network); 21 Oct 2002 14:55:31 -0000
Received: from db2.eckpart.de (HELO db2) (tommi@192.168.41.72) by
cserv.eckpart.de with SMTP; 21 Oct 2002 14:55:31 -0000
Organization: Dr. Eckhardt + Partner GmbH
User-Agent: KMail/1.4.3
References: <F183rhUaCxyst1130OB000063a5@hotmail.com>
In-Reply-To: <F183rhUaCxyst1130OB000063a5@hotmail.com>
Message-Id: <200210211655.31411.t.maekitalo@epgmbh.de>
X-Virus-Scanned: by AMaViS new-20020517
Precedence: bulk
Sender: pgsql-general-owner@postgresql.org
Return-Path: pgsql-general-owner+M31891@postgresql.org
X-OriginalArrivalTime: 21 Oct 2002 14:57:02.0256 (UTC)
FILETIME=[1CFDC300:01C27912]Am Montag, 21. Oktober 2002 16:49 schrieb shey sewani:
Cand find postgres Libpq libraries
Date: Mon, 21 Oct 2002 09:49:25 -0500
Mime-Version: 1.0
Content-Type: text/plain; format=flowedHello,
I recently Intalled RedHat 8.0 on my server. I also upgraded from
Postgres
7.1 to Postgres 7.2.3 using RPMS. I installed all the RPMS for 7.2.3
on
this machine. Unfortunatley I've had some problems compiling programs
that
use libpq++ on this machine. When I compile such programs I get the
following error messages."Querydtntrack.o(.text+0x2d): undefined reference to
`PgConnection::ConnectionBad() const'
Querydtntrack.o(.text+0x4b): undefined reference to
`PgConnection::ErrorMessage() const'
Querydtntrack.o: In function `PgDatabase::PgDatabase[in-charge](char
const*)':
Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseC1EPKc+0x10): undefined
reference to `PgConnection::PgConnection[not-in-charge](char
const*)'Querydtntrack.o: In function `PgDatabase::~PgDatabase
[in-charge]()':
Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseD1Ev+0x16): undefined
reference to `PgConnection::~PgConnection [not-in-charge]()'
Querydtntrack.o: In function `PgDatabase::~PgDatabase [in-charge
deleting]()':
Querydtntrack.o(.gnu.linkonce.t._ZN10PgDatabaseD0Ev+0x16): undefined
reference to `PgConnection::~PgConnection [not-in-charge]()'
Querydtntrack.o(.gnu.linkonce.d._ZTI10PgDatabase+0x8): undefinedreference
to `typeinfo for PgConnection'
collect2: ld returned 1 exit status
make: *** [Querydtntrack] Error 1"I'm using the same make file as I did on my Redhat 7.1 machine with
postgres 7.1"all: Querydtntrack
Querydtntrack: Querydtntrack.o
gcc -o Querydtntrack Querydtntrack.o -lstdc++ -lpq++ -lpq
-march=i686;
clean:
rm -f *.o Querydtntrack core"Any suggestions on what the problem may be.
Thanks,
Sheheryar Sewani
Houston, TX_________________________________________________________________
Get faster connections -- switch to MSN Internet Access!
http://resourcecenter.msn.com/access/plans/default.asp---------------------------(end of
broadcast)---------------------------
TIP 6: Have you searched our list archives?
Hi,
you should use g++ when compiling/linking c++.
Tommi
--
Dr. Eckhardt + Partner GmbH
http://www.epgmbh.de
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Import Notes
Resolved by subject fallback
Hi,
It should work then. Maybe the library is compiled with another compiler. I
remember, that RedHat use some strange gcc-versions sometimes.
Try this:
---ttt.cpp:
#include <libpq++.h>
int main()
{
PgDatabase conn("dbname=ttt");
}
---Makefile:
INCLUDE=/usr/local/pgsql/include
LIB=/usr/local/pgsql/lib
CXXFLAGS=-I${INCLUDE}
LFLAGS=-L${LIB}
all: ttt
ttt: ttt.o
g++ -o ttt ${LFLAGS} ttt.o -lpq++ -lpq
clean:
rm -f *.o ttt.o ttt
You should maybe adjust your directories. Then we have the same startingpoint.
If your rpm-database is broken, you could ask the rpm-file, which you
installed with rpm -qlp postgresql-lib.rpm|grep libpg++.
Tommi
Hi,
I had 7.2.2, but just upgraded to 7.2.3. It works well there also. There must
be something broken with your rpms.
Tommi
Am Donnerstag, 24. Oktober 2002 02:18 schrieb shey sewani:
Hello,
I uninstalled the RPM package for postgresql-libs-7.2.3 and re-installed
the postgresql library package for postgres 7.2.2The program compiles fine now and runs like expected.
Sheheryar Sewani
Houston, TX----Original Message Follows----
From: Tommi Maekitalo <t.maekitalo@epgmbh.de>
To: "shey sewani" <pakix2000@hotmail.com>, pgsql-general@postgresql.org
Subject: Re: [GENERAL] : Errors when compiling with Postgres 7.2.3
Libraries on RedHat 8
Date: Wed, 23 Oct 2002 10:20:24 +0200
MIME-Version: 1.0
Received: from mail.eckpart.de ([217.6.160.186]) by
mc1-f5.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 23 Oct
2002 01:20:27 -0700 Received: (qmail 30866 invoked from network); 23 Oct
2002 08:20:25 -0000 Received: from db2.eckpart.de (HELO db2)
(tommi@192.168.41.72) by cserv.eckpart.de with SMTP; 23 Oct 2002 08:20:25
-0000
Organization: Dr. Eckhardt + Partner GmbH
User-Agent: KMail/1.4.3
References: <F106gKMy5KINzq6xEfh0000848b@hotmail.com>
In-Reply-To: <F106gKMy5KINzq6xEfh0000848b@hotmail.com>
Message-Id: <200210231020.25001.t.maekitalo@epgmbh.de>
Return-Path: t.maekitalo@epgmbh.de
X-OriginalArrivalTime: 23 Oct 2002 08:20:28.0062 (UTC)
FILETIME=[0B5F63E0:01C27A6D]Hi,
It should work then. Maybe the library is compiled with another compiler. I
remember, that RedHat use some strange gcc-versions sometimes.Try this:
---ttt.cpp:
#include <libpq++.h>int main()
{
PgDatabase conn("dbname=ttt");
}---Makefile:
INCLUDE=/usr/local/pgsql/include
LIB=/usr/local/pgsql/lib
CXXFLAGS=-I${INCLUDE}
LFLAGS=-L${LIB}all: ttt
ttt: ttt.o
g++ -o ttt ${LFLAGS} ttt.o -lpq++ -lpqclean:
rm -f *.o ttt.o tttYou should maybe adjust your directories. Then we have the same
startingpoint.If your rpm-database is broken, you could ask the rpm-file, which you
installed with rpm -qlp postgresql-lib.rpm|grep libpg++.Tommi
_________________________________________________________________
Get a speedy connection with MSN Broadband. Join now!
http://resourcecenter.msn.com/access/plans/freeactivation.asp
--
Dr. Eckhardt + Partner GmbH
http://www.epgmbh.de
Import Notes
Reply to msg id not found: F161zRsft83wxnGKeny00006927@hotmail.comReference msg id not found: F161zRsft83wxnGKeny00006927@hotmail.com | Resolved by subject fallback