[Mpc-discuss] Bug in mpc 0.9: build of shared libraries broken on Linux

windward at gmx.org windward at gmx.org
Wed Mar 16 18:06:30 CET 2011


Hi!

I've compiled mpc 0.9 on Solaris and Linux (CentOS, but I think that doesn't matter, see below), but on Linux no shared libraries were created.

Execution of configure threw an error:

checking whether the /opt/SP/gcc/current/bin/gcc linker (/opt/SP/gcc/current/bin/ld -m elf_x86_64) supports shared libraries... ./configure: line 8413: : supported targets:.* elf: command not found
no

   8413       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   8414          && test "$tmp_diet" = no

So obviously $EGREP was not set. Checked config.log:

configure:3919: checking dependency style of /opt/SP/gcc/current/bin/gcc
configure:4029: result: gcc3
configure:4051: checking for gmp.h
configure:4060: [gcc command]
configure:4060: $? = 0
configure:4061: result: yes
configure:4615: checking for a sed that does not truncate output
configure:4679: result: /opt/SP/gcc/gcc-4.5.2/bin/sed
configure:4697: checking for fgrep
configure:4759: result: /opt/SP/gcc/gcc-4.5.2/bin/fgrep

Quite a lot of checks are not run (4061->4615), including those for egrep (starting at line 4270). It seems setting $CC or $CFLAGS has much more impact than it should.
I removed the check for $user_redefine_cc in line 4072 and 4492 and the configure worked fine for me again.

--- mpc-0.9/configure   2011-02-21 11:12:02.000000000 +0100
+++ mpc-0.9_patched/configure   2011-03-16 17:41:40.000000000 +0100
@@ -4069,7 +4069,6 @@ $as_echo "no" >&6; }
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

-if test -z "$user_redefine_cc" ; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 if test "${ac_cv_path_GREP+set}" = set; then :
@@ -4489,7 +4488,6 @@ rm -f core conftest.err conftest.$ac_obj
    fi


-fi


 case $host in

---


Best regards,

Martin



More information about the Mpc-discuss mailing list