[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem compiling latest gnulib on Solaris 9 i386 with Sun Studio
From: |
Dagobert Michelsen |
Subject: |
Problem compiling latest gnulib on Solaris 9 i386 with Sun Studio |
Date: |
Fri, 18 Nov 2011 13:34:21 +0100 |
Hi,
I just tried to build a static gnulib as described in
http://www.gnu.org/software/gnulib/manual/html_node/POSIX-Substitutes-Library.html#POSIX-Substitutes-Library
on Solaris 9 i386 with Sun Studio 12 and got the following error:
source='openat.c' object='openat.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ../build-aux/depcomp \
/opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1
-I/opt/csw/include -D_REENTRANT -xO3 -m32 -xarch=386 -c -o openat.o openat.c
"openat.c", line 99: undefined symbol: errno
"openat.c", line 99: undefined symbol: EISDIR
"openat.c", line 131: undefined symbol: errno
"openat.c", line 131: undefined symbol: ENOTDIR
cc: acomp failed for openat.c
gmake[4]: *** [openat.o] Error 2
Adding
#include <errno.h>
to openat.c resolves the issue for me.
Best regards
-- Dago
--
"You don't become great by trying to be great, you become great by wanting to
do something,
and then doing it so hard that you become great in the process." - xkcd #896
- Problem compiling latest gnulib on Solaris 9 i386 with Sun Studio,
Dagobert Michelsen <=