New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #25143 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

unshield 0.6 fails to compile with Undefined symbols.

Reported by: sck@… Owned by: boeyms@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: unshield

Description (last modified by macsforever2000@…) (diff)

On my 10.6.3 Intel laptop, running MacPorts 1.8.2, fully updated...

I can't seem to get a clean compile of unshield 0.6

biko:~ sck$ sudo port clean unshield
--->  Cleaning unshield
biko:~ sck$ sudo port upgrade unshield
--->  Computing dependencies for unshield
--->  Fetching unshield
--->  Verifying checksum(s) for unshield
--->  Extracting unshield
--->  Configuring unshield
--->  Building unshield
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_unshield/work/unshield-0.6" && /usr/bin/make -j2 all " returned error 2
Command output: libtool: link: rm -fr .libs/libunshield.lax .libs/libunshield.lax
libtool: link: ( cd ".libs" && rm -f "libunshield.la" && ln -s "../libunshield.la" "libunshield.la" )
Making all in src
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I../lib -I../lib  -I/opt/local/include -I/opt/local/include  -Wall -Wsign-compare -Wno-long-long -O2 -arch x86_64 -MT unshield.o -MD -MP -MF .deps/unshield.Tpo -c -o unshield.o unshield.c
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I../lib -I../lib  -I/opt/local/include -I/opt/local/include  -Wall -Wsign-compare -Wno-long-long -O2 -arch x86_64 -MT unshield-deobfuscate.o -MD -MP -MF .deps/unshield-deobfuscate.Tpo -c -o unshield-deobfuscate.o unshield-deobfuscate.c
mv -f .deps/unshield-deobfuscate.Tpo .deps/unshield-deobfuscate.Po
/bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.2  -Wall -Wsign-compare -Wno-long-long -O2 -arch x86_64  -L/opt/local/lib -L/opt/local/lib -o unshield-deobfuscate unshield-deobfuscate.o ../lib/libunshield.la -lz 
unshield.c: In function 'extract_helper':
unshield.c:259: warning: 'success' may be used uninitialized in this function
unshield.c:259: note: 'success' was declared here
mv -f .deps/unshield.Tpo .deps/unshield.Po
/bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.2  -Wall -Wsign-compare -Wno-long-long -O2 -arch x86_64  -L/opt/local/lib -L/opt/local/lib -o unshield unshield.o ../lib/libunshield.la -lz 
libtool: link: /usr/bin/gcc-4.2 -Wall -Wsign-compare -Wno-long-long -O2 -arch x86_64 -o .libs/unshield-deobfuscate unshield-deobfuscate.o  -L/opt/local/lib -L../lib/.libs -lunshield -lz
Undefined symbols:
  "_unshield_deobfuscate", referenced from:
      _main in unshield-deobfuscate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [unshield-deobfuscate] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: link: /usr/bin/gcc-4.2 -Wall -Wsign-compare -Wno-long-long -O2 -arch x86_64 -o .libs/unshield unshield.o  -L/opt/local/lib -L../lib/.libs -lunshield -lz
Undefined symbols:
  "_unshield_file_save_raw", referenced from:
      _extract_helper in unshield.o
  "_unshield_file_save_old", referenced from:
      _extract_helper in unshield.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [unshield] Error 1
make: *** [all-recursive] Error 1

Error: Unable to upgrade port: 1
Before reporting a bug, first run the command again with the -d flag to get complete output.
biko:~ sck$ 

I have attached the debug output if needed...

Scott

Attachments

unshield.txt (22.6 KB) - added by sck@… 4 years ago.
Output of port -d upgrade unshield

Change History

Changed 4 years ago by sck@…

Output of port -d upgrade unshield

comment:1 Changed 4 years ago by macsforever2000@…

  • Owner changed from macports-tickets@… to boeyms@…
  • Description modified (diff)

comment:2 Changed 4 years ago by blb@…

  • Status changed from new to closed
  • Resolution set to fixed

Looks like it doesn't want to link against the bits it's building, but instead against the already-installed libs from the older version. Should be fixes in r68545.

Note: See TracTickets for help on using tickets.