(1) With gcc 4.5, cpp does not fold lines separated by a escaped newline in the output. Therefore when nasd_rpcgen runs its rpc definitions through cpp, what comes out contains syntax errors. The parser then reports these with SIGSEGV. First fix the cpp plumbing to use the cpp tool wrapper during build, and then have it use -traditional. (2) On amd64, roughly half the build thinks it's actually i386. Patch the other half to agree. This may not turn out to work, but it does build instead of dumping out bizarre compile errors.
24 lines
743 B
Text
24 lines
743 B
Text
$NetBSD: patch-ay,v 1.2 2012/06/02 23:34:56 dholland Exp $
|
|
|
|
- add explicit netbsd support
|
|
- honor NASD_RPCGEN_ARGS, introduced/used by patch-al
|
|
|
|
--- include/nasd/Imakefile.orig 2005-03-21 08:52:02.000000000 +0000
|
|
+++ include/nasd/Imakefile
|
|
@@ -33,6 +33,7 @@ SUBDIRS = \
|
|
generic \
|
|
irix \
|
|
linux \
|
|
+ netbsd \
|
|
solaris \
|
|
video \
|
|
vxworks
|
|
@@ -206,7 +207,7 @@ NASD_RPCGenClientHeader(nasd_cheops_mgr.
|
|
nasd_rpcgen_glob_param.h:: $(RPCGEN_FILES) $(NASD_RPCGEN_BIN)
|
|
@echo Generating $@
|
|
@$(RM) -f tmp.$@ $@
|
|
- $(NASD_RPCGEN_BIN) ${NASD_RPCGEN_INCLUDES} -S_t -P nasd_ -g tmp.$@ ${RPCGEN_FILES}
|
|
+ $(NASD_RPCGEN_BIN) ${NASD_RPCGEN_ARGS} ${NASD_RPCGEN_INCLUDES} -S_t -P nasd_ -g tmp.$@ ${RPCGEN_FILES}
|
|
$(MV) tmp.$@ $@
|
|
@echo Generated $@
|
|
|