STR #3492

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 1.3 | Post Text | Post File | Prev | Next ]

STR #3492

Application:FLTK Library
Status:5 - New
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Subsystem:Config Files
Summary:fltk-config shouldn't report its own dependencies
Version:1.3-feature
Created By:yurivict
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
 
#1 yurivict
10:10 Aug 30, 2018
Currently fltk-config reports all of its dependencies:

$ fltk-config --use-gl --use-images --ldflags
-L/usr/local/lib -lm -Wl,-rpath,/usr/local/lib -fstack-protector -lfltk_images -lpng -lz -ljpeg -lfltk_gl -lGLU -lGL -lfltk -lXrender -lXcursor -lXfixes -lXext -lXft -lfontconfig -lXinerama -lpthread -lm -lX11

This causes executables of dependent projects to link to all fltk's dependencies as well, when this isn't needed.

The particular adverse consequence that this causes is that dependent packages now need these dependencies added. For example, FreeBSD ports have 'make stage-qa' command that checks consistency of dependencies, and it prints warnings that all these packages need to be declared as dependencies.

Other packages in the sime situation don't report their dependencies:
$ pkg-config --libs poppler
-L/usr/local/lib -lpoppler

I found this problem in the FreeBSD port games/crashtest.

fltk-1.3.4
 
 
#2 AlbrechtS
11:29 Aug 30, 2018
Given your example above: what do you think would be the expected (correct) output?

And what would be the expected output of:

$ fltk-config --use-gl --use-images --ldstaticflags
 
 
#3 yurivict
18:06 Aug 30, 2018
$ fltk-config --use-gl --use-images --ldstaticflags
should return all dependencies because they all should be supplied to the static link.
 
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.