From nobody@FreeBSD.org  Wed Jan 28 05:46:54 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B297F106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 28 Jan 2009 05:46:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id A05808FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 28 Jan 2009 05:46:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n0S5krU3081779
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 28 Jan 2009 05:46:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n0S5kr6I081778;
	Wed, 28 Jan 2009 05:46:53 GMT
	(envelope-from nobody)
Message-Id: <200901280546.n0S5kr6I081778@www.freebsd.org>
Date: Wed, 28 Jan 2009 05:46:53 GMT
From: Tian-Jian Jiang <tmjiang@iis.sinica.edu.tw>
To: freebsd-gnats-submit@FreeBSD.org
Subject: graphviz link failed on libgvc.so with "undefined refernce to `sincos'"
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         131072
>Category:       ports
>Synopsis:       graphics/graphviz link failed on libgvc.so with "undefined reference to `sincos'"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 28 05:50:03 UTC 2009
>Closed-Date:    Wed Apr 29 10:17:36 CEST 2009
>Last-Modified:  Thu Sep 16 12:30:01 UTC 2010
>Originator:     Tian-Jian Jiang
>Release:        7.1
>Organization:
IASL, IIS, SINICA
>Environment:
FreeBSD 7.1-RELEASE FreeBSD 7.1-RELEASE #12: Sun Jan  4 17:19:49 CST 2009     root@xxx:/usr/obj/usr/src/sys/XXX_SMP  amd64
>Description:
gcc43 -O2 -fno-strict-aliasing -pipe -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -o .libs/dot dot.o  -L/usr/local/lib -L/usr/local/lib/python2.5 ../../lib/gvc/.libs/libgvc.so /tmp/WRKDIR/usr/ports/graphics/graphviz/work/graphviz-2.20.3/lib/graph/.libs/libgraph.so /tmp/WRKDIR/usr/ports/graphics/graphviz/work/graphviz-2.20.3/lib/cdt/.libs/libcdt.so /tmp/WRKDIR/usr/ports/graphics/graphviz/work/graphviz-2.20.3/lib/pathplan/.libs/libpathplan.so /usr/local/lib/libexpat.so /usr/local/lib/libltdl.so -lz -lm  -Wl,--rpath -Wl,/usr/local/lib/graphviz -Wl,--rpath -Wl,/usr/local/lib
./../lib/gvc/.libs/libgvc.so: undefined reference to `sincos'
>How-To-Repeat:
build graphviz with gcc43
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dinoex 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Jan 28 06:11:34 UTC 2009 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131072 
State-Changed-From-To: open->feedback 
State-Changed-By: dinoex 
State-Changed-When: Sun Feb 1 13:33:23 CET 2009 
State-Changed-Why:  
I can not reprodcue the error yet. 

Please provide the optiions you have Selected. 
$ cat /var/db/ports/graphviz/options  
# This file is auto-generated by 'make config'. 
# No user-servicable parts inside! 
# Options for graphviz-2.20.3 
_OPTIONS_READ=graphviz-2.20.3 
WITH_ICONV=true 
WITH_XPM=true 
WITH_DIGCOLA=true 
WITH_IPSEPCOLA=true 
WITHOUT_SMYRNA=true 
WITH_NLS=true 
WITHOUT_TK=true 
WITHOUT_PANGOCAIRO=true 
WITHOUT_RSVG=true 
WITHOUT_GTK=true 
WITHOUT_GDK_PIXBUF=true 
WITHOUT_GNOMEUI=true 
WITHOUT_MING=true 
WITHOUT_DEVIL=true 
WITHOUT_PERL=true 
WITHOUT_PHP=true 
WITHOUT_PYTHON=true 
WITHOUT_RUBY=true 
WITHOUT_LUA=true 
WITHOUT_TCL=true 
WITHOUT_GUILE=true 


http://www.freebsd.org/cgi/query-pr.cgi?pr=131072 

From: Jimmie James <jimmiejaz@gmail.com>
To: bug-followup@FreeBSD.org,  tmjiang@iis.sinica.edu.tw
Cc:  
Subject: Re: ports/131072: graphics/graphviz link failed on libgvc.so with
 "undefined reference to `sincos'"
Date: Mon, 09 Feb 2009 16:21:19 -0500

 Not the original submitter here,
 
   c++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/gvc 
 -I../../lib/common -I../../lib/graph -I../../lib/cdt 
 -I../../lib/pathplan -I/usr/local/include/tcl8.4 
 -I/usr/local/include/tcl8.4/generic -I/usr/local/include 
 -I/usr/local/include/tk8.4 -I/usr/local/include/tcl8.4 
 -I/usr/local/include/php/Zend -I/usr/local/include -O2 
 -fno-strict-aliasing -pipe -march=pentium4 -I/usr/local/include/lua51 
 -MT libgv_tcl_la-gv_tcl.lo -MD -MP -MF .deps/libgv_tcl_la-gv_tcl.Tpo -c 
 gv_tcl.cpp  -fPIC -DPIC -o .libs/libgv_tcl_la-gv_tcl.o
 gv_tcl.cpp:2052: error: expected unqualified-id before '%' token
 gv_tcl.cpp:2056: error: expected unqualified-id before '%' token
 gmake[4]: *** [libgv_tcl_la-gv_tcl.lo] Error 1
 gmake[4]: Leaving directory 
 `/usr/ports/graphics/graphviz/work/graphviz-2.20.3/tclpkg/gv'
 gmake[3]: *** [all-recursive] Error 1
 gmake[3]: Leaving directory 
 `/usr/ports/graphics/graphviz/work/graphviz-2.20.3/tclpkg/gv'
 gmake[2]: *** [all-recursive] Error 1
 gmake[2]: Leaving directory 
 `/usr/ports/graphics/graphviz/work/graphviz-2.20.3/tclpkg'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory 
 `/usr/ports/graphics/graphviz/work/graphviz-2.20.3'
 gmake: *** [all] Error 2
 *** Error code 2
 
 
 cat /var/db/ports/graphviz/options
 # This file is auto-generated by 'make config'.
 # No user-servicable parts inside!
 # Options for graphviz-2.18_1
 _OPTIONS_READ=graphviz-2.18_1
 WITH_ICONV=true
 WITH_XPM=true
 WITHOUT_DIGCOLA=true
 WITHOUT_IPSEPCOLA=true
 WITHOUT_SMYRNA=true
 WITH_NLS=true
 WITH_TK=true
 WITH_PANGOCAIRO=true
 WITHOUT_RSVG=true
 WITH_GTK=true
 WITH_GDK_PIXBUF=true
 WITHOUT_GNOMEUI=true
 WITHOUT_MING=true
 WITHOUT_DEVIL=true
 WITH_PERL=true
 WITH_PHP=true
 WITH_PYTHON=true
 WITH_RUBY=true
 WITH_LUA=true
 WITH_TCL=true
 WITH_GUILE=true
 
 -- 
 Over the years I've come to regard you as people I've met.
 

From: Jimmie James <jimmiejaz@gmail.com>
To: bug-followup@FreeBSD.org
Cc: tmjiang@iis.sinica.edu.tw,  dinoex@FreeBSD.org
Subject: Re: ports/131072: graphics/graphviz link failed on libgvc.so with
 "undefined reference to `sincos'"
Date: Mon, 09 Feb 2009 16:52:08 -0500

 Just a follow, removing TCL and TK from the build options fixes this error.
 
 Fix? don't know. Work around: remove TCL/TK
 
 
 c++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/gvc
 -I../../lib/common -I../../lib/graph -I../../lib/cdt
 -I../../lib/pathplan -I/usr/local/include/tcl8.4
 -I/usr/local/include/tcl8.4/generic -I/usr/local/include
 -I/usr/local/include/tk8.4 -I/usr/local/include/tcl8.4
 -I/usr/local/include/php/Zend -I/usr/local/include -O2
 -fno-strict-aliasing -pipe -march=pentium4 -I/usr/local/include/lua51
 -MT libgv_tcl_la-gv_tcl.lo -MD -MP -MF .deps/libgv_tcl_la-gv_tcl.Tpo -c
 gv_tcl.cpp  -fPIC -DPIC -o .libs/libgv_tcl_la-gv_tcl.o
 gv_tcl.cpp:2052: error: expected unqualified-id before '%' token
 gv_tcl.cpp:2056: error: expected unqualified-id before '%' token
 gmake[4]: *** [libgv_tcl_la-gv_tcl.lo] Error 1
 -- 
 Over the years I've come to regard you as people I've met.
 
State-Changed-From-To: feedback->analyzed 
State-Changed-By: dinoex 
State-Changed-When: Fri Feb 27 08:31:23 CET 2009 
State-Changed-Why:  
BROKEN, Swig does not build valid code here. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131072 
State-Changed-From-To: analyzed->feedback 
State-Changed-By: dinoex 
State-Changed-When: Sun Mar 15 14:22:45 CET 2009 
State-Changed-Why:  
Please try again with graphviz 2.22.2 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131072 
State-Changed-From-To: feedback->closed 
State-Changed-By: dinoex 
State-Changed-When: Wed Apr 29 10:16:29 CEST 2009 
State-Changed-Why:  
feedback timeout 
build problem was fixed upstream. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131072 

From: Andriy Gapon <avg@icyb.net.ua>
To: bug-followup@FreeBSD.org, tmjiang@iis.sinica.edu.tw,
        Dirk Meyer <dinoex@FreeBSD.org>
Cc:  
Subject: Re: ports/131072: graphics/graphviz link failed on libgvc.so with
 "undefined reference to `sincos'"
Date: Tue, 01 Jun 2010 17:18:52 +0300

 BTW, I can confirm the _original_ issue with current version of graphics/graphviz
 iff non-base GCC is used for building.
 Original submitter used 4.3 and I am using 4.4.
 
 I think the issue is that configure script incorrectly detects that our libm
 provides sincos (it doesn't), this happens because configure script links its test
 program without -lm and in that case, it seems, gcc (4.3+) provides its own
 version.  But real port build uses -lm.
 
 -- 
 Andriy Gapon

From: Andriy Gapon <avg@icyb.net.ua>
To: bug-followup@FreeBSD.org, Dirk Meyer <dinoex@FreeBSD.org>
Cc:  
Subject: Re: ports/131072: graphics/graphviz link failed on libgvc.so with
 "undefined reference to `sincos'"
Date: Thu, 16 Sep 2010 15:26:24 +0300

 Please see the following link for description of this bug and its _real_ resolution:
 http://www.graphviz.org/bugs/b1966.html
 The fix is in configure[.ac] script.
 Unfortunately, it seems that there hasn't been another stable release yet.
 
 -- 
 Andriy Gapon
>Unformatted:
