compiling packages

Glenn Mawby <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc64
Message-ID <CACxgAiEGzTXEoH9K_8GhgZMR+J36F_hd7krLBPLUc3xiZgLLnA@mail.gmail.com>
Hi ,
I'm having trouble compiling anything under pkgsrc.  I've read the README
and run ./bootstrap.sh and that went OK.   When I tried to build hplip I
get an error

n file included from c-stack.c:49:0:
./signal.h:766:8: error: redefinition of 'struct sigaction'
 struct sigaction
        ^
In file included from ///usr/include/signal.h:45:0,
                 from ./signal.h:52,
                 from c-stack.c:49:
/usr/include/sys/signal.h:125:8: note: originally defined here
 struct sigaction {
        ^
In file included from c-stack.c:49:0:
./signal.h:781:0: warning: "sa_handler" redefined [enabled by default]
 #   define sa_handler _sa_func._sa_handler
 ^
In file included from ///usr/include/signal.h:45:0,
                 from ./signal.h:52,
                 from c-stack.c:49:
/usr/include/sys/signal.h:137:0: note: this is the location of the previous
definition
 #define sa_handler _sa_u._sa_handler
 ^
In file included from c-stack.c:49:0:
./signal.h:782:0: warning: "sa_sigaction" redefined [enabled by default]
 #   define sa_sigaction _sa_func._sa_sigaction
 ^
In file included from ///usr/include/signal.h:45:0,
                 from ./signal.h:52,
                 from c-stack.c:49:
/usr/include/sys/signal.h:140:0: note: this is the location of the previous
definition
 #define sa_sigaction _sa_u._sa_sigaction
 ^
In file included from c-stack.c:49:0:
./signal.h:784:0: warning: "SA_RESETHAND" redefined [enabled by default]
 #   define SA_RESETHAND 1
 ^
In file included from ///usr/include/signal.h:45:0,
                 from ./signal.h:52,
                 from c-stack.c:49:
/usr/include/sys/signal.h:149:0: note: this is the location of the previous
definition
 #define SA_RESETHAND 0x0004 /* reset to SIG_DFL when taking signal */
 ^
In file included from c-stack.c:49:0:
./signal.h:785:0: warning: "SA_NODEFER" redefined [enabled by default]
 #   define SA_NODEFER 2
 ^
In file included from ///usr/include/signal.h:45:0,
                 from ./signal.h:52,
                 from c-stack.c:49:
/usr/include/sys/signal.h:150:0: note: this is the location of the previous
definition
 #define SA_NODEFER 0x0010 /* don't mask the signal we're delivering */
 ^
In file included from c-stack.c:49:0:
./signal.h:786:0: warning: "SA_RESTART" redefined [enabled by default]
 #   define SA_RESTART 4
 ^
In file included from ///usr/include/signal.h:45:0,
                 from ./signal.h:52,
                 from c-stack.c:49:
/usr/include/sys/signal.h:148:0: note: this is the location of the previous
definition
 #define SA_RESTART 0x0002 /* restart system call on signal return */
 ^
In file included from ./string.h:68:0,
                 from gettext.h:184,
                 from c-stack.c:44:
./signal.h:791:19: error: conflicting types for 'sigaction'
 _GL_FUNCDECL_SYS (sigaction, int, (int, const struct sigaction *restrict,
                   ^
./unistd.h:246:24: note: in definition of macro '_GL_FUNCDECL_SYS'
   _GL_EXTERN_C rettype func parameters_and_attributes
                        ^
In file included from ./signal.h:52:0,
                 from c-stack.c:49:
///usr/include/signal.h:78:5: note: previous declaration of 'sigaction' was
here
 int sigaction(int, const struct sigaction * __restrict,
     ^

I got similar when I tried to compile xfig.

Any ideas?

Glenn.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.