I have been trying for a while now to upgrade tcl zu version 8.4.15
but I run into problem when compiling the file tclLoadDyld.c. The
relevant error message is

gcc -c -Os -O2 -pipe  -I/opt/local/include  -DTCL_DBGX= -Wall -Wno-
[snip]
In file included from /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ tc
l/work/tcl8.4.15/unix/tclLoadDyld.c:23:
/opt/local/include/mach-o/arch.h:35: error: nested redefinition of
'enum NXByteOrder'
/opt/local/include/mach-o/arch.h:35: error: redeclaration of 'enum
NXByteOrder'
/opt/local/include/mach-o/arch.h:36: error: redeclaration of
enumerator 'NX_UnknownByteOrder'
/usr/include/architecture/byte_order.h:137: error: previous
definition of 'NX_UnknownByteOrder' was here
/opt/local/include/mach-o/arch.h:37: error: redeclaration of
enumerator 'NX_LittleEndian'
/usr/include/architecture/byte_order.h:138: error: previous
definition of 'NX_LittleEndian' was here
/opt/local/include/mach-o/arch.h:39: error: redeclaration of
enumerator 'NX_BigEndian'
/usr/include/architecture/byte_order.h:140: error: previous
definition of 'NX_BigEndian' was here
make: *** [tclLoadDyld.o] Error 1

Warning: the following items did not execute (for tcl):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
Error: Status 1 encountered during processing.


Apparently I get problems because gcc looks also at files in /usr/
include not only in /opt/local/include.
Why is that and how can I prevent it?

Thanks for your help.
Joerg

This problem could be being caused by odcctools ... is that installed on your system? It may have been installed
if you have installed eg py-numpy or g95.  To compile tcl I needed to
        sudo port deactivate odcctools
        sudo port -c upgrade tcl
        sudo port activate odcctools

[i discovered this off someone else on this list!]
derek.

_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to