Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#28076 closed defect (fixed)

gavl @1.1.1 - build failure error linking with libpng

Reported by: ibartoli@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: gavl

Description

Error appeared during kdenlive installation

Tried cleaning the port tree Tried reinstalling libpng Always same error

$sudo port install gavl
--->  Computing dependencies for gavl
--->  Fetching gavl
--->  Verifying checksum(s) for gavl
--->  Extracting gavl
--->  Configuring gavl
--->  Building gavl
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for gavl is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_gavl/main.log
Error: Status 1 encountered during processing.

full log is attacched... the failing point look this:

:info:build /bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.2  -pipe -O2 -arch x86_64  -O3 -funroll-all-loops -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -mfpmath=387 -fvisibility=hidden   -o convolvetest convolvetest.o pngutil.o ../gavl/libgavl.la -lpng -lz 
:info:build Undefined symbols:
:info:build   "_png_set_gray_1_2_4_to_8", referenced from:
:info:build       _read_png in blend_test.o
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status
:info:build make[1]: *** [blend_test] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build libtool: link: /usr/bin/gcc-4.2 -pipe -O2 -arch x86_64 -O3 -funroll-all-loops -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -mfpmath=387 -fvisibility=hidden -o .libs/scaletest scaletest.o  ../gavl/.libs/libgavl.dylib -lm /opt/local/lib/libpng14.dylib -L/opt/local/lib -lz
:info:build libtool: link: /usr/bin/gcc-4.2 -pipe -O2 -arch x86_64 -O3 -funroll-all-loops -fomit-frame-pointer -ffast-math -Wall -Wmissing-declarations -Wdeclaration-after-statement -mfpmath=387 -fvisibility=hidden -o .libs/convolvetest convolvetest.o pngutil.o  ../gavl/.libs/libgavl.dylib -lm /opt/local/lib/libpng14.dylib -L/opt/local/lib -lz
:info:build Undefined symbols:
:info:build   "_png_set_gray_1_2_4_to_8", referenced from:
:info:build       _read_png in scaletest.o
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status
:info:build Undefined symbols:
:info:build   "_png_set_gray_1_2_4_to_8", referenced frommake[1]: *** [scaletest] Error 1
:info:build :
:info:build       _read_png in pngutil.o
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status

Attachments (1)

main.log (228.1 KB) - added by ibartoli@… 14 years ago.

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by ibartoli@…

Attachment: main.log added

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Fixed by updating gavl to 1.2.0 in r75323. Thanks for reporting the problem.

comment:3 Changed 14 years ago by jmroot (Joshua Root)

Shouldn't libpng be a depends_lib?

comment:4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

I wondered about that too, but it doesn't appear to link with libpng.dylib.

configure.ac says:

dnl Check for libpng (only needed for some tests)

I wasn't sure if those tests were run automatically, or only on "make check" or "make test" or something. There is also a --disable-libpng flag that could be used. But since libpng is already in the indirect dependencies of gavl (via doxygen) I didn't see any reason not to make use of libpng.

Note: See TracTickets for help on using tickets.