Bug 708185

Summary: fltk-config --ldflags need only return -lfltk
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: fltkAssignee: Adam Tkac <atkac>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: atkac, ovasik, pertusus, rdieter, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-27 12:37:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Orion Poplawski 2011-05-26 21:29:51 UTC
Description of problem:

fltk 1.1:
# fltk-config --ldflags:
-lfltk
# fltk-config --ldflags --use-gl
-lfltk_gl -lGLU -lGL -lfltk

fltk 1.3:
$ fltk-config --ldflags
-lfltk -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11
$ fltk-config --ldflags --use-gl
-lfltk_gl -lGLU -lGL -lfltk -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11

Really need only be:
$ fltk-config --ldflags
-lfltk
$ fltk-config --ldflags --use-gl
-lfltk_gl

As I understand it,  when linking to fltk you need only specify -lfltk_gl or -lfltk, other deps are brought along automatically.  Adding extra libs only adds unneeded deps and are only needed when static linking.

Also as it stands packages building against fltk can get:

/usr/bin/ld: cannot find -lXinerama

because fltk-devel does not require libXinerama-devel.  But again, I believe it is not necessary to specify the extra libraries.

Version-Release number of selected component (if applicable):
1.3.0-0.1.rc5.fc16

Comment 1 Adam Tkac 2011-05-27 07:44:40 UTC
I will fix this issue.

Comment 2 Adam Tkac 2011-05-27 10:38:39 UTC
*** Bug 708334 has been marked as a duplicate of this bug. ***

Comment 3 Adam Tkac 2011-05-27 11:46:31 UTC
(In reply to comment #0)
> Description of problem:
> 
> fltk 1.1:
> # fltk-config --ldflags:
> -lfltk
> # fltk-config --ldflags --use-gl
> -lfltk_gl -lGLU -lGL -lfltk
> 
> fltk 1.3:
> $ fltk-config --ldflags
> -lfltk -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11
> $ fltk-config --ldflags --use-gl
> -lfltk_gl -lGLU -lGL -lfltk -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl
> -lm -lX11
> 
> Really need only be:
> $ fltk-config --ldflags
> -lfltk
> $ fltk-config --ldflags --use-gl
> -lfltk_gl
> 
> As I understand it,  when linking to fltk you need only specify -lfltk_gl or
> -lfltk, other deps are brought along automatically.  Adding extra libs only
> adds unneeded deps and are only needed when static linking.

Right you are, deps should be picked up automatically.

Comment 4 Adam Tkac 2011-05-27 12:37:13 UTC
fltk-1.3.0-0.2.rc5.fc16 should be fixed. If issue is still present, please reopen this ticket. Thanks for the report!