FLTK logo

STR #1114

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 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #1114

Application:FLTK Library
Status:4 - Pending
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:2 - Specific to an operating system
Subsystem:Build Files
Summary:fltk.spec relfect cvs snapshot
Version:2.0-feature
Created By:alvin
Assigned To:matt
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  
 
#1 alvin
12:28 Dec 10, 2005
If possible, could the fltk.spec in the 1.1.x cvs snapshot be update with each snapshot? I'm not sure if this is possible, but it would be nice to be able to do rpmbuild -ta fltk-*.tar.gz when the snapshots are released. My request is for both the 1.1.x and 2.0 cvs snapshots.

Currently, I have to hack the fltk.spec for each snapshot and repack the fltk directory.

Thanks,

Alvin
SUSE 9.3 Pro
Kernel 2.6.11.4-21.9
Xorg 6.8.2
 
 
#2 mike
13:54 Dec 10, 2005
Yes, this is possible, and I'll make the necessary changes to the snapshot scripts when I get a chance...  
 
#3 alvin
07:06 Dec 19, 2005
I'm not sure if this is really an issue, but I thought it would be worth mentioning in case others have problems with their fltk RPMs.

In SUSE 9.3, the /usr/lib/rpm/rpmrc has optflags set to "-O2 -g". So, rpmbuild uses these optimisation to compile the fltk library. This results in  "fltk-config --cxxflags" to return "-O2 -g" which includes adding the debug symbols while, at the same time, optimising. This makes debugging troublesome because the execution flow may not match that in the source code.

This only effects the fltk library compilation when rpmbuild is used. When manually configured and compiled, the fltk library is created using -Os.

The fltk.spec file referrs to CXXFLAGS="RPM_OPT_FLAGS" which, on my system, expands to: -O2 -g -march=i586 -mcpu=i686 -fmessage-length=0

My fix was to use vi to edit /usr/lib/rpm/rpmrc and replace "-O2 -g" with "-O2 -g0".

---
Alvin

SUSE 9.3 Pro
KDE 3.5 level "a"
Xorg 6.8.2
Kernel 2.6.11.4-21.10
 
 
#4 alvin
07:25 Dec 28, 2005
The best solution to the -O2 -g problem was to change the fltk.spec file. I replaced CFLAGS="$RPM_OPTS_FLAGS" with CFLAGS="". I did this for CXXFLAGS and LDFLAGS.

This allows fltk-config to be used for debug and release builds.
 
     

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

 
 

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