Problems compiling PostgreSQL 7.2.2 rpm

Started by Devrim GUNDUZover 23 years ago5 messagesgeneral
Jump to latest
#1Devrim GUNDUZ
devrim@oper.metu.edu.tr

Hi,

I'm trying to build the rpm using srpm on a RedHat 7.3, which I downloaded
from
http://www.ca.postgresql.org/ftpsite/binary/v7.2.2/RPMS/SRPMS/

However, I have a problem; cannot build the srpm. Here is the error:
------
/usr/bin/ld: warning: libcom_err.so.3, needed by ../../../src/interfaces/libpq/libpq.so, may conflict with libcom_err.so.2
gcc -O2 -march=i686 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpgtcl -I../../../src/include -I/usr/kerberos/include
-I/usr/X11R6/include -c -o pgtkAppInit.o pgtkAppInit.c
In file included from pgtkAppInit.c:15:
/usr/include/tk.h:83:29: X11/Xlib.h: No such file or directory
make[3]: *** [pgtkAppInit.o] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/postgresql-7.2.2/src/bin/pgtclsh'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/postgresql-7.2.2/src/bin'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/postgresql-7.2.2/src'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.81486 (%build)
------

Searched through the spec file, but could not find anything related to the
error...

Am I doing something wrong?

Also, there is no up2date rpm in http://people.redhat.com/teg/pg/ , even
though it's been told so in http://www.ca.postgresql.org/sitess.html.

Best regards.

--

Devrim GUNDUZ

devrim@oper.metu.edu.tr Tel : (312) 295 9318
devrim.gunduz@linux.org.tr Faks : (312) 295 9494

Web : http://devrim.oper.metu.edu.tr
-------------------------------------

#2Alvaro Herrera
alvherre@atentus.com
In reply to: Devrim GUNDUZ (#1)
Re: Problems compiling PostgreSQL 7.2.2 rpm

En Sat, 24 Aug 2002 23:45:00 +0300 (EEST)
Devrim GUNDUZ <devrim@oper.metu.edu.tr> escribi�:

Hello,

I'm trying to build the rpm using srpm on a RedHat 7.3, which I downloaded
from
http://www.ca.postgresql.org/ftpsite/binary/v7.2.2/RPMS/SRPMS/

However, I have a problem; cannot build the srpm. Here is the error:
------
/usr/bin/ld: warning: libcom_err.so.3, needed by ../../../src/interfaces/libpq/libpq.so, may conflict with libcom_err.so.2
gcc -O2 -march=i686 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpgtcl -I../../../src/include -I/usr/kerberos/include
-I/usr/X11R6/include -c -o pgtkAppInit.o pgtkAppInit.c
In file included from pgtkAppInit.c:15:
/usr/include/tk.h:83:29: X11/Xlib.h: No such file or directory

You need to install the XFree86-devel and/or XFree86-libs-devel (not
sure which one).

I don't know why is it trying to compile something with Tk anyway...
maybe you can disable that in the RPM, but I'm sure Lamar will tell you
exactly what is the problem.

The 7.2.2 RPM was released just yesterday, so Trond (teg, RedHat's
package mantainer) probably hasn't updated his package yet -- you may
have to wait for that.

--
Alvaro Herrera (<alvherre[a]atentus.com>)
"Nunca se desea ardientemente lo que solo se desea por razon" (F. Alexandre)

#3Kanjisoft Systems
mcd@kanjisoft.com
In reply to: Devrim GUNDUZ (#1)
What is the listserv address?

Sorry to bother you all, but I need to send an unsuscribe command.

Regards,
mark

----- Original Message -----
From: "Devrim GUNDUZ" <devrim@oper.metu.edu.tr>
To: "PostgreSQL Mailing Lists-General" <pgsql-general@postgresql.org>
Sent: Saturday, August 24, 2002 4:45 PM
Subject: [GENERAL] Problems compiling PostgreSQL 7.2.2 rpm

Hi,

I'm trying to build the rpm using srpm on a RedHat 7.3, which I downloaded
from
http://www.ca.postgresql.org/ftpsite/binary/v7.2.2/RPMS/SRPMS/

However, I have a problem; cannot build the srpm. Here is the error:
------
/usr/bin/ld: warning: libcom_err.so.3, needed by

../../../src/interfaces/libpq/libpq.so, may conflict with libcom_err.so.2

gcc -O2 -march=i686 -Wall -Wmissing-prototypes -Wmissing-declarations -I../.
./../src/interfaces/libpgtcl -I../../../src/include -I/usr/kerberos/include

-I/usr/X11R6/include -c -o pgtkAppInit.o pgtkAppInit.c
In file included from pgtkAppInit.c:15:
/usr/include/tk.h:83:29: X11/Xlib.h: No such file or directory
make[3]: *** [pgtkAppInit.o] Error 1
make[3]: Leaving directory

`/usr/src/redhat/BUILD/postgresql-7.2.2/src/bin/pgtclsh'

make[2]: *** [all] Error 2
make[2]: Leaving directory

`/usr/src/redhat/BUILD/postgresql-7.2.2/src/bin'

Show quoted text

make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/postgresql-7.2.2/src'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.81486 (%build)
------

Searched through the spec file, but could not find anything related to the
error...

Am I doing something wrong?

Also, there is no up2date rpm in http://people.redhat.com/teg/pg/ , even
though it's been told so in http://www.ca.postgresql.org/sitess.html.

Best regards.

--

Devrim GUNDUZ

devrim@oper.metu.edu.tr Tel : (312) 295 9318
devrim.gunduz@linux.org.tr Faks : (312) 295 9494

Web : http://devrim.oper.metu.edu.tr
-------------------------------------

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

#4Joe Conway
mail@joeconway.com
In reply to: Devrim GUNDUZ (#1)
Re: What is the listserv address?

Kanjisoft Systems wrote:

Sorry to bother you all, but I need to send an unsuscribe command.

<snip>

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

HTH,

Joe

#5Devrim GUNDUZ
devrim@oper.metu.edu.tr
In reply to: Alvaro Herrera (#2)
Re: Problems compiling PostgreSQL 7.2.2 rpm

Hi,

On Sat, 24 Aug 2002, Alvaro Herrera wrote:

You need to install the XFree86-devel and/or XFree86-libs-devel (not
sure which one).

I don't know why is it trying to compile something with Tk anyway...
maybe you can disable that in the RPM, but I'm sure Lamar will tell you
exactly what is the problem.

Thanks. It worked. Installed the XFree86-devel rpm, built the rpms and
installed them.

Best regards.

--

Devrim GUNDUZ

devrim@oper.metu.edu.tr Tel : (312) 295 9318
devrim.gunduz@linux.org.tr Faks : (312) 295 9494

Web : http://devrim.oper.metu.edu.tr
-------------------------------------