Subject: Re: pkg/32278 (Please add fllogbook to pkgsrc/ham)
To: None <gnats-bugs@NetBSD.org>
From: david <firstname.lastname@example.org>
Date: 01/21/2007 09:28:04
In the developer's Makefile, the linker flags are set using this command:
LDFLAGS = -pipe -s `fltk-config --ldstaticflags --use-images`
This results in the link command (from .work.log):
[*] /usr/pkgsrc/foo/bar/work/.wrapper/bin/c++ -o fl_logbook adif_io.o
combo.o date.o fl_logbook.o ipcdata.o lgbook.o multipsklog.o qso_db.o
table.o -Lsrc/lib -lhamlib -pipe -s -L/usr/X11R6/lib -L/usr/pkg/lib
pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/pkg/lib
k_images.a -lpng -lz -ljpeg /usr/pkg/lib/libfltk.a -lpthread -lm -lXext
<.> /usr/pkgsrc/foo/bar/work/.gcc/bin/g++ -o fl_logbook adif_io.o
bo.o date.o fl_logbook.o ipcdata.o lgbook.o multipsklog.o qso_db.o
le.o -Lsrc/lib -pipe -s -L/usr/pkgsrc/foo/bar/work/.x11-buildlink/lib
src/foo/bar/work/.buildlink/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib
nk/include -lhamlib -lpng -lz -ljpeg -lpthread -lm -lXext -lX11
Without those dependencies, the -lpng and -ljpeg cause the link to fail.
Are libpng and libjpeg really needed? I saw some image files in the
source distribution and assumed they were used. Is hamlib really
needed? I don't know. I am not the developer. Basically, I did what
was needed to make it build and install successfully under pkgsrc. I
did not dig into the code to fix potential bugs.
I assume png and jpeg are required by fltk and therefore linking in fltk
should automatically include those dependencies. But that doesn't
appear to be true. Is this a bug in the fltk package?
OBATA Akio wrote:
>The following reply was made to PR pkg/32278; it has been noted by GNATS.
>From: OBATA Akio <obache@NetBSD.org>
>Subject: Re: pkg/32278 (Please add fllogbook to pkgsrc/ham)
>Date: Sun, 21 Jan 2007 01:10:41 +0900
> On Sat, 20 Jan 2007 09:05:03 +0000 (UTC), david wrote:
> > A newer package is attached.
> Why does this package depend on graphics/png and graphics/jpeg ?
> It seems not using png nor jpeg directly and indirectry.