[MacPorts] #42756: macports doesn't compile with bundled tcl
MacPorts
noreply at macports.org
Fri Mar 7 07:42:58 PST 2014
#42756: macports doesn't compile with bundled tcl
---------------------------+--------------------------------
Reporter: xeron.oskom@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.2.99
Keywords: | Port:
---------------------------+--------------------------------
tcl bundled macports coudn't be compiled if tcl already installed and
$LDFLAGS and/or $CPPFLAGS include macports dirs
{{{
/Users/xeron/workspace/devel/macports/vendor/tcl8.5.15/unix/../libtommath/bn_mp_cmp.c:20:1:
error: conflicting types for 'TclBN_mp_cmp'
mp_cmp (mp_int * a, mp_int * b)
^
/opt/local/include/tclTomMathDecls.h:63:16: note: expanded from macro
'mp_cmp'
#define mp_cmp TclBN_mp_cmp
^
/opt/local/include/tclTomMathDecls.h:158:13: note: previous declaration is
here
EXTERN int TclBN_mp_cmp(const mp_int *a, const mp_int *b);
^
1 error generated.
make[2]: *** [bn_mp_cmp.o] Error 1
make[1]: *** [all-tcl] Error 2
make: *** [all] Error 1
}}}
{{{
$ echo $LDFLAGS
-L/opt/local/lib
$ echo $CPPFLAGS
-I/opt/local/include
$ sudo port installed | grep "tcl"
tcl @8.6.1_0+corefoundation+threads+universal (active)
}}}
With empty $LDFLAGS and $CPPFLAGS it compiles w/o any issues.
--
Ticket URL: <https://trac.macports.org/ticket/42756>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list