Bug 155221 - missing BuildRequires: gcc-c++ rpm-devel elfutils-devel beecrypt-devel
missing BuildRequires: gcc-c++ rpm-devel elfutils-devel beecrypt-devel
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: php (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
:
: 149643 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-18 04:00 EDT by Marius Andreiana
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: 5.0.4-8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-04-26 08:46:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Marius Andreiana 2005-04-18 04:00:36 EDT
I tried to recompile the php rpm (with oracle support, don't know if it
matters), after I installed all depencies but it gave an error. Here's config.log:

configure:3705: checking how to run the C++ preprocessor
configure:3736: g++ -E  conftest.cc
./configure: line 3737: g++: command not found
configure:3742: $? = 127
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #ifdef __cplusplus
| void exit (int);
| #endif
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error
configure:3736: g++ -E  conftest.cc
./configure: line 3737: g++: command not found
configure:3742: $? = 127
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #ifdef __cplusplus
| void exit (int);
| #endif
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error
configure:3736: /lib/cpp  conftest.cc
cpp: installation problem, cannot exec 'cc1plus': No such file or directory

After installing gcc-c++ got another error:
checking for init_snmp in -lnetsnmp... no
configure: error: SNMP sanity check failed. Please check config.log for more
information.
config.log had:
/usr/bin/ld: cannot find -lrpm

It's required by snmp:
net-snmp-config --libs
-L/usr/lib -lnetsnmp -lcrypto -lrpm -lrpmio -lpopt -lbz2 -lz -lelf -lm
-L/usr/lib/lib -lwrap
(Is rpm-devel really necessary for snmp?)

Then I got missing -lelf on snmp again.
I installed elfutils-devel.

I think both rpm-devel and elfutils-devel should be required by snmp-devel, not
 by php rebuild.
 
Then php started to compile.
Comment 1 Marius Andreiana 2005-04-18 04:40:01 EDT
Found another one during linking, again in snmp:

grep: /usr/lib/libbeecrypt.la: No such file or directory
/bin/sed: can't read /usr/lib/libbeecrypt.la: No such file or directory
libtool: link: `/usr/lib/libbeecrypt.la' is not a valid libtool archive
make: *** [ext/snmp/snmp.la] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.62674 (%build)

Fixed by installing beecrypt-devel. Again, this should be in net-snmp-devel
Requires.
Comment 2 Joe Orton 2005-04-18 06:54:06 EDT
What versions of libtool, php, beecrypt are you using?
Comment 3 Joe Orton 2005-04-18 06:54:42 EDT
and net-snmp.

# rpm -q php libtool beecrypt-devel net-snmp-devel
Comment 4 Marius Andreiana 2005-04-18 07:07:55 EDT
Thanks for quick provided command line. I'm using fedora development.

package php is not installed
libtool-1.5.14.multilib2-6
beecrypt-devel-4.1.2-5
net-snmp-devel-5.2.1-9
Comment 5 Marius Andreiana 2005-04-18 07:10:14 EDT
The src rpm is php-5.0.4-2.src.rpm
Comment 6 Joe Orton 2005-04-18 07:11:52 EDT
This at least is a net-snmp bug - net-snmp-devel should Require rpm-devel etc.

checking for init_snmp in -lnetsnmp... no
configure: error: SNMP sanity check failed. Please check config.log for more
information.

config.log had:
/usr/bin/ld: cannot find -lrpm

Comment 7 Joe Orton 2005-04-19 03:57:11 EDT
*** Bug 149643 has been marked as a duplicate of this bug. ***
Comment 8 Radek Vokal 2005-04-19 07:39:51 EDT
Few more dependecies added to rawhide version of net-snmp-devel package. 
Comment 9 Marius Andreiana 2005-04-19 09:18:20 EDT
gcc-c++ still wasn't added to php:
http://cvs.fedora.redhat.com/viewcvs/devel/php/php.spec?rev=1.71&view=log

The rest are ok.
Comment 10 Joe Orton 2005-04-26 08:46:09 EDT
'tis done, thanks for the report.

Note You need to log in before you can comment on or make changes to this bug.