On Sun, May 20, 2007, Olivier Kaloudoff wrote:
> 2007-05-20: rse: fix building Perl under GCC 4.2 world order
> rse: fix building Perl under GCC 4.2 world order
>
> it build fine on a Centos 3.4, but still fails (with a brand
> new error on an FC2 .. The error seems related to db/dbm, as you can
> see below;
> [...]
> + xargs /openpkg/RPM/TMP/perl-5.8.8-root/openpkg/bin/perl
> /openpkg/RPM/TMP/perl-5.8.8-root/openpkg/bin/h2ph -h -d
> /openpkg/RPM/TMP/perl-5.8.8-root/openpkg/lib/perl/5.8.8/i686-linux
> Can't open cxx_common.h: No such file or directory
> Can't open cxx_except.h: No such file or directory
> + exit 123
This seems to be a local problem. Can it be that cxx_common.h and
cxx_except.h are just not _readable_? h2ph is a utility which tries to
convert the system headers *.h to corresponding Perl *.ph files.
Usually this is a harmless operation, so when it fails for you
there has to be something strange on your system.
Do a "/bin/rpm -qf /usr/include/cxx_common.h" to find out which
vendor package contains cxx_common.h and also do a "ls -l
/usr/include/cxx_common.h" to check its permissions. I guess it is not
world readable...
> [EMAIL PROTECTED] root]# rpm -qa | grep db
> gdbm-1.8.0-22.1
> db4-4.2.52-3.1
> db4-devel-4.2.52-3.1
> [EMAIL PROTECTED] root]# openpkg rpm -qa | grep db
> [EMAIL PROTECTED] root]# cat /etc/redhat-release
> Fedora Core release 2 (Tettnang)
>
> On the system that is compiling fine, I have both db and gdbm
> binary and devel packages, on the one that is not working, I don't have
> gdbm devel.
>
> Maybe this can be the source of the problem?
No, the DB stuff just affects Perl's DB_File module. This is not the
problem here. The problem is that h2pn failed as far as I see.
> BTW, I noted
> the following error;
>
> <db.h> found.
> *** WHOA THERE!!! ***
> The recommended value for $i_db on this machine was "undef"!
> Keep the recommended value? [y]
>
> If I'm able to do so, I'll try to fetch gdbm-devel for FC2 .. Or should I
> try to add -Ui_dbm to the spec file ?
No, it is harmless. One can keep it as is.
> BTW, Is there a way to add -Ui_dbm in the build process when using
> openpkg build ... ?
No, there isn't.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
OpenPKG http://openpkg.org
User Communication List [email protected]