ports/139125: octave build fails due to gcc update from 43 to 44
ohata
Ohata.Hideshi at dx.MitsubishiElectric.co.jp
Fri Sep 25 01:10:03 UTC 2009
>Number: 139125
>Category: ports
>Synopsis: octave build fails due to gcc update from 43 to 44
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 25 01:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: ohata
>Release: i386 7.2-stable
>Organization:
Mitsubishi
>Environment:
7.2-STABLE FreeBSD 7.2-STABLE #25: Wed Sep 2 09:20:35 JST 2009 root at aaa:/usr/obj/usr/src/sys/VM7 i386
>Description:
octave build fails due to gcc update from 43 to 44
/libexec/ld-elf.so.1: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.11 required by ./gendoc not found
>How-To-Repeat:
cd /usr/ports/math/octave
make
>Fix:
quick recipe:
add rpath to CFLAGS and CXXFLAGS as follows,
--- /usr/ports/math/octave/Makefile 2009-09-22 05:25:33.000000000 +0900
+++ Makefile 2009-09-24 15:48:15.000000000 +0900
@@ -34,7 +34,7 @@
fltk:${PORTSDIR}/x11-toolkits/fltk \
GraphicsMagick.1:${PORTSDIR}/graphics/GraphicsMagick
-BROKEN= does not build
+#BROKEN= does not build
USE_BZIP2= yes
USE_PERL5_BUILD=yes
@@ -79,8 +79,8 @@
INCLUDES= -I${LOCALBASE}/include
MAKE_ENV+= CPPFLAGS="${CPPFLAGS} ${INCLUDES}" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
-CFLAGS+= ${INCLUDES}
-CXXFLAGS+= ${INCLUDES}
+CFLAGS+= ${INCLUDES} -Wl,-rpath,/usr/local/lib/gcc44
+CXXFLAGS+= ${INCLUDES} -Wl,-rpath,/usr/local/lib/gcc44
CPPFLAGS+= ${INCLUDES}
CONFIGURE_ENV+= GPERF="${LOCALBASE}/bin/gperf" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list