Build Failure

Zach Lowry <[email protected]>
Newsgroups gmane.os.netbsd.ports.hp700
Message-ID <[email protected]>
I'm trying to build a hp700 snapshot from Linux, NetBSD 1.6.2-cobalt  
and 2.0e-i386 host machines. I'm getting this error, and before I debug  
it, I thought you might know what's going on.

--- res_comp.o ---
/usr/src/lib/libc/net/res_comp.c:82: warning: static declaration for  
`__ns_name_ntop' follows non-static
/usr/src/lib/libc/net/res_comp.c:83: warning: static declaration for  
`__ns_name_pton' follows non-static
/usr/src/lib/libc/net/res_comp.c:84: warning: static declaration for  
`__ns_name_unpack' follows non-static
/usr/src/lib/libc/net/res_comp.c:86: error: conflicting types for  
`__ns_name_pack'
/home/hp700/usr/include/arpa/nameser.h:536: error: previous declaration  
of `__ns_name_pack'
/usr/src/lib/libc/net/res_comp.c:88: warning: static declaration for  
`__ns_name_uncompress' follows non-static
/usr/src/lib/libc/net/res_comp.c:90: warning: static declaration for  
`__ns_name_compress' follows non-static
/usr/src/lib/libc/net/res_comp.c:92: warning: static declaration for  
`__ns_name_skip' follows non-static
*** [res_comp.o] Error code 1
--- res_debug.o ---
/usr/src/lib/libc/net/res_debug.c: In function `do_rrset':
/usr/src/lib/libc/net/res_debug.c:219: warning: implicit declaration of  
function `p_rr'
/usr/src/lib/libc/net/res_debug.c:219: warning: assignment makes  
pointer from integer without a cast
/usr/src/lib/libc/net/res_debug.c: At top level:
/usr/src/lib/libc/net/res_debug.c:509: warning: function declaration  
isn't a prototype
/usr/src/lib/libc/net/res_debug.c: In function `__p_rr':
/usr/src/lib/libc/net/res_debug.c:519: error: `MAX_KEY_BASE64'  
undeclared (first use in this function)
/usr/src/lib/libc/net/res_debug.c:519: error: (Each undeclared  
identifier is reported only once
/usr/src/lib/libc/net/res_debug.c:519: error: for each function it  
appears in.)
/usr/src/lib/libc/net/res_debug.c:755: error: `T_UINFO' undeclared  
(first use in this function)
/usr/src/lib/libc/net/res_debug.c:761: error: `T_UID' undeclared (first  
use in this function)
/usr/src/lib/libc/net/res_debug.c:762: error: `T_GID' undeclared (first  
use in this function)
/usr/src/lib/libc/net/res_debug.c:519: warning: unused variable  
`base64_key'
/usr/src/lib/libc/net/res_debug.c: At top level:
/usr/src/lib/libc/net/res_debug.c:957: error: `T_UINFO' undeclared here  
(not in a function)
/usr/src/lib/libc/net/res_debug.c:957: error: initializer element is  
not constant
/usr/src/lib/libc/net/res_debug.c:957: error: (near initialization for  
`__p_type_syms[38].number')
/usr/src/lib/libc/net/res_debug.c:957: error: initializer element is  
not constant
/usr/src/lib/libc/net/res_debug.c:957: error: (near initialization for  
`__p_type_syms[38]')
/usr/src/lib/libc/net/res_debug.c:958: error: `T_UID' undeclared here  
(not in a function)
/usr/src/lib/libc/net/res_debug.c:958: error: initializer element is  
not constant
/usr/src/lib/libc/net/res_debug.c:958: error: (near initialization for  
`__p_type_syms[39].number')
/usr/src/lib/libc/net/res_debug.c:958: error: initializer element is  
not constant
/usr/src/lib/libc/net/res_debug.c:958: error: (near initialization for  
`__p_type_syms[39]')
/usr/src/lib/libc/net/res_debug.c:959: error: `T_GID' undeclared here  
(not in a function)
/usr/src/lib/libc/net/res_debug.c:959: error: initializer element is  
not constant
/usr/src/lib/libc/net/res_debug.c:959: error: (near initialization for  
`__p_type_syms[40].number')
/usr/src/lib/libc/net/res_debug.c:959: error: initializer element is  
not constant
/usr/src/lib/libc/net/res_debug.c:959: error: (near initialization for  
`__p_type_syms[40]')
/usr/src/lib/libc/net/res_debug.c:960: error: initializer element is  
not constant
/usr/src/lib/libc/net/res_debug.c:960: error: (near initialization for  
`__p_type_syms[41]')
/usr/src/lib/libc/net/res_debug.c:964: error: initializer element is  
not constant
/usr/src/lib/libc/net/res_debug.c:964: error: (near initialization for  
`__p_type_syms[42]')
/usr/src/lib/libc/net/res_debug.c:965: error: initializer element is  
not constant
/usr/src/lib/libc/net/res_debug.c:965: error: (near initialization for  
`__p_type_syms[43]')
/usr/src/lib/libc/net/res_debug.c: In function `__sym_ston':
/usr/src/lib/libc/net/res_debug.c:973: error: argument `name' doesn't  
match prototype
/home/hp700/usr/include/resolv.h:422: error: prototype declaration
/usr/src/lib/libc/net/res_debug.c: In function `__dn_count_labels':
/usr/src/lib/libc/net/res_debug.c:1561: error: argument `name' doesn't  
match prototype
/home/hp700/usr/include/resolv.h:448: error: prototype declaration
*** [res_debug.o] Error code 1
2 errors

nbmake: stopped in /usr/src/lib/libc

*** Failed target:  dependall
*** Failed command: cd /usr/src/lib/libc; /usr/cross-hp700/bin/nbmake  
realall
*** Error code 2

Stop.
nbmake: stopped in /usr/src/lib/libc
*** [do-lib-libc] Error code 1
1 error

nbmake: stopped in /usr/src

*** Failed target:  build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";  
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)  
this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}"  
;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with:  
$@)}"; cd "${real}" && /usr/cross-hp700/bin/nbmake _THISDIR_="${this}"  
"$@" ${target}; }; _makedirtarget . do-lib-libc
*** Error code 2

Stop.
nbmake: stopped in /usr/src
*** [distribution] Error code 1

nbmake: stopped in /usr/src

The above happens on the Linux and 2.0e platforms. On 1.6.2, I get this:

#      link  dig/dig
/usr/cross-hp700/bin/hppa--netbsd-gcc -Wl,-nostdlib     -o dig   
-Wl,-rpath-link,/home/clients/hp715/root/lib:/home/clients/hp715/root/ 
usr/lib  -L/home/clients/hp715/root/lib   
-B/home/clients/hp715/root/usr/lib/ -B/home/clients/hp715/root/usr/lib/  
   dig.o dighost.o -L/usr/src/usr.sbin/bind/libbind9/obj.hp700 -lbind9  
-L/usr/src/usr.sbin/bind/libdns/obj.hp700 -ldns  
-L/usr/src/usr.sbin/bind/liblwres/obj.hp700 -llwres  
-L/usr/src/usr.sbin/bind/libisccfg/obj.hp700 -lisccfg  
-L/usr/src/usr.sbin/bind/libisccc/obj.hp700 -lisccc  
-L/usr/src/usr.sbin/bind/libisc/obj.hp700 -lisc -lpthread    
-L/home/clients/hp715/root/usr/lib -L/home/clients/hp715/root/usr/lib

*** Failed target:  dig
*** Failed command: /usr/cross-hp700/bin/hppa--netbsd-gcc -Wl,-nostdlib  
-o dig  
-Wl,-rpath-link,/home/clients/hp715/root/lib:/home/clients/hp715/root/ 
usr/lib -L/home/clients/hp715/root/lib  
-B/home/clients/hp715/root/usr/lib/ -B/home/clients/hp715/root/usr/lib/  
dig.o dighost.o -L/usr/src/usr.sbin/bind/libbind9/obj.hp700 -lbind9  
-L/usr/src/usr.sbin/bind/libdns/obj.hp700 -ldns  
-L/usr/src/usr.sbin/bind/liblwres/obj.hp700 -llwres  
-L/usr/src/usr.sbin/bind/libisccfg/obj.hp700 -lisccfg  
-L/usr/src/usr.sbin/bind/libisccc/obj.hp700 -lisccc  
-L/usr/src/usr.sbin/bind/libisc/obj.hp700 -lisc -lpthread  
-L/home/clients/hp715/root/usr/lib -L/home/clients/hp715/root/usr/lib
*** Error code 1

Stop.
nbmake: stopped in /usr/src/usr.sbin/bind/dig

*** Failed target:  dependall
*** Failed command: cd /usr/src/usr.sbin/bind/dig;  
/usr/cross-hp700/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/usr.sbin/bind/dig

*** Failed target:  dependall-dig
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";  
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)  
this="usr.sbin/bind/"; real="/usr/src/usr.sbin/bind" ;; *)  
this="usr.sbin/bind/${dir}/"; real="/usr/src/usr.sbin/bind/${dir}" ;;  
esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with:  
$@)}"; cd "${real}" && /usr/cross-hp700/bin/nbmake _THISDIR_="${this}"  
"$@" ${target}; }; _makedirtarget dig dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/usr.sbin/bind

*** Failed target:  dependall-bind
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";  
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)  
this="usr.sbin/"; real="/usr/src/usr.sbin" ;; *)  
this="usr.sbin/${dir}/"; real="/usr/src/usr.sbin/${dir}" ;; esac;  
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd  
"${real}" && /usr/cross-hp700/bin/nbmake _THISDIR_="${this}" "$@"  
${target}; }; _makedirtarget bind dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/usr.sbin

*** Failed target:  dependall-usr.sbin
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";  
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)  
this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}"  
;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with:  
$@)}"; cd "${real}" && /usr/cross-hp700/bin/nbmake _THISDIR_="${this}"  
"$@" ${target}; }; _makedirtarget usr.sbin dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  do-build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";  
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)  
this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}"  
;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with:  
$@)}"; cd "${real}" && /usr/cross-hp700/bin/nbmake _THISDIR_="${this}"  
"$@" ${target}; }; _makedirtarget . dependall BUILD_tools=no  
BUILD_lib=no
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  build
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";  
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)  
this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}"  
;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with:  
$@)}"; cd "${real}" && /usr/cross-hp700/bin/nbmake _THISDIR_="${this}"  
"$@" ${target}; }; _makedirtarget . do-build
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  distribution
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";  
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)  
this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}"  
;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with:  
$@)}"; cd "${real}" && /usr/cross-hp700/bin/nbmake _THISDIR_="${this}"  
"$@" ${target}; }; _makedirtarget . build NOPOSTINSTALL=1
*** Error code 1

Stop.
nbmake: stopped in /usr/src

Any clue?
------------------------------------------------------------------------ 
--------
Zach Lowry                                                  
http://www.netbsd.org
MTSU, Murfreesboro, TN                              Owner of 20 NetBSD  
Platforms

-----BEGIN GEEK CODE BLOCK-----
  Version: 3.1
  GCS/IT/MU d-> s>+:->-- a-- C++$>+++ UBLUAHIOSX++++$ P++$>+++ L++++ !E  
W++ N++ !o !K-- w--$>--- !O M++ !V PS++>+++ PE+++ Y PGP !t !5 !X R tv>+  
b+>++ DI+>++ D++ G e++>+++ h++ r+++ y++++**
  ------END GEEK CODE BLOCK------
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.