pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: compiling packages



[
 I've copied pkgsrc-users%netbsd.org@localhost as that is the best place
 to discuss pkgsrc problems. 
 I've copied port-sparc64%netbsd.org@localhost 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 anoncvs%anoncvs.NetBSD.org@localhost:/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		eric%cirr.com@localhost		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


Home | Main Index | Thread Index | Old Index