Re: FreeBSD Port: textproc/libvisio

2013-05-30 Thread Mike Jakubik

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
  CXXLDvsd2xhtml
vsd2xhtml.o: In function `main':
vsd2xhtml.cpp:(.text.startup+0x2a3): undefined reference to 
`std::ctypechar::_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


Re: FreeBSD Port: textproc/libvisio

2013-05-29 Thread Waitman Gobble
On Mon, 27 May 2013 13:10:52 -0400, Mike Jakubik
mike.jaku...@intertainservices.com wrote: 

Hello,

I am unable to compile this port, below is the output from gcc48 and 
clang 3.2.

9.1-STABLE FreeBSD 9.1-STABLE #0: Wed May 15 17:07:33 EDT 2013

gmake[4]: Entering directory 
../../lib/.libs/libvisio-0.0.so: undefined reference to 
`std::ctypechar::_M_widen_init() const'
collect2: error: ld returned 1 exit status
gmake[4]: *** [vsd2raw] Error 1




Hi,

Check that /etc/libmap.conf is empty or non-existent, 
deinstall,rebuild and reinstall graphics/libwpg then build textproc/libvisio
It seems to work with clang (ports version) on FreeBSD 10.0-CURRENT

--
Waitman Gobble
San Jose California USA
+1.5108307875


___
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


Re: FreeBSD Port: textproc/libvisio

2013-05-29 Thread Mike Jakubik

On 05/29/13 03:56, Waitman Gobble wrote:

On Mon, 27 May 2013 13:10:52 -0400, Mike Jakubik
mike.jaku...@intertainservices.com wrote:

Hello,

I am unable to compile this port, below is the output from gcc48 and
clang 3.2.

9.1-STABLE FreeBSD 9.1-STABLE #0: Wed May 15 17:07:33 EDT 2013

gmake[4]: Entering directory
../../lib/.libs/libvisio-0.0.so: undefined reference to
`std::ctypechar::_M_widen_init() const'
collect2: error: ld returned 1 exit status
gmake[4]: *** [vsd2raw] Error 1




Hi,

Check that /etc/libmap.conf is empty or non-existent,
deinstall,rebuild and reinstall graphics/libwpg then build textproc/libvisio
It seems to work with clang (ports version) on FreeBSD 10.0-CURRENT




Hello,

I am using clang for base and gcc48 for ports, i have populated 
/etc/libmap.conf per the freebsd handbook with the following:


libgcc_s.so.1   gcc48/libgcc_s.so.1
libgomp.so.1gcc48/libgomp.so.1
libobjc.so.3gcc48/libobjc.so.2
libssp.so.0 gcc48/libssp.so.0
libstdc++.so.6  gcc48/libstdc++.so.6

Is this not the right way for clang and gcc to co-exist?

Thank you.

___
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


Re: FreeBSD Port: textproc/libvisio

2013-05-29 Thread Waitman Gobble
On Wed, 29 May 2013 11:39:55 -0400, Mike Jakubik
mike.jaku...@intertainservices.com wrote: 

On 05/29/13 03:56, Waitman Gobble wrote:
 On Mon, 27 May 2013 13:10:52 -0400, Mike Jakubik
 mike.jaku...@intertainservices.com wrote:
 Hello,

 I am unable to compile this port, below is the output from gcc48 and
 clang 3.2.

 9.1-STABLE FreeBSD 9.1-STABLE #0: Wed May 15 17:07:33 EDT 2013

 gmake[4]: Entering directory
 ../../lib/.libs/libvisio-0.0.so: undefined reference to
 `std::ctypechar::_M_widen_init() const'
 collect2: error: ld returned 1 exit status
 gmake[4]: *** [vsd2raw] Error 1



 Hi,

 Check that /etc/libmap.conf is empty or non-existent,
 deinstall,rebuild and reinstall graphics/libwpg then build
textproc/libvisio
 It seems to work with clang (ports version) on FreeBSD 10.0-CURRENT



Hello,

I am using clang for base and gcc48 for ports, i have populated 
/etc/libmap.conf per the freebsd handbook with the following:

libgcc_s.so.1   gcc48/libgcc_s.so.1
libgomp.so.1gcc48/libgomp.so.1
libobjc.so.3gcc48/libobjc.so.2
libssp.so.0 gcc48/libssp.so.0
libstdc++.so.6  gcc48/libstdc++.so.6

Is this not the right way for clang and gcc to co-exist?

Thank you.

___
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


Hi, 

Yes, what you have in libmap.conf appears to be correct (I'm presuming those
are the correct library versions).

I have not yet had the time to figure out why, but I had a similar build
problem, using clang in ports to rebuild libwpg first, then libvisio seems to
work.

--
Waitman Gobble
San Jose California USA
+1.5108307875


___
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


Re: FreeBSD Port: textproc/libvisio

2013-05-27 Thread Baptiste Daroussin
On Mon, May 27, 2013 at 01:10:52PM -0400, Mike Jakubik wrote:
 Hello,
 
 I am unable to compile this port, below is the output from gcc48 and 
 clang 3.2.
 
 9.1-STABLE FreeBSD 9.1-STABLE #0: Wed May 15 17:07:33 EDT 2013
 
 gmake[4]: Entering directory 
 `/usr/ports/textproc/libvisio/work/libvisio-0.0.27/src/conv/raw'
CXX  vsd2raw.o
CXXLDvsd2raw
 ../../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'
 ../../lib/.libs/libvisio-0.0.so: undefined reference to 
 `std::ctypechar::_M_widen_init() const'
 collect2: error: ld returned 1 exit status
 gmake[4]: *** [vsd2raw] Error 1
 
 
 gmake[4]: Entering directory 
 `/usr/ports/textproc/libvisio/work/libvisio-0.0.27/src/conv/raw'
CXX  vsd2raw.o
CXXLDvsd2raw
 /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'
 /usr/local/lib/libwpg-0.2.so: undefined reference to 
 `std::ctypechar::_M_widen_init() const'
 clang++: error: linker command failed with exit code 1 (use -v to see 
 invocation)
 gmake[4]: *** [vsd2raw] Error 1
 
 Thanks.
 ___
 freebsd-off...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-office
 To unsubscribe, send any mail to freebsd-office-unsubscr...@freebsd.org

you are mixing different incompatibles version of libstdc++ there is nothing we
can do about it, if you decide to use custom compilers you have tp be careful
that the whole chain is using the same libstdc++, either the one from gcc48 or
the one from base.

regards,
Bapt


pgpnklsbRZ_v6.pgp
Description: PGP signature