Dear members,
I have just installed Darwinports 1.7 on my intel MacBook (osx 10.4.11)
when I attempt 'sudo port -d selfupdate', I get a bunch of compilation
errors (I copy an extract of this output below)
my /usr/bin/cc is a link to gcc-4.0.....if this has anything to do with
the problem!
I read quite a lot of forum exchanges on this issue, but
really can't find my way out.....
any help will be so much appreciated!
Alejandro
bash$ sudo port -d selfupdate
DEBUG: Synchronizing ports tree(s)
Synchronizing local ports tree from
rsync://rsync.macports.org/release/ports/
DEBUG: /usr/bin/rsync -rtzv --delete-after
rsync://rsync.macports.org/release/ports/
/opt/local/var/macports/sources/rsync.macports.org/release/ports
receiving file list ... done
sent 36 bytes received 416413 bytes 43836.74 bytes/sec
total size is 30227003 speedup is 72.58
DEBUG: MacPorts sources location:
/opt/local/var/macports/sources/rsync.macports.org/release/base
DEBUG: Updating MacPorts sources using rsync
receiving file list ... done
./
Mk/
doc/
portmgr/fedora/
...
MacPorts base version 1.700 installed
DEBUG: Rebuilding and reinstalling MacPorts if needed
Downloaded MacPorts base version 1.800
DEBUG: Permissions OK
Installing new MacPorts release in /opt/local as root:admin -
TCL-PACKAGE in /Library/Tcl; Permissions: 0755
checking build system type... i386-apple-darwin8.11.1
...
configure: creating ./config.status
config.status: creating src/programs/daemondo/Makefile
config.status: creating Doxyfile
config.status: creating Makefile
config.status: creating Mk/macports.autoconf.mk
config.status: creating doc/prefix.mtree
config.status: creating doc/macosx.mtree
config.status: creating doc/macports.conf
config.status: creating portmgr/freebsd/Makefile
config.status: creating portmgr/fedora/macports.spec
config.status: creating src/Makefile
config.status: creating src/macports1.0/macports_autoconf.tcl
config.status: creating src/port1.0/port_autoconf.tcl
config.status: creating src/registry1.0/registry_autoconf.tcl
config.status: creating src/programs/Makefile
config.status: creating src/macports1.0/macports_fastload.tcl
config.status: creating setupenv.bash
config.status: creating src/pkg_mkindex.sh
config.status: creating src/config.h
===> making all in doc
gzip -c port.1 > port.1.gz
gzip -c macports.conf.5 > macports.conf.5.gz
gzip -c portfile.7 > portfile.7.gz
gzip -c portstyle.7 > portstyle.7.gz
gzip -c porthier.7 > porthier.7.gz
gzip -c portgroup.7 > portgroup.7.gz
===> making all in src
===> making all in src/cregistry
gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic -DHAVE_CONFIG_H -I..
-I. -I"/usr/local/include" registry.c -o registry.o
gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic -DHAVE_CONFIG_H -I..
-I. -I"/usr/local/include" entry.c -o entry.o
gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic -DHAVE_CONFIG_H -I..
-I. -I"/usr/local/include" sql.c -o sql.o
sql.c: In function 'sql_regexp':
sql.c:96: warning: passing argument 2 of
'tclStubsPtr->tcl_RegExpMatch' discards qualifiers from pointer target
type
sql.c:96: warning: passing argument 3 of
'tclStubsPtr->tcl_RegExpMatch' discards qualifiers from pointer target
type
ar cr cregistry.a registry.o entry.o sql.o
ranlib cregistry.a
===> making all in src/macports1.0
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W -Wall -pedantic
-DHAVE_CONFIG_H -I.. -I. -I"/usr/local/include" macports.c -o macports.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W -Wall -pedantic
-DHAVE_CONFIG_H -I.. -I. -I"/usr/local/include"
get_systemconfiguration_proxies.c -o get_systemconfiguration_proxies.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W -Wall -pedantic
-DHAVE_CONFIG_H -I.. -I. -I"/usr/local/include" realpath.c -o realpath.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W -Wall -pedantic
-DHAVE_CONFIG_H -I.. -I. -I"/usr/local/include" sysctl.c -o sysctl.o
sysctl.c: In function 'SysctlCmd':
sysctl.c:56: error: 'Tcl_WideInt' undeclared (first use in this function)
sysctl.c:56: error: (Each undeclared identifier is reported only once
sysctl.c:56: error: for each function it appears in.)
sysctl.c:56: error: parse error before 'long_value'
sysctl.c:72: error: 'long_value' undeclared (first use in this function)
sysctl.c:80: warning: implicit declaration of function 'Tcl_NewWideIntObj'
sysctl.c:80: warning: assignment makes pointer from integer without a cast
make[2]: *** [sysctl.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
DEBUG: Error installing new MacPorts base: shell command "cd
/opt/local/var/macports/sources/rsync.macports.org/release/base &&
./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl
--with-install-user=root --with-install-group=admin
--with-directory-mode=0755 && make && make install" returned error 2
Command output: gzip -c portfile.7 > portfile.7.gz
gzip -c portstyle.7 > portstyle.7.gz
gzip -c porthier.7 > porthier.7.gz
gzip -c portgroup.7 > portgroup.7.gz
===> making all in src
===> making all in src/cregistry
gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic -DHAVE_CONFIG_H -I..
-I. -I"/usr/local/include" registry.c -o registry.o
gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic -DHAVE_CONFIG_H -I..
-I. -I"/usr/local/include" entry.c -o entry.o
gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic -DHAVE_CONFIG_H -I..
-I. -I"/usr/local/include" sql.c -o sql.o
sql.c: In function 'sql_regexp':
sql.c:96: warning: passing argument 2 of
'tclStubsPtr->tcl_RegExpMatch' discards qualifiers from pointer target
type
sql.c:96: warning: passing argument 3 of
'tclStubsPtr->tcl_RegExpMatch' discards qualifiers from pointer target
type
ar cr cregistry.a registry.o entry.o sql.o
ranlib cregistry.a
===> making all in src/macports1.0
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W -Wall -pedantic
-DHAVE_CONFIG_H -I.. -I. -I"/usr/local/include" macports.c -o macports.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W -Wall -pedantic
-DHAVE_CONFIG_H -I.. -I. -I"/usr/local/include"
get_systemconfiguration_proxies.c -o get_systemconfiguration_proxies.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W -Wall -pedantic
-DHAVE_CONFIG_H -I.. -I. -I"/usr/local/include" realpath.c -o realpath.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W -Wall -pedantic
-DHAVE_CONFIG_H -I.. -I. -I"/usr/local/include" sysctl.c -o sysctl.o
sysctl.c: In function 'SysctlCmd':
sysctl.c:56: error: 'Tcl_WideInt' undeclared (first use in this function)
sysctl.c:56: error: (Each undeclared identifier is reported only once
sysctl.c:56: error: for each function it appears in.)
sysctl.c:56: error: parse error before 'long_value'
sysctl.c:72: error: 'long_value' undeclared (first use in this function)
sysctl.c:80: warning: implicit declaration of function 'Tcl_NewWideIntObj'
sysctl.c:80: warning: assignment makes pointer from integer without a cast
make[2]: *** [sysctl.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
while executing
"macports::selfupdate [array get global_options]"
Error: ./port: port selfupdate failed: Error installing new MacPorts
base: shell command "cd
/opt/local/var/macports/sources/rsync.macports.org/release/base &&
./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl
--with-install-user=root --with-install-group=admin
--with-directory-mode=0755 && make && make install" returned error 2
Command output: gzip -c portfile.7 > portfile.7.gz
gzip -c portstyle.7 > portstyle.7.gz
gzip -c porthier.7 > porthier.7.gz
gzip -c portgroup.7 > portgroup.7.gz
===> making all in src
===> making all in src/cregistry
gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic -DHAVE_CONFIG_H -I..
-I. -I"/usr/local/include" registry.c -o registry.o
gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic -DHAVE_CONFIG_H -I..
-I. -I"/usr/local/include" entry.c -o entry.o
gcc -c -DUSE_TCL_STUBS -g -O2 -W -Wall -pedantic -DHAVE_CONFIG_H -I..
-I. -I"/usr/local/include" sql.c -o sql.o
sql.c: In function 'sql_regexp':
sql.c:96: warning: passing argument 2 of
'tclStubsPtr->tcl_RegExpMatch' discards qualifiers from pointer target
type
sql.c:96: warning: passing argument 3 of
'tclStubsPtr->tcl_RegExpMatch' discards qualifiers from pointer target
type
ar cr cregistry.a registry.o entry.o sql.o
ranlib cregistry.a
===> making all in src/macports1.0
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W -Wall -pedantic
-DHAVE_CONFIG_H -I.. -I. -I"/usr/local/include" macports.c -o macports.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W -Wall -pedantic
-DHAVE_CONFIG_H -I.. -I. -I"/usr/local/include"
get_systemconfiguration_proxies.c -o get_systemconfiguration_proxies.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W -Wall -pedantic
-DHAVE_CONFIG_H -I.. -I. -I"/usr/local/include" realpath.c -o realpath.o
gcc -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -W -Wall -pedantic
-DHAVE_CONFIG_H -I.. -I. -I"/usr/local/include" sysctl.c -o sysctl.o
sysctl.c: In function 'SysctlCmd':
sysctl.c:56: error: 'Tcl_WideInt' undeclared (first use in this function)
sysctl.c:56: error: (Each undeclared identifier is reported only once
sysctl.c:56: error: for each function it appears in.)
sysctl.c:56: error: parse error before 'long_value'
sysctl.c:72: error: 'long_value' undeclared (first use in this function)
sysctl.c:80: warning: implicit declaration of function 'Tcl_NewWideIntObj'
sysctl.c:80: warning: assignment makes pointer from integer without a cast
make[2]: *** [sysctl.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users