Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Sep 2009 01:01:12 GMT
From:      ohata <Ohata.Hideshi@dx.MitsubishiElectric.co.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/139125: octave build fails due to gcc update from 43 to 44
Message-ID:  <200909250101.n8P11CoG017958@www.freebsd.org>
Resent-Message-ID: <200909250110.n8P1A2qk053811@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909250101.n8P11CoG017958>