Opened 17 years ago

Closed 16 years ago

Last modified 15 years ago

#12340 closed defect (worksforme)

BUG: gawk-3.1.5 fails to install on MacBook

Reported by: cjfields@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: markd@…, marius@…
Port:

Description

While attempting to install gnuplot, gawk (which is listed as a prereq) fails to install (Mac OS X 10.4.10, Intel MacBook). I have tried this using the latest dev tools and have tried uninstalling/reinstalling them to no avail. I am attaching the full debugging output (with config) as a text attachment; here's the prominent part from make:

DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gawk/work/gawk-3.1.5" && make all'
make 'CFLAGS=-O2' 'LDFLAGS=-L/opt/local/lib' all-recursive
Making all in .
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT array.o -MD -MP -MF ".deps/array.Tpo" -c -o array.o array.c; \
then mv -f ".deps/array.Tpo" ".deps/array.Po"; else rm -f ".deps/array.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT awkgram.o -MD -MP -MF ".deps/awkgram.Tpo" -c -o awkgram.o awkgram.c; \
then mv -f ".deps/awkgram.Tpo" ".deps/awkgram.Po"; else rm -f ".deps/awkgram.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT builtin.o -MD -MP -MF ".deps/builtin.Tpo" -c -o builtin.o builtin.c; \
then mv -f ".deps/builtin.Tpo" ".deps/builtin.Po"; else rm -f ".deps/builtin.Tpo"; exit 1; fi
builtin.c: In function 'wide_tolower_toupper':
builtin.c:1764: warning: pointer targets in assignment differ in signedness
builtin.c:1775: warning: pointer targets in assignment differ in signedness
builtin.c:1812: warning: pointer targets in passing argument 1 of 'make_str_node' differ in signedness
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT dfa.o -MD -MP -MF ".deps/dfa.Tpo" -c -o dfa.o dfa.c; \
then mv -f ".deps/dfa.Tpo" ".deps/dfa.Po"; else rm -f ".deps/dfa.Tpo"; exit 1; fi
dfa.c: In function 'update_mb_len_index':
dfa.c:416: warning: pointer targets in passing argument 1 of 'mbrlen' differ in signedness
dfa.c: In function 'lex':
dfa.c:792: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c:940: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c:946: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c:956: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c:964: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c:979: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c:1082: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c:1085: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c:1109: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c:1113: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c:1114: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c:1117: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c:1129: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c:1130: warning: pointer targets in passing argument 1 of 'update_mb_len_index' differ in signedness
dfa.c: In function 'match_mb_charset':
dfa.c:2601: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness
dfa.c:2608: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness
dfa.c:2621: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness
dfa.c: In function 'dfaexec':
dfa.c:2878: warning: pointer targets in assignment differ in signedness
dfa.c:2879: warning: pointer targets in assignment differ in signedness
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT ext.o -MD -MP -MF ".deps/ext.Tpo" -c -o ext.o ext.c; \
then mv -f ".deps/ext.Tpo" ".deps/ext.Po"; else rm -f ".deps/ext.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT field.o -MD -MP -MF ".deps/field.Tpo" -c -o field.o field.c; \
then mv -f ".deps/field.Tpo" ".deps/field.Po"; else rm -f ".deps/field.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT gawkmisc.o -MD -MP -MF ".deps/gawkmisc.Tpo" -c -o gawkmisc.o gawkmisc.c; \
then mv -f ".deps/gawkmisc.Tpo" ".deps/gawkmisc.Po"; else rm -f ".deps/gawkmisc.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT getopt.o -MD -MP -MF ".deps/getopt.Tpo" -c -o getopt.o getopt.c; \
then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; else rm -f ".deps/getopt.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT getopt1.o -MD -MP -MF ".deps/getopt1.Tpo" -c -o getopt1.o getopt1.c; \
then mv -f ".deps/getopt1.Tpo" ".deps/getopt1.Po"; else rm -f ".deps/getopt1.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT io.o -MD -MP -MF ".deps/io.Tpo" -c -o io.o io.c; \
then mv -f ".deps/io.Tpo" ".deps/io.Po"; else rm -f ".deps/io.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT msg.o -MD -MP -MF ".deps/msg.Tpo" -c -o msg.o msg.c; \
then mv -f ".deps/msg.Tpo" ".deps/msg.Po"; else rm -f ".deps/msg.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT node.o -MD -MP -MF ".deps/node.Tpo" -c -o node.o node.c; \
then mv -f ".deps/node.Tpo" ".deps/node.Po"; else rm -f ".deps/node.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT random.o -MD -MP -MF ".deps/random.Tpo" -c -o random.o random.c; \
then mv -f ".deps/random.Tpo" ".deps/random.Po"; else rm -f ".deps/random.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT re.o -MD -MP -MF ".deps/re.Tpo" -c -o re.o re.c; \
then mv -f ".deps/re.Tpo" ".deps/re.Po"; else rm -f ".deps/re.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT regex.o -MD -MP -MF ".deps/regex.Tpo" -c -o regex.o regex.c; \
then mv -f ".deps/regex.Tpo" ".deps/regex.Po"; else rm -f ".deps/regex.Tpo"; exit 1; fi
In file included from regex.c:68:
regex_internal.c: In function 're_string_reconstruct':
regex_internal.c:670: warning: pointer targets in passing argument 2 of 'mbrtowc' differ in signedness
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT replace.o -MD -MP -MF ".deps/replace.Tpo" -c -o replace.o replace.c; \
then mv -f ".deps/replace.Tpo" ".deps/replace.Po"; else rm -f ".deps/replace.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT version.o -MD -MP -MF ".deps/version.Tpo" -c -o version.o version.c; \
then mv -f ".deps/version.Tpo" ".deps/version.Po"; else rm -f ".deps/version.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT eval.o -MD -MP -MF ".deps/eval.Tpo" -c -o eval.o eval.c; \
then mv -f ".deps/eval.Tpo" ".deps/eval.Po"; else rm -f ".deps/eval.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT profile.o -MD -MP -MF ".deps/profile.Tpo" -c -o profile.o profile.c; \
then mv -f ".deps/profile.Tpo" ".deps/profile.Po"; else rm -f ".deps/profile.Tpo"; exit 1; fi
gcc  -O2  -L/opt/local/lib -o gawk  array.o awkgram.o builtin.o dfa.o ext.o field.o gawkmisc.o getopt.o getopt1.o io.o main.o msg.o node.o random.o re.o regex.o replace.o version.o eval.o profile.o -lintl -liconv -lc  -Wl,-framework -Wl,CoreFoundation  -ldl -lm 
/usr/bin/ld: warning multiple definitions of symbol _regcomp
regex.o definition of _regcomp in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libc.dylib(regcomp.So) definition of _regcomp
/usr/bin/ld: warning multiple definitions of symbol _regexec
regex.o definition of _regexec in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libc.dylib(regexec.So) definition of _regexec
/usr/bin/ld: warning multiple definitions of symbol _regfree
regex.o definition of _regfree in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libc.dylib(regfree.So) definition of _regfree
/usr/bin/ld: warning multiple definitions of symbol _err
msg.o definition of _err in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libc.dylib(err.So) definition of _err
/usr/bin/ld: Undefined symbols:
_main
_mtrace
collect2: ld returned 1 exit status
make[2]: *** [gawk] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gawk/work/gawk-3.1.5" && make all " returned error 2
Command output: regex_internal.c: In function 're_string_reconstruct':
regex_internal.c:670: warning: pointer targets in passing argument 2 of 'mbrtowc' differ in signedness
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT replace.o -MD -MP -MF ".deps/replace.Tpo" -c -o replace.o replace.c; \
then mv -f ".deps/replace.Tpo" ".deps/replace.Po"; else rm -f ".deps/replace.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT version.o -MD -MP -MF ".deps/version.Tpo" -c -o version.o version.c; \
then mv -f ".deps/version.Tpo" ".deps/version.Po"; else rm -f ".deps/version.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT eval.o -MD -MP -MF ".deps/eval.Tpo" -c -o eval.o eval.c; \
then mv -f ".deps/eval.Tpo" ".deps/eval.Po"; else rm -f ".deps/eval.Tpo"; exit 1; fi
if gcc -DDEFPATH="\".:/opt/local/share/awk\"" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"/opt/local/share/locale\"" -I. -I. -I.   -I/opt/local/include  -O2 -MT profile.o -MD -MP -MF ".deps/profile.Tpo" -c -o profile.o profile.c; \
then mv -f ".deps/profile.Tpo" ".deps/profile.Po"; else rm -f ".deps/profile.Tpo"; exit 1; fi
gcc  -O2  -L/opt/local/lib -o gawk  array.o awkgram.o builtin.o dfa.o ext.o field.o gawkmisc.o getopt.o getopt1.o io.o main.o msg.o node.o random.o re.o regex.o replace.o version.o eval.o profile.o -lintl -liconv -lc  -Wl,-framework -Wl,CoreFoundation  -ldl -lm 
/usr/bin/ld: warning multiple definitions of symbol _regcomp
regex.o definition of _regcomp in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libc.dylib(regcomp.So) definition of _regcomp
/usr/bin/ld: warning multiple definitions of symbol _regexec
regex.o definition of _regexec in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libc.dylib(regexec.So) definition of _regexec
/usr/bin/ld: warning multiple definitions of symbol _regfree
regex.o definition of _regfree in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libc.dylib(regfree.So) definition of _regfree
/usr/bin/ld: warning multiple definitions of symbol _err
msg.o definition of _err in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libc.dylib(err.So) definition of _err
/usr/bin/ld: Undefined symbols:
_main
_mtrace
collect2: ld returned 1 exit status
make[2]: *** [gawk] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

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

Attachments (1)

error.log (24.5 KB) - added by cjfields@… 17 years ago.
error output from 'sudo port -d install gawk'

Download all attachments as: .zip

Change History (6)

Changed 17 years ago by cjfields@…

Attachment: error.log added

error output from 'sudo port -d install gawk'

comment:1 Changed 17 years ago by nox@…

Milestone: Port Bugs
Priority: ExpectedNormal
Summary: gawk fails to install on MacBookBUG: gawk fails to install on MacBook
Version: 1.5.0

comment:2 Changed 17 years ago by markd@…

Cc: cjfields@… markd@… added
Summary: BUG: gawk fails to install on MacBookBUG: gawk-3.1.5 fails to install on MacBook

cannot duplicate this.

comment:3 Changed 16 years ago by cjfields@…

Updating to Leopard and using Archive&Install cleared this up. It was very likely an old file interfering with compilation.

comment:4 Changed 16 years ago by jmroot (Joshua Root)

Cc: marius@… added; cjfields@… removed
Resolution: worksforme
Status: newclosed

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.