FLTK logo

STR #1495

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 | SVN ⇄ GIT ]

STR #1495

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:3 - Moderate, e.g. unable to compile the software
Scope:2 - Specific to an operating system
Subsystem:Multiple
Summary:1.1.7 does not compile on AMD x86_64
Version:1.1.7
Created By:jpff.codemist.co
Assigned To:matt
Fix Version:1.1-current
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#1 jpff.codemist.co
07:32 Nov 12, 2006
In file included from glut_compatability.cxx:41:
../FL/glut.H: In function `void glutTimerFunc(unsigned int, void (*)(int), int)
   ':
../FL/glut.H:248: warning: cast to pointer from integer of different size
glut_compatability.cxx: In function `void glutAddMenuEntry(char*, int)':
glut_compatability.cxx:326: warning: cast to pointer from integer of different
   size
glut_compatability.cxx: In function `void glutChangeToMenuEntry(int, char*,
   int)':
glut_compatability.cxx:343: warning: cast to pointer from integer of different
   size
Compiling glut_font.cxx...
In file included from glut_font.cxx:34:
../FL/glut.H: In function `void glutTimerFunc(unsigned int, void (*)(int), int)
   ':
../FL/glut.H:248: warning: cast to pointer from integer of different size
/usr/bin/ar cr ../lib/libfltk_gl.a ...

and later.....

Compiling unittests.cxx...
unittests.cxx: In function `void newButton(int, int, int, int, const char*,
   int, const char*)':
unittests.cxx:51: warning: cast to pointer from integer of different size
Linking unittests...
Compiling adjuster.cxx...
Linking adjuster...
Compiling arc.cxx...
arc.cxx: In function `int main(int, char**)':
arc.cxx:87: warning: cast to pointer from integer of different size
....
Compiling cursor.cxx...
cursor.cxx: In function `void choice_cb(Fl_Widget*, void*)':
cursor.cxx:42: warning: cast from pointer to integer of different size
Linking cursor...
Compiling curve.cxx...
curve.cxx: In function `int main(int, char**)':
curve.cxx:103: warning: cast to pointer from integer of different size
..... and similar
 
 
#2 mike
06:49 Nov 13, 2006
Please retest with the current 1.1.x snapshot.  I believe this was already fixed.  
 
#3 jpff.codemist.co
11:16 Nov 13, 2006
I tried 1.1.x-r5539 and it indeed builds correctly.
But....the resulting library does not load as it needs -fPIC in the build.  I am attempting using the --with-archflags="-fPIC" option but I am not sure yet if that worked.
 
 
#4 mike
16:52 Nov 13, 2006
What configure options are you using?

-fPIC is added automatically with --enable-shared.
 
 
#5 jpff.codemist.co
05:41 Nov 14, 2006
I tried configure --enable-shared --enable-threads
and I get

Linking fluid-shared...
Fl_Widget_Type.o: In function `__static_initialization_and_destruction_0(int, int)':
Fl_Widget_Type.cxx:(.text+0x13a): undefined reference to `fl_define_FL_GTK_UP_BOX()'
Fl_Widget_Type.cxx:(.text+0x148): undefined reference to `fl_define_FL_GTK_UP_BOX()'
Fl_Widget_Type.cxx:(.text+0x156): undefined reference to `fl_define_FL_GTK_UP_BOX()'
Fl_Widget_Type.cxx:(.text+0x165): undefined reference to `fl_define_FL_GTK_UP_BOX()'
Fl_Widget_Type.cxx:(.text+0x174): undefined reference to `fl_define_FL_GTK_UP_BOX()'
Fl_Widget_Type.o:Fl_Widget_Type.cxx:(.text+0x183): more undefined references to `fl_define_FL_GTK_UP_BOX()' follow
collect2: ld returned 1 exit status
make[1]: *** [fluid-shared] Error 1


Next attempot it to compile without threads
 
 
#6 mike
06:51 Nov 14, 2006
You have a previous installation of FLTK that is getting picked up over the local build; please attach the makeinclude file you have...  
 
#7 matt
13:09 Jan 18, 2007
Is this issue solved? If I don't get a reply in the next days, I will close this STR.  
 
#8 jpff.codemist.co
03:09 Jan 19, 2007
I never got it to compile, but I have since change operating system to SuSE 10.2 and it is distributed by them as a package -- or in Packman.  Either way I no lomger have a problem (apart from the small font here I cannot read...) as I side stepped it  
 
#9 matt
07:33 Jan 21, 2007
Was already fixed a while ago.  
     

Return to Bugs & Features ]

 
 

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