On 05/30/13 11:27, Michael Moll wrote:
Hi,

sorry for coming a bit late across this topic, I'm not subscribed to
freebsd-ports@. However, I had the same problem with gcc 4.7 and can
workaround it by changes like this in the according Makefiles:

--- 
/portswork/usr/ports/textproc/libvisio/work/libvisio-0.0.27/src/conv/raw/Makefile.orig
      2013-05-30 17:21:53.228445444 +0200
+++ 
/portswork/usr/ports/textproc/libvisio/work/libvisio-0.0.27/src/conv/raw/Makefile
   2013-05-30 17:22:10.372454743 +0200
@@ -187,7 +187,7 @@
  INSTALL_SCRIPT = install  -o root -g wheel -m 555
  INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
  LD = /usr/local/bin/ld
-LDFLAGS =  -Wl,-rpath=/usr/local/lib/gcc47
+LDFLAGS =  -Wl,-rpath=/usr/local/lib/gcc47 -L/usr/local/lib/gcc47
  LIBOBJS =
  LIBS =
  LIBTOOL = $(SHELL) $(top_builddir)/libtool

I didn't dig deeper into it, but there seems to be some problem in the
configure process of this port. A similar workaround is necessary for
net/libcmis on my box.


This unfortunately did not work for me, I'm thinking of just sticking with clang at this point, even though gcc48 usually produces better performing binaries. 90% of the time this setup works fine, but the odd port fails to compile and then there are issues like this.

gmake[4]: Entering directory `/usr/ports/textproc/libvisio/work/libvisio-0.0.27/src/conv/svg'
  CXX      vsd2xhtml.o
  CXXLD    vsd2xhtml
vsd2xhtml.o: In function `main':
vsd2xhtml.cpp:(.text.startup+0x2a3): undefined reference to `std::ctype<char>::_M_widen_init() const' ../../lib/.libs/libvisio-0.0.so: undefined reference to `std::__detail::_List_node_base::_M_transfer(std::__detail::_List_node_base*, std::__detail::_List_node_base*)' ../../lib/.libs/libvisio-0.0.so: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)' ../../lib/.libs/libvisio-0.0.so: undefined reference to `std::__detail::_List_node_base::_M_unhook()' /usr/local/lib/libwpd-0.9.so: undefined reference to `std::__detail::_List_node_base::_M_unhook()@GLIBCXX_3.4.15' /usr/local/lib/libwpd-0.9.so: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
collect2: error: ld returned 1 exit status

Thanks.

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to