Subject: pkg/22672: devel/libgetopt fails to build on Solaris
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <gavan@coolfactor.org>
List: netbsd-bugs
Date: 09/03/2003 10:25:37
>Number:         22672
>Category:       pkg
>Synopsis:       devel/libgetopt fails to build on Solaris
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 03 10:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Gavan Fantom
>Release:        Solaris 9
>Organization:
>Environment:
Solaris 9 on x86, building pkgsrc in a sandbox. Recent pgksrc.
>Description:
On Solaris, this package needs to depend on something that provides sys/cdefs.h and err.h.

===> build-message [libgetopt-1.3] ===> Building for libgetopt-1.3
/usr/pkg/gcc-2.95.3/bin/gcc -O -DREPLACE_GETOPT  -Werror  -I/include -D__EXTENSIONS__ -D_XPG4_2 -DSUNOS_5  -c getopt_long.c
getopt_long.c:39: sys/cdefs.h: No such file or directory
In file included from getopt_long.c:44:
namespace.h:39: sys/cdefs.h: No such file or directory
getopt_long.c:48: err.h: No such file or directory
In file included from getopt_long.c:51:
getopt.h:42: sys/cdefs.h: No such file or directory
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/libgetopt/work/libgetopt

>How-To-Repeat:
Install pkgsrc on Solaris, and attempt to build devel/libgetopt
>Fix:
None known at present.
>Release-Note:
>Audit-Trail:
>Unformatted: