Re: compiling packages

[email protected] (Eric Schnoebelen)
Newsgroups gmane.os.netbsd.ports.sparc64,gmane.os.netbsd.devel.pkgsrc.user
Message-ID <[email protected]>
[
 I've copied [email protected] as that is the best place
 to discuss pkgsrc problems. 
 I've copied [email protected] as that is where the
 question originated. 
]

Glenn Mawby writes:
- I'm running 7.1 NetBSD 7.1 (GENERIC.201703111743Z) sparc64
- The README in /usr/pkgsrc  has $NetBSD: README,v 1.19 2017/03/02 09:51:35
- maya Exp $
- I originally installed pkgsrc when I installed the os but have since run
- cvs -d [email protected]:/cvsroot checkout -P pkgsrc
- 
- The file /etc/mtree/set.comp  exists.
- cc -v returns
- Using built-in specs.
- COLLECT_GCC=cc
- COLLECT_LTO_WRAPPER=/usr/libexec/lto-wrapper
- Target: sparc64--netbsd
[...]
- gcc version 4.8.5 (nb2 20150115)
- 
- Maybe I delete pkgsrc and start again.

You're probably going to delete /usr/pkg and /var/db/pkg, and
start over.

You don't need to bootstrap on NetBSD, given pkgsrc is the
native packaging system on NetBSD.

- The error is:
-  CC       c-stack.o
- In 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:
- 
- there is a lot more of this backtrace.

It looks like the include paths and compiler are severely
confused.

FYI: I just built print/hplip and all it's dependencies on a
NetBSD/sparc64 7.1 system, with no issues or errors.

--
Eric Schnoebelen		[email protected]		http://www.cirr.com
      I view Linux as something that's not Microsoft-a backlash against
	      Microsoft, no more and no less. -- Ken Thompson, 1999
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.