Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

fltk failed to build on 10.9 #27404

Closed
indiecat opened this issue Mar 11, 2014 · 4 comments
Closed

fltk failed to build on 10.9 #27404

indiecat opened this issue Mar 11, 2014 · 4 comments

Comments

@indiecat
Copy link

https://gist.github.com/9479921

"brew install -v fltk --env=std" fails as well.

@MikeMcQuaid
Copy link
Member

Looks like it might be a clang bug again.

@AustinCoates
Copy link

I am having the same problem. Has anyone found a solution?

@mikejmills
Copy link

Hi

I found this possible fix from
http://clang-developers.42468.n3.nabble.com/Clang-compile-error-td4033809.html

Moving the initializer "seed = 0" from the friend declaration to the inline declaration compiles without problem.

friend Fl_Widget *make_type_browser(int,int,int,int,const char *l=0);
Simply removing the l=0 allows it to compile. How that effects everything I don't know

Fixed
fltk-1.3.2/fluid/Fl_Type.h
39: friend Fl_Widget *make_type_browser(int,int,int,int,const char *l);

@indiecat
Copy link
Author

The problem have been fixed in later weekly builds of FLTK exactly as mikejmills suggested:

diff -u fltk-1.3.2/fluid/Fl_Type.h fltk-1.3.x-r10116/fluid/Fl_Type.h
--- fltk-1.3.2/fluid/Fl_Type.h  2011-07-19 15:49:30.000000000 +1100
+++ fltk-1.3.x-r10116/fluid/Fl_Type.h   2014-02-04 11:34:41.000000000 +1100
@@ -1,5 +1,5 @@
 //
-// "$Id: Fl_Type.h 8864 2011-07-19 04:49:30Z greg.ercolano $"
+// "$Id: Fl_Type.h 10093 2014-02-04 00:34:41Z AlbrechtS $"
 //
 // Widget type header file for the Fast Light Tool Kit (FLTK).
 //
@@ -36,7 +36,7 @@
 class Fl_Type {

   friend class Widget_Browser;
-  friend Fl_Widget *make_type_browser(int,int,int,int,const char *l=0);
+  friend Fl_Widget *make_type_browser(int,int,int,int,const char *);
   friend class Fl_Window_Type;
   virtual void setlabel(const char *); // virtual part of label(char*)

@@ -861,5 +861,5 @@


 //
-// End of "$Id: Fl_Type.h 8864 2011-07-19 04:49:30Z greg.ercolano $".
+// End of "$Id: Fl_Type.h 10093 2014-02-04 00:34:41Z AlbrechtS $".
 //

fltk-1.3.x-r10116 builds fine on my system.

I have opened a pull request with the fix.

ehershey pushed a commit to ehershey/homebrew that referenced this issue Apr 4, 2014
Fixes Homebrew#27404.
Closes Homebrew#27531.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
yeled pushed a commit to yeled/homebrew that referenced this issue Mar 10, 2015
Fixes Homebrew#27404.
Closes Homebrew#27531.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants