On Sun, 23 Sep 2012 08:21:01 -0700, Alexander Hansen <[email protected]> wrote: On 9/23/12 4:00 AM, Glenn Starkman wrote: > > I am trying to install the xfig package, with no success. > > > Here is the error message that I get:
> > <snip> > > > cc -c -Os -Wall -Wpointer-arith -no-cpp-precomp -I/sw/include > > -I/sw/include -I/usr/X11R6/include/X11 -I/usr/X11/include > > -D__x86_64__ -D__DARWIN__ -DNO_ALLOCA > > -DCSRG_BASED -DUSE_XPM -DXAW3D -DXAW3D1_5E -DUSE_JPEG > > -DNEWARROWTYPES w_export.c > > w_export.c:1019:5: error: non-void function 'toggle_hpgl_pcl_switch' > > should return a value [-Wreturn-type] > > return; > > ^ > > w_export.c:1041:5: error: non-void function 'toggle_hpgl_font' should > > return a value [-Wreturn-type] > > return; > > ^ > > <snip> > > > Distribution version: selfupdate-rsync Fri Sep 21 11:38:42 2012, 10.7, > > x86_64 > > Xcode.app: 4.5 > > Xcode command-line tools: 4.5.0.0.1.1249367152 > > The problem here is that xfig is old, and the default compiler that > we're using (clang) has been getting steadily stricter about C syntax > --this package started having problems as of Xcode 4.4. > > As a workaround, I've applied the same method as is used for the 10.8 > package for consistency whenever clang is new enough to trigger this > issue. It worked for me on 10.7 with Xcode 4.5. I put a newer version of xfig in my CVS exp. It fixes a ton of compiler noise in general, but I don't have xcode4.5 to know if it is now "clean enough" for latest clang (I don't have a sandbox machine at that xcode). It also pushes newer dependencies. So even if it still requires explicit compiler workaround, might be good to propagate this to the public repos--at least we'll be hacking and tweaking a the latest flavor of this ancient codebase. dan -- Daniel Macks [email protected] ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Fink-users mailing list [email protected] List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users
