Solved C compiler cannot create executables

Hi guys,

I need help for this as I'm going round in circles.

I've tried to install net/php5-xmlrpc, but then this port tried to install devel/gettext-runtime. I already had devel/gettext, so the ports system complained that it installs files in the same place.

Read about that in the forum and followed their advice (also in UPDATING 20141130) - remove the old devel/gettext and install the new metaport.

But then this error was produced:
Code:
C compiler cannot create executables
When I looked into the logs, this is what I found:
Code:
gcc version 4.8.4 20140828 (prerelease) (FreeBSD Ports Collection)
configure:4314: $? = 0
configure:4303: gcc48 -V >&5
gcc48: error: unrecognized command line option '-V'
gcc48: fatal error: no input files
compilation terminated.
configure:4314: $? = 1
configure:4303: gcc48 -qversion >&5
gcc48: error: unrecognized command line option '-qversion'
gcc48: fatal error: no input files
compilation terminated.
configure:4314: $? = 1
configure:4334: checking whether the C compiler works
configure:4356: gcc48 -O2 -pipe -fstack-protector -fno-strict-aliasing  -fstack-protector conftest.c  >&5
Shared object "libintl.so.9" not found, required by "as"
configure:4360: $? = 2
configure:4398: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gettext-runtime"
| #define PACKAGE_TARNAME "gettext-runtime"
| #define PACKAGE_VERSION "0.19.4"
| #define PACKAGE_STRING "gettext-runtime 0.19.4"
| #define PACKAGE_BUGREPORT "bug-gnu-gettext@gnu.org"
| #define PACKAGE_URL ""
| #define PACKAGE "gettext-runtime"
| #define VERSION "0.19.4"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|  ;
|  return 0;
| }
configure:4403: error: in `/usr/ports/devel/gettext-runtime/work/gettext-0.19.4/gettext-runtime':
configure:4406: error: C compiler cannot create executables
This I think is the main error:
Code:
Shared object "libintl.so.9" not found, required by "as"
So I've read around about that too, there was an advice to rebuild bash, but that failed too with the same error.

So now I'm clueless on what I have to do to get this thing working again.

Please, help!
 
Thanks!

I managed to solve it by using the default gcc, not lang/gcc48. Then rebuild it with lang/gcc48 and everything was ok.

I don't know why it failed with the newer version.

But hopefully your answer will help someone else with such a problem!
 
Back
Top