getopt installation

Ian Dunham dunham at ebi.ac.uk
Thu Apr 8 04:11:11 PDT 2010


I'm having trouble with installation of the gtk port, which at least in
part seems to come down to not being able to install getopt. 

I'm running on a 2.4Ghz Intel core 2 duo macbook pro with Mac OS X 10.5.8.

I freshly install macports from the dmg and have successfully installed
a number of ports including ImageMagick.  However getopt gives met eh
following error in debug mode.  Can anyone give me a clue as to what is
wrong?

DEBUG: Found port in
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/getopt
DEBUG: Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/getopt
DEBUG: OS Platform: darwin
DEBUG: OS Version: 9.8.0
DEBUG: Mac OS X Version: 10.5
DEBUG: System Arch: powerpc
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
DEBUG: Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant powerpc is not provided by port getopt.
DEBUG: Requested variant darwin is not provided by port getopt.
DEBUG: Requested variant macosx is not provided by port getopt.
DEBUG: Found port in
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: gettext 0.17_4 exists in the ports tree
DEBUG: gettext 0.17_4  is the latest installed
DEBUG: gettext 0.17_4  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants:
DEBUG: Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
DEBUG: OS Platform: darwin
DEBUG: OS Version: 9.8.0
DEBUG: Mac OS X Version: 10.5
DEBUG: System Arch: powerpc
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
DEBUG: Using group file
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Using group file
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/archcheck-1.0.tcl
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant powerpc is not provided by port gettext.
DEBUG: Requested variant darwin is not provided by port gettext.
DEBUG: Requested variant macosx is not provided by port gettext.
DEBUG: Found port in
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: libiconv 1.13.1_0 exists in the ports tree
DEBUG: libiconv 1.13.1_0  is the latest installed
DEBUG: libiconv 1.13.1_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants:
DEBUG: Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: OS Platform: darwin
DEBUG: OS Version: 9.8.0
DEBUG: Mac OS X Version: 10.5
DEBUG: System Arch: powerpc
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
DEBUG: Using group file
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant powerpc is not provided by port libiconv.
DEBUG: Requested variant darwin is not provided by port libiconv.
DEBUG: Requested variant macosx is not provided by port libiconv.
DEBUG: Found port in
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: gperf 3.0.4_0 exists in the ports tree
DEBUG: gperf 3.0.4_0  is the latest installed
DEBUG: gperf 3.0.4_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants:
DEBUG: Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: OS Platform: darwin
DEBUG: OS Version: 9.8.0
DEBUG: Mac OS X Version: 10.5
DEBUG: System Arch: powerpc
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
DEBUG: Using group file
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant powerpc is not provided by port gperf.
DEBUG: Requested variant darwin is not provided by port gperf.
DEBUG: Requested variant macosx is not provided by port gperf.
DEBUG: No need to upgrade! gperf 3.0.4_0 >= gperf 3.0.4_0
DEBUG: No need to upgrade! libiconv 1.13.1_0 >= libiconv 1.13.1_0
DEBUG: Found port in
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: ncurses 5.7_0 exists in the ports tree
DEBUG: ncurses 5.7_0  is the latest installed
DEBUG: ncurses 5.7_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants:
DEBUG: Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
DEBUG: OS Platform: darwin
DEBUG: OS Version: 9.8.0
DEBUG: Mac OS X Version: 10.5
DEBUG: System Arch: powerpc
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
DEBUG: Using group file
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant powerpc is not provided by port ncurses.
DEBUG: Requested variant darwin is not provided by port ncurses.
DEBUG: Requested variant macosx is not provided by port ncurses.
DEBUG: Found port in
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncursesw
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: ncursesw 5.7_0 exists in the ports tree
DEBUG: ncursesw 5.7_0  is the latest installed
DEBUG: ncursesw 5.7_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants:
DEBUG: Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncursesw
DEBUG: OS Platform: darwin
DEBUG: OS Version: 9.8.0
DEBUG: Mac OS X Version: 10.5
DEBUG: System Arch: powerpc
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
DEBUG: Using group file
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant powerpc is not provided by port ncursesw.
DEBUG: Requested variant darwin is not provided by port ncursesw.
DEBUG: Requested variant macosx is not provided by port ncursesw.
DEBUG: No need to upgrade! ncursesw 5.7_0 >= ncursesw 5.7_0
DEBUG: No need to upgrade! ncurses 5.7_0 >= ncurses 5.7_0
DEBUG: Found port in
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: expat 2.0.1_0 exists in the ports tree
DEBUG: expat 2.0.1_0  is the latest installed
DEBUG: expat 2.0.1_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants:
DEBUG: Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: OS Platform: darwin
DEBUG: OS Version: 9.8.0
DEBUG: Mac OS X Version: 10.5
DEBUG: System Arch: powerpc
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant powerpc is not provided by port expat.
DEBUG: Requested variant darwin is not provided by port expat.
DEBUG: Requested variant macosx is not provided by port expat.
DEBUG: No need to upgrade! expat 2.0.1_0 >= expat 2.0.1_0
DEBUG: No need to upgrade! gettext 0.17_4 >= gettext 0.17_4
--->  Computing dependencies for getopt
DEBUG: Searching for dependency: gettext
DEBUG: Found Dependency: receipt exists for gettext
DEBUG: Executing org.macports.main (getopt)
--->  Fetching getopt
DEBUG: Executing org.macports.fetch (getopt)
--->  Verifying checksum(s) for getopt
DEBUG: Executing org.macports.checksum (getopt)
--->  Checksumming getopt-1.1.4.tar.gz
DEBUG: Correct (md5) checksum for getopt-1.1.4.tar.gz
DEBUG: Correct (sha1) checksum for getopt-1.1.4.tar.gz
DEBUG: Correct (rmd160) checksum for getopt-1.1.4.tar.gz
--->  Extracting getopt
DEBUG: Executing org.macports.extract (getopt)
--->  Extracting getopt-1.1.4.tar.gz
DEBUG: setting option extract.args to
/opt/local/var/macports/distfiles/getopt/getopt-1.1.4.tar.gz
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_getopt/work"
&& /usr/bin/gzip -dc
/opt/local/var/macports/distfiles/getopt/getopt-1.1.4.tar.gz |
/usr/bin/gnutar --no-same-owner -xf -'
DEBUG: Executing org.macports.patch (getopt)
--->  Applying patches to getopt
--->  Applying
/opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/getopt/files/patch-Makefile.diff
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_getopt/work/getopt-1.1.4"
&& /usr/bin/patch -p0'
patching file Makefile
Hunk #1 succeeded at 33 (offset 4 lines).
Hunk #2 succeeded at 44 (offset 4 lines).
--->  Configuring getopt
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing org.macports.configure (getopt)
--->  Building getopt
DEBUG: Executing org.macports.build (getopt)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_getopt/work/getopt-1.1.4"
&& /usr/bin/make -j2 all LIBCGETOPT=0 prefix=/opt/local
mandir=/opt/local/share/man CC=/usr/bin/gcc-4.0'
/usr/bin/gcc-4.0 -c -DLIBCGETOPT=0 -DWITH_GETTEXT=
-DLOCALEDIR=\"/opt/local/share/locale\" -DNOT_UTIL_LINUX
-I/opt/local/include -I./gnu  -Wall -W -Wshadow -Wpointer-arith
-Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wnested-externs -Winline -O3 -fno-strength-reduce getopt.c -o getopt.o
/usr/bin/gcc-4.0 -c -DLIBCGETOPT=0 -DWITH_GETTEXT=
-DLOCALEDIR=\"/opt/local/share/locale\" -DNOT_UTIL_LINUX
-I/opt/local/include -I./gnu  -Wall -W -Wshadow -Wpointer-arith
-Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wnested-externs -Winline -O3 -fno-strength-reduce gnu/getopt.c -o
gnu/getopt.o
In file included from gnu/getopt.c:110:
gnu/getopt.h:106: warning: function declaration isn't a prototype
gnu/getopt.c:210: warning: function declaration isn't a prototype
gnu/getopt.c:214: warning: function declaration isn't a prototype
gnu/getopt.c: In function 'my_index':
gnu/getopt.c:220: warning: cast discards qualifiers from pointer target type
gnu/getopt.c: In function '_getopt_initialize':
gnu/getopt.c:389: warning: unused parameter 'argc'
gnu/getopt.c:390: warning: unused parameter 'argv'
gnu/getopt.c: In function '_getopt_internal':
gnu/getopt.c:560: warning: cast discards qualifiers from pointer target type
gnu/getopt.c:577: warning: implicit declaration of function 'strcmp'
gnu/getopt.c:582: warning: cast discards qualifiers from pointer target type
gnu/getopt.c:653: warning: implicit declaration of function 'strncmp'
gnu/getopt.c:656: warning: implicit declaration of function 'strlen'
gnu/getopt.c:656: warning: incompatible implicit declaration of built-in
function 'strlen'
gnu/getopt.c:680: warning: incompatible implicit declaration of built-in
function 'strlen'
gnu/getopt.c:698: warning: suggest explicit braces to avoid ambiguous 'else'
gnu/getopt.c:710: warning: incompatible implicit declaration of built-in
function 'strlen'
gnu/getopt.c:726: warning: incompatible implicit declaration of built-in
function 'strlen'
gnu/getopt.c:731: warning: incompatible implicit declaration of built-in
function 'strlen'
gnu/getopt.c:760: warning: cast discards qualifiers from pointer target type
gnu/getopt.c:842: warning: incompatible implicit declaration of built-in
function 'strlen'
gnu/getopt.c:865: warning: incompatible implicit declaration of built-in
function 'strlen'
gnu/getopt.c:885: warning: incompatible implicit declaration of built-in
function 'strlen'
gnu/getopt.c:899: warning: incompatible implicit declaration of built-in
function 'strlen'
gnu/getopt.c:903: warning: incompatible implicit declaration of built-in
function 'strlen'
gnu/getopt.c: At top level:
gnu/getopt.c:968: warning: function declaration isn't a prototype
In file included from getopt.c:51:
./gnu/getopt.h:106: warning: function declaration isn't a prototype
/usr/bin/gcc-4.0 -c -DLIBCGETOPT=0 -DWITH_GETTEXT=
-DLOCALEDIR=\"/opt/local/share/locale\" -DNOT_UTIL_LINUX
-I/opt/local/include -I./gnu  -Wall -W -Wshadow -Wpointer-arith
-Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wnested-externs -Winline -O3 -fno-strength-reduce gnu/getopt1.c -o
gnu/getopt1.o
In file included from gnu/getopt1.c:24:
gnu/getopt.h:106: warning: function declaration isn't a prototype
/usr/bin/gcc-4.0 -L/opt/local/lib -lintl -o getopt getopt.o gnu/getopt.o
gnu/getopt1.o
ld warning: in /opt/local/lib/libintl.dylib, file is not of required
architecture
Undefined symbols:
  "_libintl_textdomain", referenced from:
      _main in getopt.o
  "_libintl_bindtextdomain", referenced from:
      _main in getopt.o
  "_libintl_gettext", referenced from:
      _our_malloc in getopt.o
      _our_realloc in getopt.o
      _parse_error in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _print_help in getopt.o
      _set_shell in getopt.o
      _set_shell in getopt.o
      _normalize in getopt.o
      _add_longopt in getopt.o
      _add_long_options in getopt.o
      _add_long_options in getopt.o
      _main in getopt.o
      _main in getopt.o
      _main in getopt.o
      _main in getopt.o
      _main in getopt.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [getopt] Error 1
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_getopt/work/getopt-1.1.4"
&& /usr/bin/make -j2 all LIBCGETOPT=0 prefix=/opt/local
mandir=/opt/local/share/man CC=/usr/bin/gcc-4.0 " returned error 2
DEBUG: Backtrace: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_getopt/work/getopt-1.1.4"
&& /usr/bin/make -j2 all LIBCGETOPT=0 prefix=/opt/local
mandir=/opt/local/share/man CC=/usr/bin/gcc-4.0 " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for getopt):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>



More information about the macports-users mailing list