ports/143638: [patch] x11-toolkits/fltk does not build
Dominic Fandrey
kamikaze at bsdforen.de
Sun Feb 7 11:40:01 UTC 2010
>Number: 143638
>Category: ports
>Synopsis: [patch] x11-toolkits/fltk does not build
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Feb 07 11:40:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Dominic Fandrey
>Release: RELENG_8
>Organization:
private
>Environment:
FreeBSD mobileKamikaze.norad 8.0-STABLE FreeBSD 8.0-STABLE #0: Sun Feb 7 02:52:56 CET 2010 root at mobileKamikaze.norad:/usr/obj/HP6510b-8/amd64/usr/src/sys/HP6510b-8 amd64
>Description:
- Fix broken prototype in src/filename_list.cxx
Note that fltk also has the problem of linking against its older version, so you have to deinstall the old version to do a successful build.
All that would be necessary to fix this would be to prepend -L../src to LDFLAGS, but the GNU configure magic thwarted all my attempts to do this.
>How-To-Repeat:
Try to build the thing.
>Fix:
Patch attached with submission follows:
Files fltk.orig/.Makefile.swp and fltk/.Makefile.swp differ
diff -Nur fltk.orig/files/patch-src-filename_list.cxx fltk/files/patch-src-filename_list.cxx
--- fltk.orig/files/patch-src-filename_list.cxx 1970-01-01 01:00:00.000000000 +0100
+++ fltk/files/patch-src-filename_list.cxx 2010-02-07 11:37:52.000000000 +0100
@@ -0,0 +1,11 @@
+--- src/filename_list.cxx.orig 2010-02-07 11:34:59.000000000 +0100
++++ src/filename_list.cxx 2010-02-07 11:36:32.000000000 +0100
+@@ -54,7 +54,7 @@
+ Fl_File_Sort_F *sort) {
+ #ifndef HAVE_SCANDIR
+ int n = scandir(d, list, 0, sort);
+-#elif defined(__hpux) || defined(__CYGWIN__)
++#elif defined(__hpux) || defined(__CYGWIN__) || defined(__FreeBSD__)
+ // HP-UX, Cygwin define the comparison function like this:
+ int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
+ #elif defined(__osf__)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list