Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

PHP won't compile

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
Turnip
n00b
n00b
Posts: 60
Joined: Wed Feb 09, 2005 6:19 pm
Location: Reading, UK
Contact:
Contact Turnip
Website

PHP won't compile

  • Quote

Post by Turnip » Mon Feb 14, 2005 6:59 pm

I tried to compile PHP and got this:

Code: Select all

/bin/sh /var/tmp/portage/php-4.3.10/work/php-4.3.10/libtool --silent --preserve-dup-deps --mode=install cp ext/java/java.la /var/tmp/portage/php-4.3.10/work/php-4.3.10/modules
PATH="$PATH:/sbin" ldconfig -n /var/tmp/portage/php-4.3.10/work/php-4.3.10/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /var/tmp/portage/php-4.3.10/work/php-4.3.10/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
libtool: link: cannot find the library `/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la'
make: *** [sapi/cli/php] Error 1

!!! ERROR: dev-php/php-4.3.10 failed.
!!! Function php-sapi_src_compile, Line 538, Exitcode 2
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message.
Any help is appreciated.

Thanks,
Turnip
Top
appro
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 144
Joined: Mon Jul 21, 2003 2:18 pm
Location: Germany/Rosenheim

  • Quote

Post by appro » Mon Feb 14, 2005 7:25 pm

Try /sbin/fix_libtool_files.sh 3.3.4 and then emerge php again.

Cheers appro
If a packet hits a pocket on a socket on a port, and the bus is interrupted and the interrupt's not caught, then the socket packet pocket has an error to report.
Top
Turnip
n00b
n00b
Posts: 60
Joined: Wed Feb 09, 2005 6:19 pm
Location: Reading, UK
Contact:
Contact Turnip
Website

  • Quote

Post by Turnip » Mon Feb 14, 2005 8:08 pm

Nope, it didn't work :(
Top
Halcy0n
Developer
Developer
User avatar
Posts: 1682
Joined: Wed Sep 17, 2003 5:09 am
Location: Freehold, NJ
Contact:
Contact Halcy0n
Website

  • Quote

Post by Halcy0n » Mon Feb 14, 2005 8:31 pm

Please post the output of `emerge info'.
Mark Loeser
http://www.halcy0n.com
Top
Turnip
n00b
n00b
Posts: 60
Joined: Wed Feb 09, 2005 6:19 pm
Location: Reading, UK
Contact:
Contact Turnip
Website

  • Quote

Post by Turnip » Mon Feb 14, 2005 11:15 pm

Code: Select all

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1500MHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 24 2004, 10:03:47)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   1.5.2-r5
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X apm arts avi berkdb bitmap-fonts cdr crypt cups curl encode esd f77 fam font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jpeg junit kde ldap libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl svga tcpdtiff truetype truetype-fonts type1-fonts xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
It happens when trying to build SuperKaramba too.
Top
pYrania
Retired Dev
Retired Dev
User avatar
Posts: 650
Joined: Sun Oct 27, 2002 8:19 pm
Location: Cologne - Germany
Contact:
Contact pYrania
Website

  • Quote

Post by pYrania » Mon Feb 14, 2005 11:18 pm

Code: Select all

# gcc-config -l
?
Markus Nigbur
Top
Turnip
n00b
n00b
Posts: 60
Joined: Wed Feb 09, 2005 6:19 pm
Location: Reading, UK
Contact:
Contact Turnip
Website

  • Quote

Post by Turnip » Mon Feb 14, 2005 11:32 pm

Code: Select all

blue root # gcc-config -l
[1] i686-pc-linux-gnu-3.3.4 *
[2] i686-pc-linux-gnu-3.4.3-20050110
[3] i686-pc-linux-gnu-3.4.3-20050110-hardened
[4] i686-pc-linux-gnu-3.4.3-20050110-hardenednopie
[5] i686-pc-linux-gnu-3.4.3-20050110-hardenednossp
Top
Halcy0n
Developer
Developer
User avatar
Posts: 1682
Joined: Wed Sep 17, 2003 5:09 am
Location: Freehold, NJ
Contact:
Contact Halcy0n
Website

  • Quote

Post by Halcy0n » Mon Feb 14, 2005 11:57 pm

Run the following, and then try again.

Code: Select all

fix_libtool_files.sh `gcc -dumpversion` --oldarch i386-pc-linux-gnu
Mark Loeser
http://www.halcy0n.com
Top
scocou
Apprentice
Apprentice
User avatar
Posts: 184
Joined: Fri Aug 16, 2002 7:58 am
Location: Pacific NW, Canada

  • Quote

Post by scocou » Tue Feb 15, 2005 12:44 am

appro wrote:Try /sbin/fix_libtool_files.sh 3.3.4 and then emerge php again.
Not sure where you heard about that, but thanks! I couldn't compile gtk+2, imagemagick or libdv for the longest time, but that fixed it :-)
Top
Turnip
n00b
n00b
Posts: 60
Joined: Wed Feb 09, 2005 6:19 pm
Location: Reading, UK
Contact:
Contact Turnip
Website

  • Quote

Post by Turnip » Tue Feb 15, 2005 12:46 am

Thanks a lot! I've just compiled PHP and SuperKaramba easily. Thanks :D
Top
Post Reply

10 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy