Menu

#902 (f) errno undefined (freebsd-4.8

patched
closed-fixed
build (67)
5
2004-10-10
2004-08-06
Anonymous
No

on freebsd 4.8 / gcc 3.3.1, jikes needs errno.h to be included:

--- src/error.h Fri Aug 6 11:24:42 2004
+++ src/error.h.orig Fri Aug 6 11:36:57 2004
@@ -13,7 +13,6 @@
#include "platform.h"
#include "tuple.h"
#include "jikesapi.h"
-#include <errno.h>

#ifdef HAVE_JIKES_NAMESPACE
namespace Jikes { // Open namespace Jikes block

Discussion

  • Elliott Hughes

    Elliott Hughes - 2004-08-19
    • assigned_to: nobody --> enh
     
  • Elliott Hughes

    Elliott Hughes - 2004-08-19

    can you confirm that this patch works? apply, run autogen.sh, and make.

    Index: configure.ac

    RCS file: /usr/cvs/jikes/jikes/configure.ac,v
    retrieving revision 1.13
    diff -u -r1.13 configure.ac
    --- configure.ac 14 May 2004 04:01:41 -0000 1.13
    +++ configure.ac 19 Aug 2004 23:27:25 -0000
    @@ -105,7 +105,7 @@
    dnl Check for standard c and c++ headers and libraries
    AC_HEADER_STDC()

    -AC_CHECK_HEADERS(stdio.h assert.h limits.h ctype.h time.h float.h)
    +AC_CHECK_HEADERS(stdio.h assert.h errno.h limits.h ctype.h time.h float.h)

    dnl Check for some headers which are not present on all supported platforms
    AC_CHECK_HEADERS(windows.h direct.h dirent.h sys/cygwin.h locale.h)
    Index: src/config.h.in
    ===================================================================
    RCS file: /usr/cvs/jikes/jikes/src/config.h.in,v
    retrieving revision 1.35
    diff -u -r1.35 config.h.in
    --- src/config.h.in 23 Feb 2004 13:47:14 -0000 1.35
    +++ src/config.h.in 19 Aug 2004 23:27:26 -0000
    @@ -39,6 +39,9 @@
    /* Defined if Jikes supports -encoding for input files. */
    #undef HAVE_ENCODING

    +/* Define to 1 if you have the <errno.h> header file. */
    +#undef HAVE_ERRNO_H
    +
    /* Defined when the compiler would generate an error on a call to iconv with a
    non const 2nd argument. This is a known problem on IRIX systems, as well as
    newer GNU LIBCs. */
    Index: src/platform.h
    ===================================================================
    RCS file: /usr/cvs/jikes/jikes/src/platform.h,v
    retrieving revision 1.52
    diff -u -r1.52 platform.h
    --- src/platform.h 25 Mar 2004 13:32:28 -0000 1.52
    +++ src/platform.h 19 Aug 2004 23:27:26 -0000
    @@ -110,6 +110,10 @@
    # include <dirent.h>
    #endif

    +#ifdef HAVE_ERRNO_H
    +# include STD_LIB_NAME(errno)
    +#endif
    +
    #ifndef HAVE_WINT_T
    /* On some systems the type wint_t is not defined in wchar.h */
    typedef unsigned int wint_t;

     
  • Elliott Hughes

    Elliott Hughes - 2004-08-20
    • summary: errno undefined (freebsd-4.8 --> (f) errno undefined (freebsd-4.8
     
  • Elliott Hughes

    Elliott Hughes - 2004-08-20

    fixed in CVS (on the assumption that i'm unlikely to get a response from anonymous@example.com).

     
  • Elliott Hughes

    Elliott Hughes - 2004-10-10
    • status: open --> closed-fixed
     

Log in to post a comment.