Opened 19 years ago
Closed 19 years ago
#6791 closed defect (fixed)
BUG: Errors while upgrading gzip
Reported by: | soeren_wonderbra@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | ||
Port: |
Description
Hi,
when trying to upgrade gzip from version 1.3.3_0 to 1.3.5_0 i get the following errors:
ghostdog:~ $ sudo port upgrade gzip ---> Fetching gzip ---> Attempting to fetch gzip-1.3.5.tar.Z from ftp://sunfreeware.risq.qc.ca/SOURCES/ ---> Verifying checksum(s) for gzip ---> Extracting gzip ---> Configuring gzip ---> Building gzip with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_archivers_gzip/work/gzip-1.3.5" && make all" returned error 2 Command output: else rm -f ".deps/util.Tpo"; exit 1; \ fi if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT yesno.o -MD -MP -MF ".deps/yesno.Tpo" \
-c -o yesno.o
test -f 'yesno.c' || echo './'
yesno.c; \
then mv ".deps/yesno.Tpo" ".deps/yesno.Po"; \ else rm -f ".deps/yesno.Tpo"; exit 1; \ fi if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT zip.o -MD -MP -MF ".deps/zip.Tpo" \
-c -o zip.o
test -f 'zip.c' || echo './'
zip.c; \
then mv ".deps/zip.Tpo" ".deps/zip.Po"; \ else rm -f ".deps/zip.Tpo"; exit 1; \ fi cp ./match.c _match.S /usr/bin/gcc-4.0 -E _match.S >_match.s /usr/bin/gcc-4.0 -c -g -O2 _match.s mv _match.o match.o rm -f _match.S _match.s if /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT rpmatch.o -MD -MP -MF ".deps/rpmatch.Tpo" \
-c -o rpmatch.o
test -f 'rpmatch.c' || echo './'
rpmatch.c; \
then mv ".deps/rpmatch.Tpo" ".deps/rpmatch.Po"; \ else rm -f ".deps/rpmatch.Tpo"; exit 1; \ fi /usr/bin/gcc-4.0 -g -O2 -o gzip bits.o crypt.o deflate.o getopt.o getopt1.o gzip.o inflate.o lzw.o trees.o unlzh.o unlzw.o unpack.o unzip.o util.o yesno.o zip.o match.o rpmatch.o /usr/bin/ld: warning prebinding disabled because of undefined symbols /usr/bin/ld: Undefined symbols: _longest_match _match_init collect2: ld returned 1 exit status make[1]: * [gzip] Error 1 make: * [all] Error 2
Error: Unable to upgrade port: 1
Can somebody help? Even if I do a fresh install of Darwinports can't compile gzip 1.3.5 on this machine.
Greetings Soeren
Attachments (2)
Change History (6)
comment:1 Changed 19 years ago by mww@…
Owner: | changed from darwinports-bugs@… to mww@… |
---|---|
Summary: | Errors while upgrading gzip → BUG: Errors while upgrading gzip |
Changed 19 years ago by soeren_wonderbra@…
Debug-Logfile from gzip comile
Changed 19 years ago by soeren_wonderbra@…
gzip compiled by hand (configure and make)
comment:3 Changed 19 years ago by soeren_wonderbra@…
Hi,
after some fiddlin with the build system... I found the answer! You said that match.o didn't appear on your system. So I looked at match.c and found that it was only optional assembler code...
Further searching gave me the configure option DEFS=NO_ASM
This can be added to the Portfile
configure.args --mandir=
\${prefix}/share/man \
--infodir=
\${prefix}/share/info \ DEFS=NO_ASM
and voila.... The thing is up and running....
What I didn't find out is why my machine tries to build match.c I'm running the latest XCode (2.2.1)... What version are you building on?
Greetings Soeren
comment:4 Changed 19 years ago by mww@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
ah, cool - fixed btw.! (via CFLAGS=-DNO_ASM)
I was building on an albook/1.5 with xcode 2.2.1 on 10.4 - strange this doesn't happen here.
(In reply to comment #0)
hmm... I have no idea where the 'match.o' comes from - at least I don't get it when building on my machine. Would you mind providing a full trace? $> port clean gzip; port -d build gzip > logfile 2>&1