STR #1885

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.1 ]

STR #1885

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:3 - Applies to all machines and operating systems
Subsystem:Test Framework
Summary:Sudoku test program crashes, and make clean doesn't work on Linux
Created By:AlbrechtS
Assigned To:matt
Fix Version:1.1-current (SVN: v6053)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files

Trouble Report Comments:

Name/Time/Date Text top right image
#1 AlbrechtS
10:10 Feb 26, 2008
FLTK 1.1.8rc1 (svn -r 6052):

One more small bug:

The sudoku test program crashes, if you choose "Update Helpers" from the menu. Verified on Linux (Segmentation fault) and Windows (crash with request to send message to MS).

And "make clean" doesn't work on Linux:

/tmp/fltk-1.1.8-rc1-6052> make clean
=== cleaning src ===
rm: cannot remove `../lib/': Is a directory
=== cleaning fluid ===
=== cleaning test ===
=== cleaning documentation ===

/tmp/fltk-1.1.8-rc1-6052> ls lib

#2 matt
12:39 Feb 26, 2008
I fixed the Sudoku bug.

The Make environment issue however I could not duplicate. Did you do "make distclean" before running "autoconf" and "configure"?

I will leave this issue pending for now.
#3 AlbrechtS
13:32 Feb 26, 2008
(1) Thanks for fixing the sudoku bug :-)

(2) There seems to be another one in blocks :-(  [I'm adding this here to avoid creating another STR].
Obviously, the timer doesn't get reset correctly when starting a new game. You can easily test it if you type "+" several times to increase the level (Matt, you know that feature, right? ;-) After finishing the game and starting a new one, the speed seems to be the same like before in level 4, 5 or whatever it was. I looked into the code, but didn't find it in a short time. Maybe you or Mike will find it.

(3) I found the "make clean" problem. The cause is (or seems to be) that I don't have GL/glut or something like that configured.

In fltk/makeinclude, GLLIBNAME is an empty string:

# program to make the archive:
LIBNAME = ../lib/libfltk.a
FLLIBNAME = ../lib/libfltk_forms.a
IMGLIBNAME = ../lib/libfltk_images.a

In fltk/src/Makefile, "../lib/$(GLLIBNAME) therfore becomes "../lib/", and make clean tries to $(RM) a directory file:

        -$(RM) *.o *.dll.a core.* *~ *.bck *.bck
                ../lib/$(LIBNAME) ../lib/$(FLLIBNAME) ../lib/$(GLLIBNAME) \
                ../lib/$(IMGLIBNAME) \

#4 matt
14:05 Feb 26, 2008
2: Yeah, the + button makes this game exciting :-P . But I can't see the issues you are having. I tried level 15, let it crash, and when I click "Play" again, it starts at level one with the original 0.1 seconds interval. A crash sets the interval to -1, which then causes the Play button to call init(), setting interval back to 0.1 - tested on OS X. Maybe there is a certain timer condition which resets interval_ to a positive value?

3: I believe that the "../lib/" prefix in the RM line is plain wrong anyways because LIBNAME etc. does already contain ../lib/ in its path. So actually it is only coincidence that the concatenated path still points at the right file. This would also solve the GLUT path issue.

#5 matt
14:06 Feb 26, 2008
PS: don't worry about opening as many STRs as there are bugs or irregularities. It makes it easier to link SVN cahnges to STRs.  
#6 matt
07:01 Feb 27, 2008
6052: fixed '../lib/' prefix in src/Makefile  
bottom left image   bottom right image

Return to Bugs & Features ]


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 ''.