pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedLink error from libpq++ on RedHat 6.0 and Postgres 6.5.1
7+ messages / 4 participants
[nested] [flat]
* Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1
@ 1999-09-02 09:59 Claudio Cicognani <klaudio@btstore.com>
0 siblings, 0 replies; 7+ messages in thread
From: Claudio Cicognani @ 1999-09-02 09:59 UTC (permalink / raw)
To: pgsql-interfaces
Hallo,
I received the following error when compiling C++ code with Postgres
6.5.1 on Red Hat 6.0 (glibc 2)
/usr/lib/libpq++.so: undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep'
/usr/lib/libpq++.so: undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03RepPv'
/usr/lib/libpq++.so: undefined reference to `__eh_pc'
collect2: ld returned 1 exit status
Some helps ?
Thanks in advance.
Claudio Cicognani
<klaudio@btstore.com>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1
@ 1999-09-02 11:19 Claudio Cicognani <braintech@btstore.com>
1999-09-02 14:21 ` Re: [INTERFACES] Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1 Thomas Lockhart <lockhart@alumni.caltech.edu>
0 siblings, 1 reply; 7+ messages in thread
From: Claudio Cicognani @ 1999-09-02 11:19 UTC (permalink / raw)
To: pgsql-interfaces
Hallo,
I received the following error when compiling C++ code (using -lpq++ -lpq -lcrypt) with Postgres
6.5.1 (last RPM files) on Red Hat 6.0 (glibc 2) :
/usr/lib/libpq++.so: undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep'
/usr/lib/libpq++.so: undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03RepPv'
/usr/lib/libpq++.so: undefined reference to `__eh_pc' collect2: ld
returned 1 exit status
Some helps ?
Thanks in advance.
Claudio Cicognani
<braintech@btstore.com>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: [INTERFACES] Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1
1999-09-02 11:19 Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1 Claudio Cicognani <braintech@btstore.com>
@ 1999-09-02 14:21 ` Thomas Lockhart <lockhart@alumni.caltech.edu>
1999-09-03 16:08 ` Re: [INTERFACES] Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1 Lamar Owen <lamar.owen@wgcr.org>
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Lockhart @ 1999-09-02 14:21 UTC (permalink / raw)
To: Claudio Cicognani <braintech@btstore.com>; Lamar Owen <lamar.owen@wgcr.org>; +Cc: pgsql-interfaces
> I received the following error when compiling C++ code
> (using -lpq++ -lpq -lcrypt) with Postgres
> 6.5.1 (last RPM files) on Red Hat 6.0 (glibc 2) :
> /usr/lib/libpq++.so: undefined reference to
> `clone__Q2t12basic_string3ZcZt18...'
> /usr/lib/libpq++.so: undefined reference to `__eh_pc' collect2: ld
> returned 1 exit status
> Some helps ?
Ah, this looks familiar! I built the rpms using the RH5.2 gcc/g++
compiler. RH6.0 has the egcs compiler set; you are seeing the
"mangled" name of a routine required by the older library I built
which is not present in the newer support libraries.
I believe that the only fix is to rebuild the rpms from source on your
machine, so that libpq++ is constructed using your newer compiler. It
is pretty easy; just get the src rpm from postgresql.org and then use
either
rpm --rebuild postgresql-6.5.1-2.src.rpm
or
rpm -ivv postgresql-6.5.1-2.src.rpm
cd /usr/src/redhat/SPECS
rpm -ba postgresql-6.5.1.spec
Another possibility is to pick up Lamar Owen's binary rpms (look at
the hackers or ports archive for details); I think he had a RH6.0
machine to build with.
btw, I'm just now transferring new rpms to postgresql.org which fix
some reported problems for missing files in the libpq++ interface
(Lamar, we will need to sync our spec files again). The new files are
labeled postgresql*-6.5.1-2.*.rpm.
Good luck.
- Thomas
--
Thomas Lockhart lockhart@alumni.caltech.edu
South Pasadena, California
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: [INTERFACES] Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1
1999-09-02 11:19 Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1 Claudio Cicognani <braintech@btstore.com>
1999-09-02 14:21 ` Re: [INTERFACES] Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1 Thomas Lockhart <lockhart@alumni.caltech.edu>
@ 1999-09-03 16:08 ` Lamar Owen <lamar.owen@wgcr.org>
0 siblings, 0 replies; 7+ messages in thread
From: Lamar Owen @ 1999-09-03 16:08 UTC (permalink / raw)
To: Thomas Lockhart <lockhart@alumni.caltech.edu>; +Cc: Claudio Cicognani <braintech@btstore.com>; pgsql-interfaces
Thomas Lockhart wrote:
> I believe that the only fix is to rebuild the rpms from source on your
> machine, so that libpq++ is constructed using your newer compiler. It
One caveat with rebuilding -- you must have python-devel installed,
which is not by default installed under 6.0, unless you select it in the
development libraries.
> Another possibility is to pick up Lamar Owen's binary rpms (look at
> the hackers or ports archive for details); I think he had a RH6.0
> machine to build with.
I have a machine to build with -- just haven't gotten the binaries up to
the site. Am waiting on 6.5.2 before doing another released build.
> (Lamar, we will need to sync our spec files again). The new files are
> labeled postgresql*-6.5.1-2.*.rpm.
Got them; will sync up.
Lamar Owen
WGCR Internet Radio
^ permalink raw reply [nested|flat] 7+ messages in thread
* Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1
@ 1999-09-08 11:44 Claudio Cicognani <braintech@btstore.com>
0 siblings, 0 replies; 7+ messages in thread
From: Claudio Cicognani @ 1999-09-08 11:44 UTC (permalink / raw)
To: pgsql-interfaces
Hallo,
I received the following error when compiling C++ code (using -lpq++
-lpq -lcrypt) with Postgres
6.5.1 (last RPM files) on Red Hat 6.0 (glibc 2) :
/usr/lib/libpq++.so: undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep'
/usr/lib/libpq++.so: undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03RepPv'
/usr/lib/libpq++.so: undefined reference to `__eh_pc' collect2: ld
returned 1 exit status
As suggested by Thomas Lockhart, I have downloaded the last RPM source
format from ftp.postgresql.org
and try to rebuild the package (from root user) with:
rpm --rebuild postgresql.6.5.1-2.src.rpm
or with:
rpm -ivv postgresql.6.5.1-2.src.rpm
cd /usr/src/redhat/SPECS
rpm -ba postgresql.6.5.1.spec
The build process completed well, but where is the new binary RPM
package ?
(The default location is /usr/src/redhat/RPMS/i386, but is empty !!)
PS. Attachment are the postgres "spec" file and the "rpm -ba" result
file.
Some helps ?
Thanks in advance.
Claudio Cicognani
braintech@btstore.com
Attachments:
postgresql-6.5.1.spec (text/plain, 14.5K) download
Summary: The Postgres SQL database package.
Name: postgresql
Version: 6.5.1
Release: 2
Copyright: BSD
Group: Applications/Databases
Source0: ftp://ftp.postgresql.org/pub/postgresql-%{version}.tar.gz
Source1: ftp://www.flex.ro/pub/pgaccess/pgaccess-0.96.tar.gz
Source2: http://www.retep.org.uk/postgres/jdbc6.5-1.1.jar
Source3: postgresql.init
Source4: man.tar.gz
Patch0: postgresql-6.5.1-alpha.patch.gz
Buildroot: /var/tmp/pgsql-root
Prefix: /usr
Prereq: /sbin/chkconfig /sbin/ldconfig /usr/sbin/useradd
Vendor: The PostgreSQL Global Development Group
Packager: Thomas Lockhart <lockhart@alumni.caltech.edu>
Url: http://www.postgresql.org/
ExcludeArch: armv4l
Conflicts: postgresql-clients
%description
PostgreSQL is an advanced Object-Relational database management system
(DBMS) that supports almost all SQL constructs (including transactions,
subselects and user-defined types and functions).
postgresql includes the client programs and client libraries
that you'll need to access a PostgreSQL database management system
server. This package contains the client libraries for C, and C++,
as well as command-line utilities for managing PostgreSQL databases on a
remote server. If you just want to connect to an existing remote
PostgreSQL server, this package is all you need.
You should install postgresql if you're installing postgresql-server.
%package server
Summary: The programs needed for a PostgreSQL server.
Group: Applications/Databases
Requires: postgresql = %{version}
%description server
postgresql-server includes the programs needed to create and run a PostgreSQL
server, which will in turn allow you to create and maintain PostgreSQL
databases. PostgreSQL is an advanced Object-Relational database
management system (DBMS) that supports almost all SQL constructs
(including transactions, subselects and user-defined types and
functions).
You should install postgresql if you want to create and maintain your
own PostgreSQL databases and/or your own PostgreSQL server.
%package devel
Summary: PostgreSQL development header files and libraries.
Group: Development/Libraries
%description devel
This package contains the header files and libraries needed to
compile C or C++ applications which will directly interact with
a PostgreSQL server. It include the ecpg Embedded C Postgres
preprocessor.
Install this package if you want to develop applications which will
interact with a PostgreSQL server.
%package jdbc
Summary: The java-based client programs needed for accessing a PostgreSQL server.
Group: Applications/Databases
%description jdbc
postgresql-jdbc includes the jar file that you'll need to access a PostgreSQL
database management system server.
%package odbc
Summary: The ODBC driver needed for accessing a PostgreSQL server.
Group: Applications/Databases
%description odbc
Postgresql-odbc includes the odbc driver and sample configuration files
that you'll need to access a PostgreSQL database management system
server.
%package perl
Summary: The perl-based client programs needed for accessing a PostgreSQL server.
Group: Applications/Databases
Requires: perl >= 5.004-4
%description perl
postgresql-perl includes the perl-based client programs and client libraries
that you'll need to access a PostgreSQL database management system
server.
%package python
Summary: The python-based client programs needed for accessing a PostgreSQL server.
Group: Applications/Databases
Requires: python >= 1.5
%description python
postgresql-python includes the python-based client programs and client libraries
that you'll need to access a PostgreSQL database management system
server.
%package tcl
Summary: The tcl-based client programs needed for accessing a PostgreSQL server.
Group: Applications/Databases
Requires: tcl >= 8.0, tk >= 8.0
%description tcl
postgresql-tcl includes the tcl-based client programs and client libraries
that you'll need to access a PostgreSQL database management system
server. This package contains the tcl client libraries,
as well as pgaccess, a wish-based utility for manipulating PostgreSQL databases.
%prep
%setup -q
%ifarch alpha
%patch0 -p1
%endif
cd src/bin
gzip -dc $RPM_SOURCE_DIR/pgaccess-0.96.tar.gz | tar -xvvf -
%build
pushd src
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \
--enable-hba --enable-locale \
--with-perl \
--with-tcl --with-tk --with-x \
--with-odbc --with-java \
--with-python
make all
pushd interfaces/python
cp /usr/lib/python1.5/config/Makefile.pre.in .
echo *shared* > Setup
echo _pg pgmodule.c -I../../include -I../libpq -L../libpq -lpq -lcrypt >> Setup
make -f Makefile.pre.in boot
make
popd
popd
# Unpack the docs
make all PGDOCS=unpacked -C doc
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/{include/pgsql,lib,bin,man}
mkdir -p $RPM_BUILD_ROOT/var/lib/pgsql
#mkdir -p $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/%{buildarch}-linux/auto/Pg
make POSTGRESDIR=$RPM_BUILD_ROOT/usr PREFIX=$RPM_BUILD_ROOT/usr -C src install
make POSTGRESDIR=$RPM_BUILD_ROOT/usr PREFIX=$RPM_BUILD_ROOT/usr -C src/interfaces/perl5 install
# Get rid of the packing list generated by the perl Makefile, and build my own...
find $RPM_BUILD_ROOT/usr/lib/perl5 -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT/usr/lib/perl5 -type f -print | \
sed -e "s|$RPM_BUILD_ROOT/|/|g" > perlfiles.list
find $RPM_BUILD_ROOT/usr/lib/perl5 -type d -name Pg -print | \
sed -e "s|$RPM_BUILD_ROOT/|%dir /|g" >> perlfiles.list
#make -C doc
pushd $RPM_BUILD_ROOT/usr/man
gzip -dc $RPM_SOURCE_DIR/man.tar.gz | tar -xvvf -
popd
# Move all includes beneath /usr/include/pgsql.
pushd $RPM_BUILD_ROOT/usr/include
rm -rf include
for f in *.h access commands executor lib libpq libpq++.H libpq++ port utils ; do
mv $f pgsql
done
popd
# Move all templates/examples beneath /usr/lib/pgsql
pushd $RPM_BUILD_ROOT/usr/lib
mkdir -p pgsql
mv *source *sample pgsql
popd
# ODBC
pushd src/interfaces/odbc
cp odbcinst.ini $RPM_BUILD_ROOT/var/lib/pgsql/
popd
# TCL/TK
install -m 0755 src/bin/pgaccess/pgaccess.tcl $RPM_BUILD_ROOT/usr/bin/pgaccess
# Perl
# No need to do anything right now. But later, we will try building everything
# on the target machine to use the architecture-specific installation features
# in the perl installation.
#pushd src/interfaces/perl5
#mkdir -p $RPM_BUILD_ROOT/usr/lib/pgsql/perl5
#cp Pg.pm $RPM_BUILD_ROOT/usr/lib/pgsql/perl5
#pushd blib/arch/auto/Pg
#cp Pg.so Pg.bs $RPM_BUILD_ROOT/usr/lib/pgsql/perl5
#popd
#popd
# Python
pushd src/interfaces/python
# Makefile.pre.in doesn't yet support .py files anyway, so we stick to a manual installation
mkdir -p $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages
install -m 644 _pgmodule.so *.py $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/
popd
# Java/JDBC
# We know that JDK1.2 is pre-beta at this time, so just install the JDK1.1-compatible driver.
# The user will have to set a CLASSPATH to find it here, but not sure where else to put it...
install -m 755 $RPM_SOURCE_DIR/jdbc6.5-1.1.jar $RPM_BUILD_ROOT/usr/lib/pgsql
chmod 644 $RPM_BUILD_ROOT/usr/man/*/*
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
install -m 755 $RPM_SOURCE_DIR/postgresql.init $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
for I in 3 5; do
install -d $RPM_BUILD_ROOT/etc/rc.d/rc$I.d
pushd $RPM_BUILD_ROOT/etc/rc.d/rc$I.d
ln -s ../init.d/postgresql S73postgresql
popd
done
## Create sample database
## Disabled because an in-place upgrade using rpm only is probably not the right thing to do.
## Also, it is a PITA; should let the user decide how to coordinate dump and reload if necessary.
#PATH=/usr/sbin:$PATH useradd -M -r -d /var/lib/pgsql -s /bin/bash \
# -c "PostgreSQL Server" postgres || :
#chown -R postgres.postgres $RPM_BUILD_ROOT/var/lib/pgsql
#export PATH=$PATH:$RPM_BUILD_ROOT/usr/bin
#[ ! -f $RPM_BUILD_ROOT/usr/lib/libpq.so.1 ] && ln -sf libpq.so $RPM_BUILD_ROOT/usr/lib/libpq.so.1
#unset ENV || :
#su postgres -c "LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib \
# $RPM_BUILD_ROOT/usr/bin/initdb --pgdata=$RPM_BUILD_ROOT/var/lib/pgsql \
# --pglib=$RPM_BUILD_ROOT/usr/lib/pgsql"
#[ -L $RPM_BUILD_ROOT/usr/lib/libpq.so.1 ] && rm -f $RPM_BUILD_ROOT/usr/lib/libpq.so.1
## this was a good one
#chmod 640 $RPM_BUILD_ROOT/var/lib/pgsql/pg_pwd
#mkdir -p howto
#tar xzf $RPM_SOURCE_DIR/pgsql-Database-HOWTO-html.tar.gz -C howto
mkdir -p pgaccess
cp src/bin/pgaccess/README pgaccess
cp src/bin/pgaccess/*.html pgaccess
cp src/bin/pgaccess/*.sql pgaccess
# Strip 'em all
strip $RPM_BUILD_ROOT/usr/bin/* || :
%pre server
useradd -M -o -r -d /var/lib/pgsql -s /bin/bash \
-c "PostgreSQL Server" postgres >/dev/null 2>&1 || :
%post -p /sbin/ldconfig
%post -p /sbin/ldconfig server
%post perl
# We *should* use the architecture-specific area to hold our perl interface.
# For now, we will use the architecture-neutral areas, and prebuild everything.
#PerlTarget=`perl -MConfig -e 'print $Config{archlib}'`
#pushd /usr/lib/pgsql/perl5
#mv Pg.pm $PerlTarget/
#mv Pg.so Pg.bs $PerlTarget/auto/Pg/
#popd
%post -p /sbin/ldconfig odbc
%post -p /sbin/ldconfig tcl
%preun
if [ $1 = 0 ] ; then
chkconfig --del postgresql
fi
%postun -p /sbin/ldconfig
%postun server
/sbin/ldconfig
if [ $1 = 0 ] ; then
userdel postgres >/dev/null 2>&1 || :
fi
%postun -p /sbin/ldconfig odbc
%postun -p /sbin/ldconfig tcl
%clean
rm -rf $RPM_BUILD_ROOT
rm -f perlfiles.list
rm -rf howto
%files
%defattr(-,root,root)
%doc doc/FAQ doc/FAQ_Linux doc/README*
%doc COPYRIGHT README HISTORY doc/bug.template
%doc contrib doc/unpacked/*
%doc doc/*.ps.gz
#%doc howto
%attr(755,root,root) %dir /usr/lib/pgsql
%attr(755,root,root) /usr/lib/libpq.so*
%attr(755,root,root) /usr/lib/libecpg.so*
%attr(755,root,root) /usr/lib/libpq++.so*
/usr/bin/createdb
/usr/bin/createlang
/usr/bin/createuser
/usr/bin/destroydb
/usr/bin/destroylang
/usr/bin/destroyuser
/usr/bin/pg_dump
/usr/bin/pg_dumpall
/usr/bin/pg_id
/usr/bin/psql
/usr/bin/vacuumdb
/usr/man/manl/*
/usr/man/man1/createdb.1
/usr/man/man1/createuser.1
/usr/man/man1/destroydb.1
/usr/man/man1/destroyuser.1
/usr/man/man1/pg_dump.1
/usr/man/man1/pg_dumpall.1
/usr/man/man1/psql.1
/usr/man/man1/vacuumdb.1
%files server
%defattr(-,root,root)
%config /etc/rc.d/*
%attr(700,postgres,postgres) %dir /var/lib/pgsql
%attr(755,root,root) /usr/lib/plpgsql.so*
%attr(755,root,root) /usr/lib/pltcl.so*
/usr/bin/initdb
/usr/bin/initlocation
/usr/bin/pg_passwd
/usr/bin/pg_version
/usr/bin/postgres
/usr/bin/postmaster
/usr/lib/pgsql/*
#/usr/man/man5/*
/usr/man/man1/initdb.1
/usr/man/man1/initlocation.1
/usr/man/man1/ipcclean.1
/usr/man/man1/pg_passwd.1
/usr/man/man1/pgadmin.1
/usr/man/man1/postgres.1
/usr/man/man1/postmaster.1
%files devel
%defattr(-,root,root)
/usr/lib/libecpg.a
/usr/lib/libpq++.a
/usr/lib/libpq.a
/usr/bin/ecpg
/usr/include/pgsql
/usr/man/man1/ecpg.1
#/usr/man/man3/*
%files tcl
%defattr(-,root,root)
%doc pgaccess
%attr(755,root,root) /usr/lib/libpgtcl.so*
%attr(755,root,root) /usr/lib/libpgtcl.a
/usr/bin/pgaccess
/usr/bin/pgtclsh
/usr/bin/pgtksh
/usr/man/man1/pgaccess.1
/usr/man/man1/pgtclsh.1
/usr/man/man1/pgtksh.1
%files odbc
%defattr(-,root,root)
%attr(755,root,root) /usr/lib/libpsqlodbc.so*
%attr(755,root,root) /usr/lib/libpsqlodbc.a
/var/lib/pgsql/odbcinst.ini
%files -f perlfiles.list perl
%dir /usr/lib/perl5/site_perl/%{buildarch}-linux/auto
%files python
%defattr(-,root,root)
/usr/lib/python1.5/site-packages/_pgmodule.so
/usr/lib/python1.5/site-packages/*.py
%files jdbc
%defattr(-,root,root)
/usr/lib/pgsql/jdbc6.5-1.1.jar
%changelog
* Sat Aug 14 1999 Thomas Lockhart <lockhart@alumni.caltech.edu>
- Include statically linked libraries
- Use new sgml-based man pages as a patch
- Augment ODBC file list
* Tue Jul 27 1999 Thomas Lockhart <lockhart@alumni.caltech.edu>
- version 6.5.1
* Sat Jun 19 1999 Thomas Lockhart <lockhart@alumni.caltech.edu>
- deprecate clients rpm, and define a server rpm for the backend
- version 6.5
- updated pgaccess to version 0.96
- build ODBC interface library
- split tcl and ODBC packages into separate binary rpms
* Sat Apr 17 1999 Jeff Johnson <jbj@redhat.com>
- exclude alpha for Red Hat 6.0.
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- auto rebuild in the new build environment (release 2)
* Wed Feb 03 1999 Cristian Gafton <gafton@redhat.com>
- version 6.4.2
- get rid of the -data package (shipping it was a BAD idea)
* Sat Oct 10 1998 Cristian Gafton <gafton@redhat.com>
- strip all binaries
- use defattr in all packages
- updated pgaccess to version 0.90
- /var/lib/pgsql/pg_pwd should not be 666
* Sun Jun 21 1998 Jeff Johnson <jbj@redhat.com>
- create /usr/lib/pgsql (like /usr/include/pgsql)
- resurrect libpq++.so*
- fix name problem in startup-script (problem #533)
* Fri Jun 19 1998 Jeff Johnson <jbj@redhat.com>
- configure had "--prefix=$RPM_BUILD_ROOT/usr"
- move all include files below /usr/include/pgsql.
- resurrect perl client file lists.
* Tue May 05 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr
* Tue May 05 1998 Cristian Gafton <gafton@redhat.com>
- build on alpha
* Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
- enhanced initscript
* Tue Apr 21 1998 Cristian Gafton <gafton@redhat.com>
- finally v6.3.2 is here !
* Wed Apr 15 1998 Cristian Gafton <gafton@redhat.com>
- added the include files in the devel package
* Wed Apr 01 1998 Cristian Gafton <gafton@redhat.com>
- finally managed to get a patch for 6.3.1 to make it install corectly. Boy,
what a mess ! ;-(
* Tue Mar 03 1998 Cristian Gafton <gafton@redhat.com>
- upgraded tp 6.3 release
* Sat Feb 28 1998 Cristian Gafton <gafton@redhat.com>
- upgraded to the latest snapshot
- splitted yet one more subpackage: clients
* Tue Jan 20 1998 Cristian Gafton <gafton@redhat.com>
- the installed devel-library is no longer stripped (duh!)
- added the 7 patches found on the ftp.postgresql.org site
- corrected the -rh patch to patch configure.in rather than configure; we
now use autoconf
- added a patch to fix the broken psort function
- build TCL and C++ libraries as well
- updated pgaccess to version 0.76
* Thu Oct 23 1997 Cristian Gafton <gafton@redhat.com>
- cleaned up the spec file for version 6.2.1
- splited devel subpackage
- added chkconfig support in %preun and %post
- added optional data package
* Mon Oct 13 1997 Elliot Lee <sopwith@cuc.edu> 6.2-3
- Fixed lots of bung-ups in the spec file, made it FSSTND compliant, etc.
- Removed jdbc package, jdk isn't stable yet as far as what goes where.
- Updated to v 6.2.1
* Thu Oct 9 1997 10:58:14 dan
- on pre-installation script now the `data' dir is renamed to
`data.rpmorig' (no more wild deletions!).
- added `postgresql-jdbc' sub-package.
- postgresql.sh script: defined function `add_to_path()' and
changed the location of postgresql.jar in the CLASSPATH.
* Sat Oct 4 1997 10:27:43 dan
- updated to version 6.2.
- added auto installation's scripts (pre, post, preun, postun)
build_result.gz (application/x-gzip, 18.9K) download
braintech.vcf (text/x-vcard, 205B) download
begin:vcard
n:Cicognani;Claudio
x-mozilla-html:FALSE
org:BRAIN TECH 2 S.n.c.;Industrial Automation
adr:;;;;;;
version:2.1
email;internet:klaudio@btstore.com
x-mozilla-cpt:;0
fn:Claudio Cicognani
end:vcard
^ permalink raw reply [nested|flat] 7+ messages in thread
* Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1
@ 1999-09-08 16:06 Claudio Cicognani <braintech@btstore.com>
1999-09-08 15:31 ` Re: [INTERFACES] Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1 Thomas Lockhart <lockhart@alumni.caltech.edu>
0 siblings, 1 reply; 7+ messages in thread
From: Claudio Cicognani @ 1999-09-08 16:06 UTC (permalink / raw)
To: pgsql-interfaces
Hallo,
I received the following error when compiling C++ code (using -lpq++
-lpq -lcrypt) with Postgres
6.5.1 (last RPM files) on Red Hat 6.0 (glibc 2) :
/usr/lib/libpq++.so: undefined reference to
`clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03Rep'
/usr/lib/libpq++.so: undefined reference to
`__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i03RepPv'
/usr/lib/libpq++.so: undefined reference to `__eh_pc' collect2: ld
returned 1 exit status
As suggested by Thomas Lockhart, I have downloaded the last RPM source
format from ftp.postgresql.org
and try to rebuild the package (from root user) with:
rpm --rebuild postgresql.6.5.1-2.src.rpm
or with:
rpm -ivv postgresql.6.5.1-2.src.rpm
cd /usr/src/redhat/SPECS
rpm -ba postgresql.6.5.1.spec
The build process completed well, but where is the new binary RPM
package ?
(The default location is /usr/src/redhat/RPMS/i386, but is empty !!)
PS. Attachment are the postgres "spec" file and part of the "rpm -ba"
result file.
Some helps ?
Thanks in advance.
Claudio Cicognani
braintech@btstore.com
Attachments:
postgresql-6.5.1.spec (text/plain, 14.5K) download
Summary: The Postgres SQL database package.
Name: postgresql
Version: 6.5.1
Release: 2
Copyright: BSD
Group: Applications/Databases
Source0: ftp://ftp.postgresql.org/pub/postgresql-%{version}.tar.gz
Source1: ftp://www.flex.ro/pub/pgaccess/pgaccess-0.96.tar.gz
Source2: http://www.retep.org.uk/postgres/jdbc6.5-1.1.jar
Source3: postgresql.init
Source4: man.tar.gz
Patch0: postgresql-6.5.1-alpha.patch.gz
Buildroot: /var/tmp/pgsql-root
Prefix: /usr
Prereq: /sbin/chkconfig /sbin/ldconfig /usr/sbin/useradd
Vendor: The PostgreSQL Global Development Group
Packager: Thomas Lockhart <lockhart@alumni.caltech.edu>
Url: http://www.postgresql.org/
ExcludeArch: armv4l
Conflicts: postgresql-clients
%description
PostgreSQL is an advanced Object-Relational database management system
(DBMS) that supports almost all SQL constructs (including transactions,
subselects and user-defined types and functions).
postgresql includes the client programs and client libraries
that you'll need to access a PostgreSQL database management system
server. This package contains the client libraries for C, and C++,
as well as command-line utilities for managing PostgreSQL databases on a
remote server. If you just want to connect to an existing remote
PostgreSQL server, this package is all you need.
You should install postgresql if you're installing postgresql-server.
%package server
Summary: The programs needed for a PostgreSQL server.
Group: Applications/Databases
Requires: postgresql = %{version}
%description server
postgresql-server includes the programs needed to create and run a PostgreSQL
server, which will in turn allow you to create and maintain PostgreSQL
databases. PostgreSQL is an advanced Object-Relational database
management system (DBMS) that supports almost all SQL constructs
(including transactions, subselects and user-defined types and
functions).
You should install postgresql if you want to create and maintain your
own PostgreSQL databases and/or your own PostgreSQL server.
%package devel
Summary: PostgreSQL development header files and libraries.
Group: Development/Libraries
%description devel
This package contains the header files and libraries needed to
compile C or C++ applications which will directly interact with
a PostgreSQL server. It include the ecpg Embedded C Postgres
preprocessor.
Install this package if you want to develop applications which will
interact with a PostgreSQL server.
%package jdbc
Summary: The java-based client programs needed for accessing a PostgreSQL server.
Group: Applications/Databases
%description jdbc
postgresql-jdbc includes the jar file that you'll need to access a PostgreSQL
database management system server.
%package odbc
Summary: The ODBC driver needed for accessing a PostgreSQL server.
Group: Applications/Databases
%description odbc
Postgresql-odbc includes the odbc driver and sample configuration files
that you'll need to access a PostgreSQL database management system
server.
%package perl
Summary: The perl-based client programs needed for accessing a PostgreSQL server.
Group: Applications/Databases
Requires: perl >= 5.004-4
%description perl
postgresql-perl includes the perl-based client programs and client libraries
that you'll need to access a PostgreSQL database management system
server.
%package python
Summary: The python-based client programs needed for accessing a PostgreSQL server.
Group: Applications/Databases
Requires: python >= 1.5
%description python
postgresql-python includes the python-based client programs and client libraries
that you'll need to access a PostgreSQL database management system
server.
%package tcl
Summary: The tcl-based client programs needed for accessing a PostgreSQL server.
Group: Applications/Databases
Requires: tcl >= 8.0, tk >= 8.0
%description tcl
postgresql-tcl includes the tcl-based client programs and client libraries
that you'll need to access a PostgreSQL database management system
server. This package contains the tcl client libraries,
as well as pgaccess, a wish-based utility for manipulating PostgreSQL databases.
%prep
%setup -q
%ifarch alpha
%patch0 -p1
%endif
cd src/bin
gzip -dc $RPM_SOURCE_DIR/pgaccess-0.96.tar.gz | tar -xvvf -
%build
pushd src
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \
--enable-hba --enable-locale \
--with-perl \
--with-tcl --with-tk --with-x \
--with-odbc --with-java \
--with-python
make all
pushd interfaces/python
cp /usr/lib/python1.5/config/Makefile.pre.in .
echo *shared* > Setup
echo _pg pgmodule.c -I../../include -I../libpq -L../libpq -lpq -lcrypt >> Setup
make -f Makefile.pre.in boot
make
popd
popd
# Unpack the docs
make all PGDOCS=unpacked -C doc
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/{include/pgsql,lib,bin,man}
mkdir -p $RPM_BUILD_ROOT/var/lib/pgsql
#mkdir -p $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/%{buildarch}-linux/auto/Pg
make POSTGRESDIR=$RPM_BUILD_ROOT/usr PREFIX=$RPM_BUILD_ROOT/usr -C src install
make POSTGRESDIR=$RPM_BUILD_ROOT/usr PREFIX=$RPM_BUILD_ROOT/usr -C src/interfaces/perl5 install
# Get rid of the packing list generated by the perl Makefile, and build my own...
find $RPM_BUILD_ROOT/usr/lib/perl5 -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT/usr/lib/perl5 -type f -print | \
sed -e "s|$RPM_BUILD_ROOT/|/|g" > perlfiles.list
find $RPM_BUILD_ROOT/usr/lib/perl5 -type d -name Pg -print | \
sed -e "s|$RPM_BUILD_ROOT/|%dir /|g" >> perlfiles.list
#make -C doc
pushd $RPM_BUILD_ROOT/usr/man
gzip -dc $RPM_SOURCE_DIR/man.tar.gz | tar -xvvf -
popd
# Move all includes beneath /usr/include/pgsql.
pushd $RPM_BUILD_ROOT/usr/include
rm -rf include
for f in *.h access commands executor lib libpq libpq++.H libpq++ port utils ; do
mv $f pgsql
done
popd
# Move all templates/examples beneath /usr/lib/pgsql
pushd $RPM_BUILD_ROOT/usr/lib
mkdir -p pgsql
mv *source *sample pgsql
popd
# ODBC
pushd src/interfaces/odbc
cp odbcinst.ini $RPM_BUILD_ROOT/var/lib/pgsql/
popd
# TCL/TK
install -m 0755 src/bin/pgaccess/pgaccess.tcl $RPM_BUILD_ROOT/usr/bin/pgaccess
# Perl
# No need to do anything right now. But later, we will try building everything
# on the target machine to use the architecture-specific installation features
# in the perl installation.
#pushd src/interfaces/perl5
#mkdir -p $RPM_BUILD_ROOT/usr/lib/pgsql/perl5
#cp Pg.pm $RPM_BUILD_ROOT/usr/lib/pgsql/perl5
#pushd blib/arch/auto/Pg
#cp Pg.so Pg.bs $RPM_BUILD_ROOT/usr/lib/pgsql/perl5
#popd
#popd
# Python
pushd src/interfaces/python
# Makefile.pre.in doesn't yet support .py files anyway, so we stick to a manual installation
mkdir -p $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages
install -m 644 _pgmodule.so *.py $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/
popd
# Java/JDBC
# We know that JDK1.2 is pre-beta at this time, so just install the JDK1.1-compatible driver.
# The user will have to set a CLASSPATH to find it here, but not sure where else to put it...
install -m 755 $RPM_SOURCE_DIR/jdbc6.5-1.1.jar $RPM_BUILD_ROOT/usr/lib/pgsql
chmod 644 $RPM_BUILD_ROOT/usr/man/*/*
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
install -m 755 $RPM_SOURCE_DIR/postgresql.init $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
for I in 3 5; do
install -d $RPM_BUILD_ROOT/etc/rc.d/rc$I.d
pushd $RPM_BUILD_ROOT/etc/rc.d/rc$I.d
ln -s ../init.d/postgresql S73postgresql
popd
done
## Create sample database
## Disabled because an in-place upgrade using rpm only is probably not the right thing to do.
## Also, it is a PITA; should let the user decide how to coordinate dump and reload if necessary.
#PATH=/usr/sbin:$PATH useradd -M -r -d /var/lib/pgsql -s /bin/bash \
# -c "PostgreSQL Server" postgres || :
#chown -R postgres.postgres $RPM_BUILD_ROOT/var/lib/pgsql
#export PATH=$PATH:$RPM_BUILD_ROOT/usr/bin
#[ ! -f $RPM_BUILD_ROOT/usr/lib/libpq.so.1 ] && ln -sf libpq.so $RPM_BUILD_ROOT/usr/lib/libpq.so.1
#unset ENV || :
#su postgres -c "LD_LIBRARY_PATH=$RPM_BUILD_ROOT/usr/lib \
# $RPM_BUILD_ROOT/usr/bin/initdb --pgdata=$RPM_BUILD_ROOT/var/lib/pgsql \
# --pglib=$RPM_BUILD_ROOT/usr/lib/pgsql"
#[ -L $RPM_BUILD_ROOT/usr/lib/libpq.so.1 ] && rm -f $RPM_BUILD_ROOT/usr/lib/libpq.so.1
## this was a good one
#chmod 640 $RPM_BUILD_ROOT/var/lib/pgsql/pg_pwd
#mkdir -p howto
#tar xzf $RPM_SOURCE_DIR/pgsql-Database-HOWTO-html.tar.gz -C howto
mkdir -p pgaccess
cp src/bin/pgaccess/README pgaccess
cp src/bin/pgaccess/*.html pgaccess
cp src/bin/pgaccess/*.sql pgaccess
# Strip 'em all
strip $RPM_BUILD_ROOT/usr/bin/* || :
%pre server
useradd -M -o -r -d /var/lib/pgsql -s /bin/bash \
-c "PostgreSQL Server" postgres >/dev/null 2>&1 || :
%post -p /sbin/ldconfig
%post -p /sbin/ldconfig server
%post perl
# We *should* use the architecture-specific area to hold our perl interface.
# For now, we will use the architecture-neutral areas, and prebuild everything.
#PerlTarget=`perl -MConfig -e 'print $Config{archlib}'`
#pushd /usr/lib/pgsql/perl5
#mv Pg.pm $PerlTarget/
#mv Pg.so Pg.bs $PerlTarget/auto/Pg/
#popd
%post -p /sbin/ldconfig odbc
%post -p /sbin/ldconfig tcl
%preun
if [ $1 = 0 ] ; then
chkconfig --del postgresql
fi
%postun -p /sbin/ldconfig
%postun server
/sbin/ldconfig
if [ $1 = 0 ] ; then
userdel postgres >/dev/null 2>&1 || :
fi
%postun -p /sbin/ldconfig odbc
%postun -p /sbin/ldconfig tcl
%clean
rm -rf $RPM_BUILD_ROOT
rm -f perlfiles.list
rm -rf howto
%files
%defattr(-,root,root)
%doc doc/FAQ doc/FAQ_Linux doc/README*
%doc COPYRIGHT README HISTORY doc/bug.template
%doc contrib doc/unpacked/*
%doc doc/*.ps.gz
#%doc howto
%attr(755,root,root) %dir /usr/lib/pgsql
%attr(755,root,root) /usr/lib/libpq.so*
%attr(755,root,root) /usr/lib/libecpg.so*
%attr(755,root,root) /usr/lib/libpq++.so*
/usr/bin/createdb
/usr/bin/createlang
/usr/bin/createuser
/usr/bin/destroydb
/usr/bin/destroylang
/usr/bin/destroyuser
/usr/bin/pg_dump
/usr/bin/pg_dumpall
/usr/bin/pg_id
/usr/bin/psql
/usr/bin/vacuumdb
/usr/man/manl/*
/usr/man/man1/createdb.1
/usr/man/man1/createuser.1
/usr/man/man1/destroydb.1
/usr/man/man1/destroyuser.1
/usr/man/man1/pg_dump.1
/usr/man/man1/pg_dumpall.1
/usr/man/man1/psql.1
/usr/man/man1/vacuumdb.1
%files server
%defattr(-,root,root)
%config /etc/rc.d/*
%attr(700,postgres,postgres) %dir /var/lib/pgsql
%attr(755,root,root) /usr/lib/plpgsql.so*
%attr(755,root,root) /usr/lib/pltcl.so*
/usr/bin/initdb
/usr/bin/initlocation
/usr/bin/pg_passwd
/usr/bin/pg_version
/usr/bin/postgres
/usr/bin/postmaster
/usr/lib/pgsql/*
#/usr/man/man5/*
/usr/man/man1/initdb.1
/usr/man/man1/initlocation.1
/usr/man/man1/ipcclean.1
/usr/man/man1/pg_passwd.1
/usr/man/man1/pgadmin.1
/usr/man/man1/postgres.1
/usr/man/man1/postmaster.1
%files devel
%defattr(-,root,root)
/usr/lib/libecpg.a
/usr/lib/libpq++.a
/usr/lib/libpq.a
/usr/bin/ecpg
/usr/include/pgsql
/usr/man/man1/ecpg.1
#/usr/man/man3/*
%files tcl
%defattr(-,root,root)
%doc pgaccess
%attr(755,root,root) /usr/lib/libpgtcl.so*
%attr(755,root,root) /usr/lib/libpgtcl.a
/usr/bin/pgaccess
/usr/bin/pgtclsh
/usr/bin/pgtksh
/usr/man/man1/pgaccess.1
/usr/man/man1/pgtclsh.1
/usr/man/man1/pgtksh.1
%files odbc
%defattr(-,root,root)
%attr(755,root,root) /usr/lib/libpsqlodbc.so*
%attr(755,root,root) /usr/lib/libpsqlodbc.a
/var/lib/pgsql/odbcinst.ini
%files -f perlfiles.list perl
%dir /usr/lib/perl5/site_perl/%{buildarch}-linux/auto
%files python
%defattr(-,root,root)
/usr/lib/python1.5/site-packages/_pgmodule.so
/usr/lib/python1.5/site-packages/*.py
%files jdbc
%defattr(-,root,root)
/usr/lib/pgsql/jdbc6.5-1.1.jar
%changelog
* Sat Aug 14 1999 Thomas Lockhart <lockhart@alumni.caltech.edu>
- Include statically linked libraries
- Use new sgml-based man pages as a patch
- Augment ODBC file list
* Tue Jul 27 1999 Thomas Lockhart <lockhart@alumni.caltech.edu>
- version 6.5.1
* Sat Jun 19 1999 Thomas Lockhart <lockhart@alumni.caltech.edu>
- deprecate clients rpm, and define a server rpm for the backend
- version 6.5
- updated pgaccess to version 0.96
- build ODBC interface library
- split tcl and ODBC packages into separate binary rpms
* Sat Apr 17 1999 Jeff Johnson <jbj@redhat.com>
- exclude alpha for Red Hat 6.0.
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- auto rebuild in the new build environment (release 2)
* Wed Feb 03 1999 Cristian Gafton <gafton@redhat.com>
- version 6.4.2
- get rid of the -data package (shipping it was a BAD idea)
* Sat Oct 10 1998 Cristian Gafton <gafton@redhat.com>
- strip all binaries
- use defattr in all packages
- updated pgaccess to version 0.90
- /var/lib/pgsql/pg_pwd should not be 666
* Sun Jun 21 1998 Jeff Johnson <jbj@redhat.com>
- create /usr/lib/pgsql (like /usr/include/pgsql)
- resurrect libpq++.so*
- fix name problem in startup-script (problem #533)
* Fri Jun 19 1998 Jeff Johnson <jbj@redhat.com>
- configure had "--prefix=$RPM_BUILD_ROOT/usr"
- move all include files below /usr/include/pgsql.
- resurrect perl client file lists.
* Tue May 05 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr
* Tue May 05 1998 Cristian Gafton <gafton@redhat.com>
- build on alpha
* Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
- enhanced initscript
* Tue Apr 21 1998 Cristian Gafton <gafton@redhat.com>
- finally v6.3.2 is here !
* Wed Apr 15 1998 Cristian Gafton <gafton@redhat.com>
- added the include files in the devel package
* Wed Apr 01 1998 Cristian Gafton <gafton@redhat.com>
- finally managed to get a patch for 6.3.1 to make it install corectly. Boy,
what a mess ! ;-(
* Tue Mar 03 1998 Cristian Gafton <gafton@redhat.com>
- upgraded tp 6.3 release
* Sat Feb 28 1998 Cristian Gafton <gafton@redhat.com>
- upgraded to the latest snapshot
- splitted yet one more subpackage: clients
* Tue Jan 20 1998 Cristian Gafton <gafton@redhat.com>
- the installed devel-library is no longer stripped (duh!)
- added the 7 patches found on the ftp.postgresql.org site
- corrected the -rh patch to patch configure.in rather than configure; we
now use autoconf
- added a patch to fix the broken psort function
- build TCL and C++ libraries as well
- updated pgaccess to version 0.76
* Thu Oct 23 1997 Cristian Gafton <gafton@redhat.com>
- cleaned up the spec file for version 6.2.1
- splited devel subpackage
- added chkconfig support in %preun and %post
- added optional data package
* Mon Oct 13 1997 Elliot Lee <sopwith@cuc.edu> 6.2-3
- Fixed lots of bung-ups in the spec file, made it FSSTND compliant, etc.
- Removed jdbc package, jdk isn't stable yet as far as what goes where.
- Updated to v 6.2.1
* Thu Oct 9 1997 10:58:14 dan
- on pre-installation script now the `data' dir is renamed to
`data.rpmorig' (no more wild deletions!).
- added `postgresql-jdbc' sub-package.
- postgresql.sh script: defined function `add_to_path()' and
changed the location of postgresql.jar in the CLASSPATH.
* Sat Oct 4 1997 10:27:43 dan
- updated to version 6.2.
- added auto installation's scripts (pre, post, preun, postun)
build_result.gz (application/x-gzip, 964B) download
braintech.vcf (text/x-vcard, 205B) download
begin:vcard
n:Cicognani;Claudio
x-mozilla-html:FALSE
org:BRAIN TECH 2 S.n.c.;Industrial Automation
adr:;;;;;;
version:2.1
email;internet:klaudio@btstore.com
x-mozilla-cpt:;0
fn:Claudio Cicognani
end:vcard
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: [INTERFACES] Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1
1999-09-08 16:06 Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1 Claudio Cicognani <braintech@btstore.com>
@ 1999-09-08 15:31 ` Thomas Lockhart <lockhart@alumni.caltech.edu>
0 siblings, 0 replies; 7+ messages in thread
From: Thomas Lockhart @ 1999-09-08 15:31 UTC (permalink / raw)
To: Claudio Cicognani <braintech@btstore.com>; +Cc: pgsql-interfaces
> I received the following error when compiling C++ code (using -lpq++
> -lpq -lcrypt) with Postgres
> 6.5.1 (last RPM files) on Red Hat 6.0 (glibc 2) :
> /usr/lib/libpq++.so: undefined reference to
> ...
> /usr/lib/libpq++.so: undefined reference to `__eh_pc' collect2: ld
> returned 1 exit status
> As suggested by Thomas Lockhart, I have downloaded the last RPM
> source format from ftp.postgresql.org
> and try to rebuild the package (from root user) with:
> rpm --rebuild postgresql.6.5.1-2.src.rpm
> or with:
> rpm -ivv postgresql.6.5.1-2.src.rpm
> cd /usr/src/redhat/SPECS
> rpm -ba postgresql.6.5.1.spec
> The build process completed well, but where is the new binary RPM
> package ?
> (The default location is /usr/src/redhat/RPMS/i386, but is empty !!)
> PS. Attachment are the postgres "spec" file and part of the "rpm
> -ba" result file.
I did not find the result file in your attachments. Attached is a
snippet from the end of my "rpm --rebuild", and it shows things being
written to where you expect. Things do *not* get written if there were
errors in the build, and you might be running into that. Sometimes
those errors are hard to see, since rpm continues through that phase
of the build. Look for things like "File missing"...
You might try instead using the RedHat beta rpms from
ftp://rawhide.redhat.com/rawhide/i386/RedHat/RPMS
which are based on Lamar Owen's recent spec files.
Good luck.
- Thomas
Finding provides...
Finding requires...
ldd: warning: you do not have execution permission for
`/var/tmp/pgsql-root/usr/lib/libpgtcl.so.2.0'
Provides: libpgtcl.so.2.0
Prereqs: /sbin/ldconfig
Requires: tcl tk ld-linux.so.2 libX11.so.6 libc.so.6 libcrypt.so.1
libdl.so.2 libhistory.so.3 libm.so.6 libncurses.so.4 libnsl.so.1
libpgtcl.so.2.0 libpq.so.2.0 libreadline.so.3 libtcl8.0.so
libtermcap.so.2 libtk8.0.so /bin/sh
Wrote: /usr/src/redhat/RPMS/i386/postgresql-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-server-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-devel-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-jdbc-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-odbc-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-perl-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-python-6.5.1-2.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/postgresql-tcl-6.5.1-2.i386.rpm
Executing: %clean
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd postgresql-6.5.1
+ rm -rf /var/tmp/pgsql-root
+ rm -f perlfiles.list
+ rm -rf howto
+ exit 0
Executing: --clean
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf postgresql-6.5.1
+ exit 0
--
Thomas Lockhart lockhart@alumni.caltech.edu
South Pasadena, California
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~1999-09-08 16:06 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-09-02 09:59 Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1 Claudio Cicognani <klaudio@btstore.com>
1999-09-02 11:19 Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1 Claudio Cicognani <braintech@btstore.com>
1999-09-02 14:21 ` Thomas Lockhart <lockhart@alumni.caltech.edu>
1999-09-03 16:08 ` Lamar Owen <lamar.owen@wgcr.org>
1999-09-08 11:44 Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1 Claudio Cicognani <braintech@btstore.com>
1999-09-08 16:06 Link error from libpq++ on RedHat 6.0 and Postgres 6.5.1 Claudio Cicognani <braintech@btstore.com>
1999-09-08 15:31 ` Thomas Lockhart <lockhart@alumni.caltech.edu>
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