dbTalk Databases Forums  

Antw: Re: [PORTS] 8.3beta2 fails to compile on Centos5 x86_64

mailing.database.pgsql-ports mailing.database.pgsql-ports


Discuss Antw: Re: [PORTS] 8.3beta2 fails to compile on Centos5 x86_64 in the mailing.database.pgsql-ports forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Marcel Gsteiger
 
Posts: n/a

Default Antw: Re: [PORTS] 8.3beta2 fails to compile on Centos5 x86_64 - 11-10-2007 , 04:01 PM






Quote:
Trying to rebuild postgresql-8.3beta2-1PGDG.f7.src.rpm on my Centos 5.0 =
x86_64, I get the error "your platform is not thread safe" during config. W=
hen I use the --enable-thread-safety-force option, the build fails with the=
message
Quote:
undefined reference to pthread_sigmask
during the libpq compile.

Do you have glibc-devel installed? It sounds like you might be missing
/usr/lib64/libpthread.so, which is in that RPM. However, we do
BuildRequire glibc-devel, so I'm not sure how you managed to try to
build the RPM without it.
glibc-devel-2.5-12 is installed, /usr/lib64/libpthread.so exists. This is a=
very basic CentOS 5 x86_64 install from DVD, 'yum update' afterwards. I on=
ly installed the packages that were in the BuildRequire list of the SRPM. I=
would like to set up this box just for testing my 8.1 and 8.2 database app=
s against the new version.=20

Pls let me know if you need some files in the BUILD directory (e.g. config.=
log).

My only diff from the original SPEC file is:

308c308
< %configure --disable-rpath --enable-thread-safety-force \
---
Quote:
%configure --disable-rpath \
Regards
--Marcel

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: Antw: Re: [PORTS] 8.3beta2 fails to compile on Centos5 x86_64 - 11-10-2007 , 04:55 PM






"Marcel Gsteiger" <Marcel.Gsteiger (AT) milprog (DOT) ch> writes:
Quote:
Do you have glibc-devel installed? It sounds like you might be missing
/usr/lib64/libpthread.so, which is in that RPM. However, we do
BuildRequire glibc-devel, so I'm not sure how you managed to try to
build the RPM without it.

glibc-devel-2.5-12 is installed, /usr/lib64/libpthread.so exists. This
is a very basic CentOS 5 x86_64 install from DVD, 'yum update'
afterwards. I only installed the packages that were in the
BuildRequire list of the SRPM.
Hmm. I suspect either we're short a BuildRequire or two, or you missed
something that's considered part of the standard minimum build
environment. The "exceptions" list on this page shows what Red Hat
considers the core set of packages that needn't be BuildRequire'd:

http://fedoraproject.org/wiki/Packag...nes#Exceptions

However, none of those look particularly likely to result in the
failure you're seeing here :-(. Could you send along the config.log
output?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq


Reply With Quote
  #3  
Old   
Tom Lane
 
Posts: n/a

Default Re: Antw: Re: [PORTS] 8.3beta2 fails to compile on Centos5 x86_64 - 11-11-2007 , 09:19 AM



"Marcel Gsteiger" <Marcel.Gsteiger (AT) milprog (DOT) ch> writes:
Quote:
Hmm. I suspect either we're short a BuildRequire or two, or you missed
something that's considered part of the standard minimum build
environment. The "exceptions" list on this page shows what Red Hat
considers the core set of packages that needn't be BuildRequire'd:

http://fedoraproject.org/wiki/Packag...nes#Exceptions

However, none of those look particularly likely to result in the
failure you're seeing here :-(. Could you send along the config.log
output?

Thanks for your tip. In fact, my "basic packages, customize later"-type install from DVD did not install the following packages from the mentioned list:

gcc-c++
libstdc++-devel
redhat-rpm-config

After I have installed these, everything now works perfectly.
Interesting. We don't do any C++ stuff, so I would hope that the first
two of those are irrelevant. redhat-rpm-config, however, might well be
relevant. I remember Devrim running into an odd build failure on a
machine where it wasn't installed.

I wonder if it'd be worth explicitly BuildRequire'ing redhat-rpm-config
in the PGDG SRPM? I don't feel the need to do it in Fedora/RHEL,
because as mentioned there's an explicit policy not to for those
projects. But it seems the PGDG RPMs get rebuilt in a rather wider
variety of environments.

regards, tom lane

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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.