Opened 12 years ago

Closed 12 years ago

#35723 closed defect (fixed)

cdrtools prevents build of stegdetect

Reported by: outis Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: stegdetect

Description

When port cdrtools @3.00_1 (and likely other versions) is active, stegdetect fails to build. The log for stegdetect contains the following relevant lines (entire log is attached):

:info:build /usr/bin/gcc-4.2  -O2 -Wall -g -L/opt/local/lib -arch x86_64 -o stegbreak  common.o jphide_table.o util.o stegbreak.o break_jphide.o break_outguess.o break_jsteg.o cfg.o rpp.o rules.o bf_skey.o db.o arc4.o md5.o ./jpeg-6b/libjpeg.a -L./file -lfile bf_enc.o ./jpeg-6b/libjpeg.a
:info:build Undefined symbols:
:info:build   "_noprint", referenced from:
:info:build       _detect_print in stegdetect.o
:info:build   "_file_init", referenced from:
:info:build       _main in stegdetect.o
:info:build   "_file_process", referenced from:
:info:build       _detect_print in stegdetect.o
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status

The missing symbols are defined in ./file/libfile.a. In /opt/local/lib/, there's another libfile.a that's part of the cdrtools port. Since "-L/opt/local/lib" comes before "-L./file" in the build command, the linker links against the wrong libfile.a.

Workarounds

  1. deactivate cdrtools,
  2. install stegdetect,
  3. activate cdrtools

Attachments (1)

stegdetect.log (6.4 KB) - added by outis 12 years ago.
Build log for stegdetect

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by outis

Attachment: stegdetect.log added

Build log for stegdetect

comment:1 Changed 12 years ago by jmroot (Joshua Root)

Keywords: stegdetect cdrtools removed
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.