#1 Compile error on NetBSD 2.0.2 and Solaris 9 (patch included)

closed-fixed
ChriS
None
5
2008-03-26
2006-03-20
spiralvoice
No

Hi,

NetBSD netbsd 2.0.2 NetBSD 2.0.2 (GENERIC)

magiclib_stub.o(.text+0x102): In function `raise_on_error':
magiclib_stub.c:76: undefined reference to `strerror_r'

magiclib_stub.o(.text+0x25e): In function
`ocaml_magic_open':
magiclib_stub.c:145: undefined reference to `strerror_r'

Discussion

  • spiralvoice

    spiralvoice - 2006-03-20
    • summary: Compile error on NetBSD --> Compile error on NetBSD 2.0.2
     
  • spiralvoice

    spiralvoice - 2006-03-20

    Logged In: YES
    user_id=559957

    Same bug here:
    SunOS sun 5.9 Generic_118558-11 sun4u sparc
    SUNW,Sun-Fire-880 Solaris

     
  • spiralvoice

    spiralvoice - 2006-03-20
    • summary: Compile error on NetBSD 2.0.2 --> Compile error on NetBSD 2.0.2 and Solaris 9
     
  • spiralvoice

    spiralvoice - 2006-03-20

    Logged In: YES
    user_id=559957

    Changing strerror_r to strerror does not work on Solaris:

    magiclib_stub.c: In function `raise_on_error':
    magiclib_stub.c:76: error: too many arguments to function
    `strerror'
    magiclib_stub.c: In function `ocaml_magic_open':
    magiclib_stub.c:145: error: too many arguments to function
    `strerror'

    manpage of strerror on Solaris 9:

    Standard C Library Functions
    strerror(3C)

    NAME
    strerror - get error message string

    SYNOPSIS
    #include <string.h>

    char *strerror(int errnum);

     
  • spiralvoice

    spiralvoice - 2006-09-01
    • summary: Compile error on NetBSD 2.0.2 and Solaris 9 --> Compile error on NetBSD 2.0.2 and Solaris 9 (patch included)
     
  • ChriS

    ChriS - 2008-03-23
    • assigned_to: nobody --> chris_77
     
  • ChriS

    ChriS - 2008-03-23

    Logged In: YES
    user_id=1061649
    Originator: NO

    This should be fixed in CVS.

     
  • ChriS

    ChriS - 2008-03-26
    • status: open --> open-fixed
     
  • ChriS

    ChriS - 2008-03-26
    • status: open-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks