Click to See Complete Forum and Search --> : GCC, G++, and PHP make


Dr. Shim
09-30-2003, 10:33 AM
We have far too many acronyms ...
Anyway, I have a confusing mess when trying to compile PHP (4.3.2). It appears that the configure script of PHP does not support (or find) the G++ compiler. If I install GCC (using apt-get install gcc [I'm running Debian Woody] it fetches version 2.95) there is a package conflict. configure does it duty just fine, so off to running make. During it's process it complains about ...


/usr/bin/ld: /lib/libgcc_s.so.1: warning: unexpected redefinition of '__dividi3@GLIBC_2.0'
/usr/bin/ld: /lib/libgcc_s.so.1: warning: unexpected redefinition of '__umoddi3@GLIBC_2.0'
/usr/bin/ld: /lib/libgcc_s.so.1: warning: unexpected redefinition of '_udividi3@GLIBC_2.0'
/usr/bin/ld: /lib/libgcc_s.so.1(*IND**0x0): multiple definition of '__udividi3@GLIBC_2.0'
/lib/libc/so.6(.text+0x880): first defined here
/usr/bin/ld: /lib/libgcc_s.so.1: warning: unexpected redefinition of 'moddi3@GLIBC_2.0'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


So, I attempt to remove G++ using apt-get remove g++-3.0 it says it must remove the package libstdc++3-dev as well (dependency issue). I require that package since during make's process it will complain about lstdc not being found.
I can't get the exact error message about lsdtc missing momentarily. But I'm sure it happens pretty much at the beginning of the compilation process.

Any ideas?

hard candy
09-30-2003, 04:02 PM
Can you remove the libstdcc++ pkg, uninstall the g++, and then reinstall libstdc++ ? Can you use "-o (option)" to mask libstdc? I know with portage you can mask a file.

Dr. Shim
10-01-2003, 05:09 AM
The error was from me having both GCC-3.0 and GCC-3.3 installed at the same time. The former (3.0) was not dependent on anything, so I removed it. Compiliation worked just fine.

Sort of obvious, so I don't know why I couldn't find anything about it!

Thx for the tip!!