Question on libpq.so

--0-509622779-1231461277=:37017
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

We are in the process of upgrading our postgres database from 7.4 to 8.2 on=
Redhat ES4 server.=A0 Postgresql uses libpq.so.5.0, while libpq.so.3 was i=
nitially installed and=A0is needed by php.=A0 I did the postgresql 8.2.10 i=
nstallation without dependency:=0Arpm -Uvh --nodeps postgresql-*.rpm=0AThen=
I try to recompile PHP 4.3.9 rpm, hoping that it will point to the new pos=
tgres so.=A0 The compilation failed with the error: =0AUnable to load dynam=
ic library '/usr/lib/php4/pgsql.so' - libpq.so.3: cannot open shared object=
file: No such file or directory in Unknown on line 0=0A=0ACan PHP 4.3 work=
with postgresql 8.2, and how can I point PHP rpm to use libpq.so.5?=A0 Tha=
nks.=0A=0A=0ALawrence=0A=0A=0A
--0-509622779-1231461277=:37017
Content-Type: text/html; charset=us-ascii

<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt;color:#000000;"><DIV>We are in the process of upgrading our postgres database from 7.4 to 8.2 on Redhat ES4 server.  Postgresql uses libpq.so.5.0, while libpq.so.3 was initially installed and is needed by php.  I did the postgresql 8.2.10 installation without dependency:</DIV>
<DIV>rpm -Uvh --nodeps postgresql-*.rpm</DIV>
<DIV>Then I try to recompile PHP 4.3.9 rpm, hoping that it will point to the new postgres so.  The compilation failed with the error: </DIV>
<DIV>Unable to load dynamic library '/usr/lib/php4/pgsql.so' - libpq.so.3: cannot open shared object file: No such file or directory in Unknown on line 0</DIV>
<DIV> </DIV>
<DIV>Can PHP 4.3 work with postgresql 8.2, and how can I point PHP rpm to use libpq.so.5?  Thanks.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Lawrence</DIV></div><br>

</body></html>
--0-509622779-1231461277=:37017--
lzhao86 [ Fr, 09 Januar 2009 01:34 ] [ ID #1983934 ]

Re: Question on libpq.so

On Thursday 08 January 2009, "L. Zhao" <lzhao86 [at] yahoo.com> wrote:
> new postgres so.=C2=A0 The compilation failed with the error: Unable to l=
oad
> dynamic library '/usr/lib/php4/pgsql.so' - libpq.so.3: cannot open shared
> object file: No such file or directory in Unknown on line 0

That appears to be a runtime message, not a compile error. Did the
compilation system have only the new PostgreSQL installed? What does rpm
show for dependencies for your new RPMs? Did you actually install the new=

RPMs?

--
Current Peeve: The mindset that the Internet is some sort of school for
novice sysadmins and that everyone -not- doing stupid dangerous things
should act like patient teachers with the ones who are. -- Bill Cole, NANAE=


--
Sent via pgsql-php mailing list (pgsql-php [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php
Alan Hodgson [ Fr, 09 Januar 2009 02:08 ] [ ID #1983935 ]

Re: Question on libpq.so

L. Zhao wrote:
> We are in the process of upgrading our postgres database from 7.4 to 8.2
> on Redhat ES4 server. Postgresql uses libpq.so.5.0, while libpq.so.3
> was initially installed and is needed by php. I did the postgresql
> 8.2.10 installation without dependency:
> rpm -Uvh --nodeps postgresql-*.rpm

Was there a reason why you had to use --nodeps? Exactly which rpms did
you install?

> Then I try to recompile PHP 4.3.9 rpm, hoping that it will point to the
> new postgres so. The compilation failed with the error:
> Unable to load dynamic library '/usr/lib/php4/pgsql.so' - libpq.so.3:
> cannot open shared object file: No such file or directory in Unknown on
> line 0

As Alan pointed out, this is a runtime error not a compile error. How
did you rebuild the php 4.3.9 rpm? Any errors during that process?

> Can PHP 4.3 work with postgresql 8.2, and how can I point PHP rpm to use
> libpq.so.5? Thanks.

Once you have it compiled properly it should work fine.

--
Postgresql & php tutorials
http://www.designmagick.com/


--
Sent via pgsql-php mailing list (pgsql-php [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php
dmagick [ Fr, 09 Januar 2009 03:45 ] [ ID #1983936 ]

Re: Question on libpq.so

--0-1115237705-1231521948=:83424
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

The server had postgres 7.4 installed, when I tried to upgrade to 8.2.10, I=
got error on failed dependencies:=0Arpm -Uvh --test postgresql-*.rpm=0Aerr=
or: Failed dependencies:=0A=A0=A0=A0=A0=A0=A0=A0 libpq.so.3 is needed by (i=
nstalled) mod_auth_pgsql-2.0.1-7.1.i386=0A=A0=A0=A0=A0=A0=A0=A0 libpq.so.3 =
is needed by (installed) perl-DBD-Pg-1.31-6.i386=0A=A0=A0=A0=A0=A0=A0=A0 li=
bpq.so.3 is needed by (installed) libdbi-dbd-pgsql-0.6.5-10.RHEL4.1.i386=0A=
=A0=A0=A0=A0=A0=A0=A0 libpq.so.3 is needed by (installed) freeradius-postgr=
esql-1.0.1-3.RHEL4.5.i386=0A=A0=A0=A0=A0=A0=A0=A0 libpq.so.3 is needed by (=
installed) postgresql-tcl-7.4.19-1.el4_6.1.i386=0A=A0=A0=A0=A0=A0=A0=A0 lib=
pq.so.3 is needed by (installed) cyrus-sasl-sql-2.1.19-14.i386=0A=A0=A0=A0=
=A0=A0=A0=A0 libpq.so.3 is needed by (installed) postgresql-python-7.4.19-1=
..el4_6.1.i386=0A=A0=A0=A0=A0=A0=A0=A0 libpq.so.3 is needed by (installed) q=
t-PostgreSQL-3.3.3-13.RHEL4.i386=0A=A0=A0=A0=A0=A0=A0=A0 libpq.so.3 is need=
ed by (installed) dovecot-0.99.11-9.EL4.i386=0A=A0=A0=A0=A0=A0=A0=A0 libpq.=
so.3 is needed by (installed) php-pgsql-4.3.9-3.22.12.i386=0A=0A=0AThat is =
why I use the --nodeps, expecting that I will rebuild php rpm afterwards.=
=0Arpm -Uvh --nodeps postgresql-*.rpm=0APreparing...=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0 ########################################### [100%]=
=0A=A0=A0 1:postgresql-test=A0=A0=A0=A0=A0=A0=A0 ##########################=
################# [=A0 9%]=0A=A0=A0 2:postgresql=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0 ########################################### [ 18%]=0A=A0=A0 3:pos=
tgresql-contrib=A0=A0=A0=A0 ########################################### [ 2=
7%]=0A=A0=A0 4:postgresql-debuginfo=A0=A0 #################################=
########## [ 36%]=0A=A0=A0 5:postgresql-devel=A0=A0=A0=A0=A0=A0 ###########=
################################ [ 45%]=0A=A0=A0 6:postgresql-docs=A0=A0=A0=
=A0=A0=A0=A0 ########################################### [ 55%]=0A=A0=A0 7:=
postgresql-libs=A0=A0=A0=A0=A0=A0=A0 ######################################=
##### [ 64%]=0A=A0=A0 8:postgresql-plperl=A0=A0=A0=A0=A0 ##################=
######################### [ 73%]=0A=A0=A0 9:postgresql-plpython=A0=A0=A0 ##=
######################################### [ 82%]=0A=A0 10:postgresql-pltcl=
=A0=A0=A0=A0=A0=A0 ########################################### [ 91%]=0A=A0=
11:postgresql-server=A0=A0=A0=A0=A0 ######################################=
##### [100%]=0A=0AWhen I tried to rebuild PHP rpms, which is php 4.3.9 on E=
S4.=A0 It failed:=0A......=0A001+ PHP Warning:=A0 Unknown(): Unable to load=
dynamic library '/usr/lib/php4/pgsql.so' - libpq.so.3: cannot open shared =
object file: No such file or directory in Unknown on line 0=0A002- md5(line=
1)=3D e84debf3a1d132871d7fe45c1c04c566 (length 20000)=0A002+ md5(line 0)=
=3D e86410fa2d6e2634fd8ac5f4b3afe7f3 (length 10)=0A003- md5(line 2)=3D c33b=
4d2f86908eea5d75ee5a61fd81f4 (length 10000)=0A003+ md5(line 1)=3D e84debf3a=
1d132871d7fe45c1c04c566 (length 20000)=0A004- md5(line 3)=3D 2ecdde3959051d=
913f61b14579ea136d (length 5)=0A004+ md5(line 2)=3D c33b4d2f86908eea5d75ee5=
a61fd81f4 (length 10000)=0A005- md5(line 4)=3D c33b4d2f86908eea5d75ee5a61fd=
81f4 (length 10000)=0A005+ md5(line 3)=3D 2ecdde3959051d913f61b14579ea136d =
(length 5)=0A006- md5(line 5)=3D 902fbdd2b1df0c4f70b4a5d23525e932 (length 3=
)=0A006+ md5(line 4)=3D c33b4d2f86908eea5d75ee5a61fd81f4 (length 10000)=0A0=
07+ md5(line 5)=3D 902fbdd2b1df0c4f70b4a5d23525e932 (length 3)=0A<< ../ext/=
standard/tests/file/bug26938.diff result ends.=0Aerror: Bad exit status fro=
m /var/tmp/rpm-tmp.12911 (%check)=0A=0ARPM build errors:=0A=A0=A0=A0 Bad ex=
it status from /var/tmp/rpm-tmp.12911 (%check)=0A=0AI look into php.spec, i=
t does not specify the usage of libpq.so.3.=A0 So I am wondering why librar=
y pgsql.so requires libpq.so.3, and if there is any compatibility issue.=0A=
=0AThanks.=0A=0A=0A=0A=0A________________________________=0A From: Chris <dm=
agick [at] gmail.com>=0ATo: L. Zhao <lzhao86 [at] yahoo.com>=0ACc: pgsql-php [at] postgres=
ql.org=0ASent: Thursday, January 8, 2009 6:45:33 PM=0ASubject: Re: [PHP] Qu=
estion on libpq.so=0A=0AL. Zhao wrote:=0A> We are in the process of upgradi=
ng our postgres database from 7.4 to 8.2 on Redhat ES4 server.=A0 Postgresq=
l uses libpq.so.5.0, while libpq.so.3 was initially installed and is needed=
by php.=A0 I did the postgresql 8.2.10 installation without dependency:=0A=
> rpm -Uvh --nodeps postgresql-*.rpm=0A=0AWas there a reason why you had to=
use --nodeps? Exactly which rpms did you install?=0A=0A> Then I try to rec=
ompile PHP 4.3.9 rpm, hoping that it will point to the new postgres so.=A0 =
The compilation failed with the error:=0A> Unable to load dynamic library '=
/usr/lib/php4/pgsql.so' - libpq.so.3: cannot open shared object file: No su=
ch file or directory in Unknown on line 0=0A=0AAs Alan pointed out, this is=
a runtime error not a compile error. How did you rebuild the php 4.3.9 rpm=
? Any errors during that process?=0A=0A> Can PHP 4.3 work with postgresql 8=
..2, and how can I point PHP rpm to use libpq.so.5?=A0 Thanks.=0A=0AOnce you=
have it compiled properly it should work fine.=0A=0A-- Postgresql & php tu=
torials=0Ahttp://www.designmagick.com/=0A=0A=0A-- Sent via pgsql-php mailin=
g list (pgsql-php [at] postgresql.org)=0ATo make changes to your subscription:=
=0Ahttp://www.postgresql.org/mailpref/pgsql-php=0A=0A=0A=0A
--0-1115237705-1231521948=:83424
Content-Type: text/html; charset=us-ascii

<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>The server had postgres 7.4 installed, when I tried to upgrade to 8.2.10, I got error on failed dependencies:</DIV>
<DIV><FONT style="BACKGROUND-COLOR: #e6e6e6" face="Courier New, courier, monaco, monospace, sans-serif" size=2>rpm -Uvh --test postgresql-*.rpm<BR>error: Failed dependencies:<BR>        libpq.so.3 is needed by (installed) mod_auth_pgsql-2.0.1-7.1.i386<BR>        libpq.so.3 is needed by (installed) perl-DBD-Pg-1.31-6.i386<BR>        libpq.so.3 is needed by (installed) libdbi-dbd-pgsql-0.6.5-10.RHEL4.1.i386<BR>        libpq.so.3 is needed by (installed) freeradius-postgresql-1.0.1-3.RHEL4.5.i386<BR>        libpq.so.3 is needed by (installed) postgresql-tcl-7.4.19-1.el4_6.1.i386<BR>      &nb
sp; libpq.so.3 is needed by (installed) cyrus-sasl-sql-2.1.19-14.i386<BR>        libpq.so.3 is needed by (installed)
postgresql-python-7.4.19-1.el4_6.1.i386<BR>        libpq.so.3 is needed by (installed) qt-PostgreSQL-3.3.3-13.RHEL4.i386<BR>        libpq.so.3 is needed by (installed) dovecot-0.99.11-9.EL4.i386<BR>        libpq.so.3 is needed by (installed) php-pgsql-4.3.9-3.22.12.i386<BR></FONT></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">That is why I use the --nodeps, expecting that I will rebuild php rpm afterwards.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT style="BACKGROUND-COLOR: #e6e6e6" face="Courier New, courier, monaco, monospace, sans-serif" size=2>rpm -Uvh --nodeps postgresql-*.rpm<BR>Preparing...                ########################################### [100%]<BR>   1:postgresql-test        ########################################### [  9%]<BR>   2:postgresql             ########################################### [ 18%]<BR>   3:postgresql-contrib     ########################################### [ 27%]<BR>   4:postg
resql-debuginfo   ########################################### [ 36%]<BR>   5:postgresql-devel      
########################################### [ 45%]<BR>   6:postgresql-docs        ########################################### [ 55%]<BR>   7:postgresql-libs        ########################################### [ 64%]<BR>   8:postgresql-plperl      ########################################### [ 73%]<BR>   9:postgresql-plpython    ########################################### [ 82%]<BR>  10:postgresql-pltcl       ########################################### [ 91%]<BR>  11:postgresql-server      ########################################### [100%]</FONT><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">When I tried to rebuild PHP rpms, which is php 4.3.9 on ES4.  It failed:</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">......</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT style="BACKGROUND-COLOR: #e6e6e6" face="Courier New, courier, monaco, monospace, sans-serif" size=2>001+ PHP Warning:  Unknown(): Unable to load dynamic library '/usr/lib/php4/pgsql.so' - libpq.so.3: cannot open shared object file: No such file or directory in Unknown on line 0<BR>002- md5(line 1)= e84debf3a1d132871d7fe45c1c04c566 (length 20000)<BR>002+ md5(line 0)= e86410fa2d6e2634fd8ac5f4b3afe7f3 (length 10)<BR>003- md5(line 2)= c33b4d2f86908eea5d75ee5a61fd81f4 (length 10000)<BR>003+ md5(line 1)= e84debf3a1d132871d7fe45c1c04c566 (length 20000)<BR>004- md5(line 3)= 2ecdde3959051d913f61b14579ea136d (length 5)<BR>004+ md5(line 2)= c33b4d2f86908eea5d75ee5a61fd81f4 (length 10000)<BR>005- md5(line 4)=
c33b4d2f86908eea5d75ee5a61fd81f4 (length 10000)<BR>005+ md5(line 3)= 2ecdde3959051d913f61b14579ea136d (length 5)<BR>006- md5(line 5)= 902fbdd2b1df0c4f70b4a5d23525e932
(length 3)<BR>006+ md5(line 4)= c33b4d2f86908eea5d75ee5a61fd81f4 (length 10000)<BR>007+ md5(line 5)= 902fbdd2b1df0c4f70b4a5d23525e932 (length 3)<BR><< ../ext/standard/tests/file/bug26938.diff result ends.<BR>error: Bad exit status from /var/tmp/rpm-tmp.12911 (%check)</FONT></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR><FONT style="BACKGROUND-COLOR: #e6e6e6" face="Courier New, courier, monaco, monospace, sans-serif" size=2>RPM build errors:<BR>    Bad exit status from /var/tmp/rpm-tmp.12911 (%check)</FONT><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I look into php.spec, it does not specify the usage of libpq.so.3.  So I am wondering why library pgsql.so requires libpq.so.3, and if there is any compatibility issue.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Thanks.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Chris <dmagick [at] gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> L. Zhao <lzhao86 [at] yahoo.com><BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> pgsql-php [at] postgresql.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, January 8, 2009 6:45:33 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [PHP] Question on libpq.so<BR></FONT><BR>L. Zhao wrote:<BR>> We are in the process of upgrading our postgres database from 7.4 to 8.2 on Redhat ES4 server.  Postgresql uses <A href="http://libpq.so/" target=_blank>libpq.so</A>.5.0, while libpq.so.3 was initially installed and is needed by php.  I did the postgresql 8.2.10 installation without dependency:<BR>> rpm -Uvh --nodeps p
ostgresql-*.rpm<BR><BR>Was there a reason why you had to use --nodeps? Exactly which rpms did you install?<BR><BR>> Then I try to recompile PHP 4.3.9 rpm, hoping
that it will point to the new postgres so.  The compilation failed with the error:<BR>> Unable to load dynamic library '/usr/lib/php4/pgsql.so' - libpq.so.3: cannot open shared object file: No such file or directory in Unknown on line 0<BR><BR>As Alan pointed out, this is a runtime error not a compile error. How did you rebuild the php 4.3.9 rpm? Any errors during that process?<BR><BR>> Can PHP 4.3 work with postgresql 8.2, and how can I point PHP rpm to use libpq.so.5?  Thanks.<BR><BR>Once you have it compiled properly it should work fine.<BR><BR>-- Postgresql & php tutorials<BR><A href="http://www.designmagick.com/" target=_blank>http://www.designmagick.com/</A><BR><BR><BR>-- Sent via pgsql-php mailing list (<A href="mailto:pgsql-php [at] postgresql.org" ymailto="mailto:p
gsql-php [at] postgresql.org">pgsql-php [at] postgresql.org</A>)<BR>To make changes to your subscription:<BR><A href="http://www.postgresql.org/mailpref/pgsql-php"
target=_blank>http://www.postgresql.org/mailpref/pgsql-php</A><BR></DIV></div><br>

</body></html>
--0-1115237705-1231521948=:83424--
lzhao86 [ Fr, 09 Januar 2009 18:25 ] [ ID #1983937 ]

Re: Question on libpq.so

On Friday 09 January 2009, "L. Zhao" <lzhao86 [at] yahoo.com> wrote:
> RPM build errors:
> =C2=A0=C2=A0=C2=A0 Bad exit status from /var/tmp/rpm-tmp.12911 (%check)
>
> I look into php.spec, it does not specify the usage of libpq.so.3.=C2=A0 =
So I
> am wondering why library pgsql.so requires libpq.so.3, and if there is
> any compatibility issue.

It looks like the test suite run during the RPM creation is trying to load=

the currently installed PHP pgsql.so library instead of the one just
compiled. You could try just commenting out the test options in the RPM
spec file.

--
Current Peeve: The mindset that the Internet is some sort of school for
novice sysadmins and that everyone -not- doing stupid dangerous things
should act like patient teachers with the ones who are. -- Bill Cole, NANAE=


--
Sent via pgsql-php mailing list (pgsql-php [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php
Alan Hodgson [ Fr, 09 Januar 2009 18:42 ] [ ID #1983938 ]

Re: Question on libpq.so

--0-1075829546-1231525701=:46602
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

I am not familiar with the structure of php.spec.=A0 What should I look for=
regarding the test suite run?=A0 Thanks.=0A=0A=0A=0A=0A___________________=
_____________=0AFrom: Alan Hodgson <ahodgson [at] simkin.ca>=0ATo: pgsql-php [at] pos=
tgresql.org=0ASent: Friday, January 9, 2009 9:42:52 AM=0ASubject: Re: [PHP]=
Question on libpq.so=0A=0AOn Friday 09 January 2009, "L. Zhao" <lzhao86 [at] ya=
hoo.com> wrote:=0A> RPM build errors:=0A> =A0=A0=A0 Bad exit status from /v=
ar/tmp/rpm-tmp.12911 (%check)=0A>=0A> I look into php.spec, it does not spe=
cify the usage of libpq.so.3.=A0 So I=0A> am wondering why library pgsql.so=
requires libpq.so.3, and if there is=0A> any compatibility issue.=0A=0AIt =
looks like the test suite run during the RPM creation is trying to load =0A=
the currently installed PHP pgsql.so library instead of the one just =0Acom=
piled. You could try just commenting out the test options in the RPM =0Aspe=
c file.=0A=0A-- =0ACurrent Peeve: The mindset that the Internet is some sor=
t of school for=0Anovice sysadmins and that everyone -not- doing stupid dan=
gerous things=0Ashould act like patient teachers with the ones who are. -- =
Bill Cole, NANAE =0A=0A-- =0ASent via pgsql-php mailing list (pgsql-php [at] pos=
tgresql.org)=0ATo make changes to your subscription:=0Ahttp://www.postgresq=
l.org/mailpref/pgsql-php=0A=0A=0A=0A
--0-1075829546-1231525701=:46602
Content-Type: text/html; charset=us-ascii

<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><DIV>I am not familiar with the structure of php.spec.  What should I look for regarding the test suite run?  Thanks.<BR></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif"><BR>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Alan Hodgson <ahodgson [at] simkin.ca><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> pgsql-php [at] postgresql.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday, January 9, 2009 9:42:52 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [PHP] Question on libpq.so<BR></FONT><BR>On Friday 09 January 2009, "L. Zhao" <<A href="mailto:lzhao86 [at] yahoo.com" ymailto="mailto:lzhao86 [at] yahoo.com">lzhao86 [at] yahoo.com</A>> wrote:<BR>> RPM build errors:<BR>>     Bad exit status from /var/tmp/rpm-tmp.12911 (%check)<BR>><BR>> I look into php.spec, it does not specify the usage of <A href="http://libpq.so/" target=_blank>libpq.so</A>.3.  So I<BR>> am wondering why library <A href="http:/
/pgsql.so/" target=_blank>pgsql.so</A> requires libpq.so.3, and if there is<BR>> any compatibility issue.<BR><BR>It looks like the test suite run during the RPM
creation is trying to load <BR>the currently installed PHP pgsql.so library instead of the one just <BR>compiled. You could try just commenting out the test options in the RPM <BR>spec file.<BR><BR>-- <BR>Current Peeve: The mindset that the Internet is some sort of school for<BR>novice sysadmins and that everyone -not- doing stupid dangerous things<BR>should act like patient teachers with the ones who are. -- Bill Cole, NANAE <BR><BR>-- <BR>Sent via pgsql-php mailing list (<A href="mailto:pgsql-php [at] postgresql.org" ymailto="mailto:pgsql-php [at] postgresql.org">pgsql-php [at] postgresql.org</A>)<BR>To make changes to your subscription:<BR><A href="http://www.postgresql.org/mailpref/pgsql-php" target=_blank>http://www.postgresql.org/mailpref/pgsql-php</A><BR></DIV></DIV></div><br>

</body></html>
--0-1075829546-1231525701=:46602--
lzhao86 [ Fr, 09 Januar 2009 19:28 ] [ ID #1983939 ]

Re: Question on libpq.so

------_=_NextPart_001_01C97499.37BF9C1D
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I suggest you try to see if there is a compatibility rpm you need to
install.



Kind regards, Bernt



From: pgsql-php-owner [at] postgresql.org
[mailto:pgsql-php-owner [at] postgresql.org] On Behalf Of L. Zhao
Sent: Friday, January 09, 2009 7:28 PM
To: pgsql-php [at] postgresql.org
Subject: Re: [PHP] Question on libpq.so



I am not familiar with the structure of php.spec. What should I look
for regarding the test suite run? Thanks.



________________________________

From: Alan Hodgson <ahodgson [at] simkin.ca>
To: pgsql-php [at] postgresql.org
Sent: Friday, January 9, 2009 9:42:52 AM
Subject: Re: [PHP] Question on libpq.so

On Friday 09 January 2009, "L. Zhao" <lzhao86 [at] yahoo.com> wrote:
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.12911 (%check)
>
> I look into php.spec, it does not specify the usage of libpq.so
<http://libpq.so/> .3. So I
> am wondering why library pgsql.so <http://pgsql.so/> requires
libpq.so.3, and if there is
> any compatibility issue.

It looks like the test suite run during the RPM creation is trying to
load
the currently installed PHP pgsql.so library instead of the one just
compiled. You could try just commenting out the test options in the RPM
spec file.

--
Current Peeve: The mindset that the Internet is some sort of school for
novice sysadmins and that everyone -not- doing stupid dangerous things
should act like patient teachers with the ones who are. -- Bill Cole,
NANAE

--
Sent via pgsql-php mailing list (pgsql-php [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php




------_=_NextPart_001_01C97499.37BF9C1D
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
..shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
[at] font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
[at] font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
[at] font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
..MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
[at] page Section1
{size:8.5in 11.0in;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>

<body lang=3DNO-BOK link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>I suggest you try to see if there is a compatibility rpm =
you
need to install. <o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'>Kind regards, Bernt<o:p></o:p></span></p>

<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:#1F497D'><o:p> </o:p></span></p>

<div style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in =
0in 4.0pt'>

<div>

<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt =
0in 0in 0in'>

<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> pgsql-php-owner [at] postgresql.org
[mailto:pgsql-php-owner [at] postgresql.org] <b>On Behalf Of </b>L. Zhao<br>
<b>Sent:</b> Friday, January 09, 2009 7:28 PM<br>
<b>To:</b> pgsql-php [at] postgresql.org<br>
<b>Subject:</b> Re: [PHP] Question on libpq.so<o:p></o:p></span></p>

</div>

</div>

<p class=3DMsoNormal><o:p> </o:p></p>

<div>

<div>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>I
am not familiar with the structure of php.spec.  What should I look =
for
regarding the test suite run?  Thanks.<o:p></o:p></span></p>

</div>

<div>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p> </o:p></span></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' >

<hr size=3D1 width=3D"100%" align=3Dcenter>

</span></div>

<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' >From:</span>=
</b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' > Alan =
Hodgson
<ahodgson [at] simkin.ca><br>
<b>To:</b> pgsql-php [at] postgresql.org<br>
<b>Sent:</b> Friday, January 9, 2009 9:42:52 AM<br>
<b>Subject:</b> Re: [PHP] Question on libpq.so<br>
</span><span =
style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"'><br>
On Friday 09 January 2009, "L. Zhao" <<a
href=3D"mailto:lzhao86 [at] yahoo.com">lzhao86 [at] yahoo.com</a>> wrote:<br>
> RPM build errors:<br>
>     Bad exit status from /var/tmp/rpm-tmp.12911 =
(%check)<br>
><br>
> I look into php.spec, it does not specify the usage of <a
href=3D"http://libpq.so/" target=3D"_blank">libpq.so</a>.3.  So =
I<br>
> am wondering why library <a href=3D"http://pgsql.so/" =
target=3D"_blank">pgsql.so</a>
requires libpq.so.3, and if there is<br>
> any compatibility issue.<br>
<br>
It looks like the test suite run during the RPM creation is trying to =
load <br>
the currently installed PHP pgsql.so library instead of the one just =
<br>
compiled. You could try just commenting out the test options in the RPM =
<br>
spec file.<br>
<br>
-- <br>
Current Peeve: The mindset that the Internet is some sort of school =
for<br>
novice sysadmins and that everyone -not- doing stupid dangerous =
things<br>
should act like patient teachers with the ones who are. -- Bill Cole, =
NANAE <br>
<br>
-- <br>
Sent via pgsql-php mailing list (<a =
href=3D"mailto:pgsql-php [at] postgresql.org">pgsql-php [at] postgresq l.org</a>)<br=
>
To make changes to your subscription:<br>
<a href=3D"http://www.postgresql.org/mailpref/pgsql-php" =
target=3D"_blank">http://www.postgresql.org/mailpref/pgsql-p hp</a><o:p></=
o:p></span></p>

</div>

</div>

</div>

<p class=3DMsoNormal><o:p> </o:p></p>

</div>

</div>

</body>

</html>

------_=_NextPart_001_01C97499.37BF9C1D--
Bernt Andreas Drange [ Mo, 12 Januar 2009 10:36 ] [ ID #1984384 ]
Datenbanken » gmane.comp.db.postgresql.php » Question on libpq.so

Vorheriges Thema: PREPARE -> EXEC Problem
Nächstes Thema: Correct Encoding