FLTK logo

STR #1890

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 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #1890

Application:FLTK Library
Status:5 - New
Priority:3 - Moderate, e.g. unable to compile the software
Scope:2 - Specific to an operating system
Subsystem:Unassigned
Summary:fltk-2.0.x-r6059 fails to build on Solaris
Version:2.0-current
Created By:teythoon
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
 
#1 teythoon
05:13 Mar 03, 2008
$ uname -a
SunOS rzdspc5 5.10 Generic_125100-10 sun4u sparc SUNW,Sun-Fire-880 Solaris
$ ./configure
[...]
checking for scandir... yes
configure: WARNING: Not using SunOS scandir emulation function.
[...]
$ make -j5
[...]
Compiling filename_list.cxx...
filename_list.cxx:42: error: declaration of C function 'int scandir(const char*, dirent***, int (*)(dirent*), int (*)(const dirent* const*, const dirent* const*))' conflicts with
/usr/include/dirent.h:92: error: previous declaration 'int scandir(const char*, dirent***, int (*)(const dirent*), int (*)(const dirent**, const dirent**))' here
 
 
#2 teythoon
15:59 Jul 04, 2008
Johannes Hofmann had a hunch that Solaris 10 comes with a proper scandir function and it turnes out that he's right:

--- a/configure.in Sat Jun 28 10:54:24 2008 +0200
+++ b/configure.in Fri Jul 04 20:32:07 2008 +0200
@@ -324,7 +324,7 @@ AC_CHECK_HEADER(sys/select.h,AC_DEFINE(H
 AC_CHECK_HEADER(sys/select.h,AC_DEFINE(HAVE_SYS_SELECT_H))
 AC_CHECK_HEADER(sys/stdtypes.h,AC_DEFINE(HAVE_SYS_SELECT_H))
 AC_CHECK_FUNC(scandir,[
-    if test "$uname" = SunOS -o "$uname" = QNX; then
+    if test "$uname" = QNX; then
         AC_MSG_WARN(Not using $uname scandir emulation function.)
     else
         AC_DEFINE(HAVE_SCANDIR)

This solves this issue. You might want to check uname -r, but I know too little about autoconf to provide a proper patch.
 
     

Return to Bugs & Features | Post Text | Post File ]

 
 

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