Subject: Building mac68k-current on Mac OS X : "__nbcompat_user_from_uid" error
To: None <netbsd-help@netbsd.org>
From: Gerardo Alvarez <gerardoalvarez@telefonica.net>
List: netbsd-help
Date: 11/11/2004 16:42:46
--Apple-Mail-13--526001329
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed

I have been trying to compile mac68k -current on Mac OS X.
After checking the docs I understood this is entirely possible.
So I downloaded the tarballs from 
ftp://ftp.es.NetBSD.org/pub/NetBSD/NetBSD-current/tar_files/src/
ungzipped and untarred them in my disk and then (adapted from a message 
in the list):

cd /Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src && ./build.sh -U -T 
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/tools -m mac68k -D 
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/build tools >> 
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/build68k.log

.-Is this the correct syntax to build the toolchain on Mac OS X, and 
then (later) compile the mac68k code (also) on Mac OS X?

This is the message I get in the "terminal". I tried building as 
superuser and installing Appleīs latest developer tools (xcode 1.5) but 
the error persists.

/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/lib/libc/gen/pwcache.c:257: 
error: conflicting types for `__nbcompat_user_from_uid'
/usr/include/pwd.h:123: error: previous declaration of 
`__nbcompat_user_from_uid'

ERROR: Failed to make tools
*** BUILD ABORTED ***

Maybe -current is broken (sources are from monday, november 8th)
I have checked the releng site but I canīt find the page where the 
building status for each port was indicated...

I have also found this:

http://mail-index.netbsd.org/netbsd-bugs/2004/03/18/0008.html

Which seems like a possible cause, but I canīt really understand how to 
fix this.

Can someone confirm if I should edit the source somehow to make it 
compilable under OS X?
The above message seems to suggest so but I donīt know how to do it.

JIC, these are the last lines from the log, just before the first error:

#   compile  compat/pwcache.lo
cc -O  -no-cpp-precomp -I. -I./include 
-I/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/tools
/compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64 
-D_NETBSD_SOURCE -D__DBINTERFACE_
PRIVATE -c -o pwcache.lo.o    
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/lib/libc/gen/pwc
ache.c

*** Failed target:  pwcache.lo
*** Failed command: cc -O -no-cpp-precomp -I. -I./include 
-I/Volumes/almacen/DOWNLOAD/NETB
SD/SOURCE/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 
-D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURC
E -D__DBINTERFACE_PRIVATE -c -o pwcache.lo.o 
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/l
ib/libc/gen/pwcache.c
*** Error code 1

Stop.
nbmake: stopped in 
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/tools/compat

*** Failed target:  dependall
*** Failed command: cd 
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/tools/compat; /Volumes/
almacen/DOWNLOAD/NETBSD/SOURCE/tools/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in 
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/tools/compat

*** Failed target:  dependall-compat
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; 
shift; case "${dir}"
in /*) this="${dir}/"; real="${dir}" ;; .) this=""; 
real="/Volumes/almacen/DOWNLOAD/NETBSD
/SOURCE/src/tools" ;; *) this="${dir}/"; 
real="/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src
/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> 
${show%/}${1:+ (with: $@)}";
  cd "${real}" && 
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/tools/bin/nbmake 
_THISDIR_="${thi
s}" "$@" ${target}; }; _makedirtarget compat dependall
*** Error code 1

Stop.
nbmake: stopped in /Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/tools

Best regards:
Gerardo Alvarez


--Apple-Mail-13--526001329
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=ISO-8859-1

I have been trying to compile mac68k -current on Mac OS X.

After checking the docs I understood this is entirely possible.

So I downloaded the tarballs from
<bold><fontfamily><param>Times</param><color><param>FFF4,0000,0000</param><bigger>ftp://ftp.es.NetBSD.org/pub/NetBSD/NetBSD-current/tar_files/src/

</bigger></color></fontfamily></bold>ungzipped and untarred them in my
disk and then (adapted from a message in the list):


<bold><fontfamily><param>Courier</param><color><param>FFF4,0000,0000</param><x-tad-smaller>cd
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src && ./build.sh -U -T
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/tools -m mac68k -D
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/build tools >>
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/build68k.log

</x-tad-smaller></color></fontfamily></bold>

.-Is this the correct syntax to build the toolchain on Mac OS X, and
then (later) compile the mac68k code (also) on Mac OS X?


This is the message I get in the "terminal". I tried building as
superuser and installing Appleīs latest developer tools (xcode 1.5)
but the error persists.


/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/lib/libc/gen/pwcache.c:257:
error: conflicting types for `__nbcompat_user_from_uid'

/usr/include/pwd.h:123: error: previous declaration of
`__nbcompat_user_from_uid'


ERROR: Failed to make tools

*** BUILD ABORTED ***


Maybe -current is broken (sources are from monday, november 8th)

I have checked the releng site but I canīt find the page where the
building status for each port was indicated...


I have also found this:


http://mail-index.netbsd.org/netbsd-bugs/2004/03/18/0008.html


Which seems like a possible cause, but I canīt really understand how
to fix this.


Can someone confirm if I should edit the source somehow to make it
compilable under OS X?

The above message seems to suggest so but I donīt know how to do it.


JIC, these are the last lines from the log, just before the first
error:


#   compile  compat/pwcache.lo

cc -O  -no-cpp-precomp -I. -I./include
-I/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/tools

/compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64
-D_NETBSD_SOURCE -D__DBINTERFACE_

PRIVATE -c -o pwcache.lo.o   
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/lib/libc/gen/pwc

ache.c


*** Failed target:  pwcache.lo

*** Failed command: cc -O -no-cpp-precomp -I. -I./include
-I/Volumes/almacen/DOWNLOAD/NETB

SD/SOURCE/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1
-D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURC

E -D__DBINTERFACE_PRIVATE -c -o pwcache.lo.o
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/l

ib/libc/gen/pwcache.c

*** Error code 1


Stop.

nbmake: stopped in
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/tools/compat


*** Failed target:  dependall

*** Failed command: cd
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/tools/compat; /Volumes/

almacen/DOWNLOAD/NETBSD/SOURCE/tools/bin/nbmake realall

*** Error code 1


Stop.

nbmake: stopped in
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/tools/compat


*** Failed target:  dependall-compat

*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
shift; case "${dir}" 

in /*) this="${dir}/"; real="${dir}" ;; .) this="";
real="/Volumes/almacen/DOWNLOAD/NETBSD

/SOURCE/src/tools" ;; *) this="${dir}/";
real="/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src

/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===>
${show%/}${1:+ (with: $@)}";

 cd "${real}" &&
/Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/tools/bin/nbmake
_THISDIR_="${thi

s}" "$@" ${target}; }; _makedirtarget compat dependall

*** Error code 1


Stop.

nbmake: stopped in /Volumes/almacen/DOWNLOAD/NETBSD/SOURCE/src/tools


Best regards:

Gerardo Alvarez


--Apple-Mail-13--526001329--