Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50739 - mod_php installation error "gcc cannot create executables" on i586-pc-linux-gnu system
Summary: mod_php installation error "gcc cannot create executables" on i586-pc-linux-g...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-11 05:24 UTC by Wojciech Potentas
Modified: 2004-06-27 16:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info, error message, emerge output, make.conf file (mod_php_err.tbz2,4.34 KB, application/x-bzip-compressed-tar)
2004-05-11 05:26 UTC, Wojciech Potentas
Details
config.log file (config.log,760 bytes, text/plain)
2004-05-11 14:16 UTC, Wojciech Potentas
Details
revdep-rebuil output (revdep.txt,588 bytes, text/plain)
2004-05-12 05:03 UTC, Wojciech Potentas
Details
config.log file (for DBM error) (config.log,760 bytes, text/plain)
2004-05-13 10:58 UTC, Wojciech Potentas
Details
DBA error config.log (config.log,49.38 KB, text/plain)
2004-05-13 22:22 UTC, Wojciech Potentas
Details
config.log file from 'emerge mod_php' for apache1 (config1.log,50.03 KB, patch)
2004-05-17 04:40 UTC, Wojciech Potentas
Details | Diff
config.log file from 'emerge mod_php' for Apache2 (config2.log,50.54 KB, text/plain)
2004-05-17 07:57 UTC, Wojciech Potentas
Details
The next error generated (config.log file for emerge mod_php) (config.log,67.97 KB, text/plain)
2004-05-18 08:41 UTC, Wojciech Potentas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wojciech Potentas 2004-05-11 05:24:19 UTC
When I trying to emerge mod_php it returns that gcc cannot create executables. Firts it really couldn't cause I didn't put -tiff and -pdflib in USE flags and CCFLAGS tried to use -ltiff. (when I was tryning to execute command "gcc -ltiff" an error occured") But when I put "-tiff -pdflib" in USE flags instalation error still occurs, instead of that that "gcc -O2 -march=k6-2 -fomit-frame-pointer -Wall -pipe -L/usr/lib" or "[...]march=i586[...]" works. I tried to install mod_php on my i686 duron machine (workstation) and it was working, so I dont know why it doesnt work on my i586 k6-2 machine (small server).

Reproducible: Always
Steps to Reproduce:
1.Have the i586 compiler installed
2.emerge sync
3.emerge mod_php

Actual Results:  
Error message "gcc cannot create executables"

Expected Results:  
emerge mod_php should configure, compile and install mod_php

apache1.3.29 doesnt compile so I use apache2.0.49 with ssl. It works.
Comment 1 Wojciech Potentas 2004-05-11 05:26:39 UTC
Created attachment 31166 [details]
emerge info, error message, emerge output, make.conf file

 I think all needen files has been included.
Comment 2 SpanKY gentoo-dev 2004-05-11 12:25:45 UTC
read the config.log file to find out what you're doing wrong

or post it here and we can take a peek
Comment 3 Wojciech Potentas 2004-05-11 14:16:51 UTC
Created attachment 31214 [details]
config.log file

 Ok thats it. I tried to emerge XML-Parser but it gave nothing.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-11 14:47:55 UTC
revdep-rebuild
Comment 5 Wojciech Potentas 2004-05-12 05:01:27 UTC
 revdep-rebuild found nothing, mod_php still refuses to emerge. :(
Comment 6 Wojciech Potentas 2004-05-12 05:02:00 UTC
 revdep-rebuild found nothing, mod_php still refuses to emerge. :(
Comment 7 Wojciech Potentas 2004-05-12 05:03:28 UTC
Created attachment 31254 [details]
revdep-rebuil output

I forgot to attach
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-12 10:22:57 UTC
please include the output of 'locate libxmlparse' and 'locate libxmltok'
Comment 9 Wojciech Potentas 2004-05-12 13:58:42 UTC
The "locate libxmlparse" and "locate libxmltok" gives no output...
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-12 15:55:47 UTC
emerge libwww
Comment 11 Wojciech Potentas 2004-05-13 04:39:35 UTC
 Now it works, but there is another error:

configure: error: DBA: Could not find necessary header file(s).

!!! ERROR: dev-php/mod_php-4.3.6-r1 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-13 10:27:14 UTC
include the new config.log for the DBA error.
Comment 13 Wojciech Potentas 2004-05-13 10:58:42 UTC
Created attachment 31352 [details]
config.log file (for DBM error)
Comment 14 Wojciech Potentas 2004-05-13 10:59:28 UTC
Sorry, DBA
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-13 20:28:08 UTC
you've attached the same config.log file that you submitted before.
Comment 16 Wojciech Potentas 2004-05-13 22:22:42 UTC
Created attachment 31392 [details]
DBA error config.log

I really sorry.
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-13 23:29:46 UTC
emerge gdbm
Comment 18 Wojciech Potentas 2004-05-14 00:09:30 UTC
 I tried. gdbm was emerged succesfully but 'emerge mod_php' still didnt work.
Comment 19 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-14 00:12:18 UTC
again, post a newer config.log.
i don't know what you did to your system, but you really succeeded in messing it up, probably via judicous use of emerge depclean or emerge clean.
Comment 20 Wojciech Potentas 2004-05-14 00:25:53 UTC
 The config.log file is the same. (checking dfor GDBM support)
The system was moved from Pentium 166MMX to K6-2 computer, then I unpacked stage3xxx.tzb2 from 'Polish Gentoo' server (the md5 was valid). Then I was emerging packgages but recognized that 'emerge' isn,t emerging dependancy packages. 'emerge -uDp world' and 'emerge -uDp system' shows nothing to emerge.
Comment 21 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-14 10:40:43 UTC
After a move like Pentium MMX to K6-2, I think you should probably do 'emerge -e world', or at least track down every package that wasn't in the stage3 and re-merge them. MMX is a greater CPU than the K6 series.

Somewhere one of the libraries is either missing or contains something that the K6-2 doesn't like.

For a more detailed view on it, you'd have to open the configure file, copy out the gdbm_open test and the GDBM support test to find their C input files, and run the gcc command yourself to see the exact error.
Comment 22 Wojciech Potentas 2004-05-17 04:40:07 UTC
Created attachment 31576 [details, diff]
config.log file from 'emerge mod_php' for apache1
Comment 23 Wojciech Potentas 2004-05-17 07:57:42 UTC
Created attachment 31583 [details]
config.log file from 'emerge mod_php' for Apache2

After succesfullu making 'emerge -e world' I tried to 'emerge mod_php' for both
Apache1 and Apache2. Both config.log files are in attachment (config1 for
Apache1, config2 for Apache2) I think the error is common for both Apaches.
Comment 24 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-17 17:47:19 UTC
'emerge libxml' and the DOM error should go away.
i don't know why this wasn't done my emerge -e world however.
but your system there is definetly screwed up in some way.
Comment 25 Wojciech Potentas 2004-05-18 08:41:23 UTC
Created attachment 31656 [details]
The next error generated (config.log file for emerge mod_php)

 This is the stage3-x86-20040218 from Polish Gentoo Mirror. Md5 was fine, file
has extracted succesfully.
Comment 26 Wojciech Potentas 2004-05-18 09:01:57 UTC
 Then I have done emerge -uD system but forgotten to change make.conf file and it was compiling for pentium (don't remember if 'mmx'), maybe this srewed it up?
Comment 27 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-18 09:16:41 UTC
did you at any point change CHOST?
Comment 28 Wojciech Potentas 2004-05-18 09:45:11 UTC
 If original CHOST is diffrent than i586-pc-linux-gnu then yes... If I my memory isnt lying me, I have done something with this.
Comment 29 Wojciech Potentas 2004-05-18 09:49:30 UTC
Yes, original is i386-pc-linux-gnu.
Comment 30 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-18 09:53:05 UTC
yup, in the stage3 you pointed out it's CHOST="i386-pc-linux-gnu"
run:
/sbin/fix_libtool_files.sh `gcc -dumpversion` --oldarch i386-pc-linux-gnu

then your system should be mostly ok since you've done emerge -e world already.
also, check if 'emerge -e world' and 'emerge -eD world' contain all the same packages.
Comment 31 Wojciech Potentas 2004-05-18 10:10:38 UTC
 Ok, I have run the command you specified, but it scanned something and exited succesfully. I put emerge -ep world and emerge -eDp world it showed me up the same packages :) now should be good?
Comment 32 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-18 10:13:57 UTC
yup, if you have more problems, we can work thru them still.
Comment 33 Wojciech Potentas 2004-05-18 10:15:24 UTC
mod_php still says that it needs "PSPELL" I'll chcek if config.log is the same, as I attached above
Comment 34 Wojciech Potentas 2004-05-18 10:20:34 UTC
 Thats good, thanks, config.log is the same, but I dont know what PSPELL is.
Comment 35 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-18 10:21:58 UTC
emerge aspell and it should solve the pspell problem (i know this sounds non-intuitive a != p)
Comment 36 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-27 16:36:12 UTC
no further response from user.