Subject: Re: KLH10 Compile question
To: None <ragge@ludd.luth.se>
From: bob smith <sfmc68@bellatlantic.net>
List: port-alpha
Date: 05/09/2003 12:11:17
Thanks Ragge! I will give that a shot!
vr
bob
ragge@ludd.luth.se wrote:
> The problem is that NetBSD exports the vaddr_t definition outside the
> kernel. I think the simplest way to solve it is to add -D_POSIX_C_SOURCE
> to the compiler.
> 
> -- Ragge
> 
> 
>>Sorry for the cross post but there are some gurus in boht groups who may 
>>be able to aim me the right way.
>>
>>Situation: DS10, NetBSD 1.6.1, KLH10-2.0a - Good NetBSD kernel for the 
>>DS10, no USB OHCI support, 1GB or ram, many GB of disk.
>>created a bld Makefile for NETBSD Alpha based on OSFAXP Makefile.
>>
>>Problem:  When attempting to compile, I get an error message that I 
>>can't resolve:
>>
>>In file included from ../../src/kn10def.h:168
>>klh10.c:36
>>../../src/kn10pag.h:179 confilcting types for "vaddr_t"
>>/usr/include/machine/types.h:54
>>previous declaration of "vaddr_t"
>>tks for any help.
>>Still want to have a DS10 running KLH10!!
>>vr
>>bob
>>
>>here is my Makefile:
>># KLH10 Makefile for OSF/1 (DU, Tru64) on Alpha
>># $Id: Mk-nbsdaxp.mk,v 2.3a 2003/04/09 11:00:00 rms Exp $
>>#
>>#  Copyright <A9> 2001 Kenneth L. Harrenstien
>>#  Modified by by bob smith for DS10 build of KLH10
>>#  All Rights Reserved
>>#
>>#  This file is part of the KLH10 Distribution.  Use, modification, and
>>#  re-distribution is permitted subject to the terms in the file
>>#  named "LICENSE", which contains the full text of the legal notices
>>#  and should always accompany this Distribution.
>>#
>>#  This software is provided "AS IS" with NO WARRANTY OF ANY KIND.
>>#
>>#  This notice (including the copyright and warranty disclaimer)
>>#  must be included in all copies or derivations of this software.
>>#
>>#####################################################################
>>
>># Local config setup, for OSF1/DU/Tru64 "make"!
>>#       Recursively invokes make with right params for local platform.
>>
>># Build definitions
>>
>>#       May also want -non_shared in LDFLAGS to avoid OSF version problems.
>>SRC = ../../src
>>CFLAGS = -c -g3 -O -std1 -I. -I$(SRC)
>>CFLAGS_LINT =
>>LDFLAGS =
>>LIBS = -lrt
>>
>># Source definitions
>>CENVFLAGS = -DCENV_CPU_ALPHA=1 -DCENV_SYS_NETBSD=1
>>
>># Targets
>>
>># Any target with no customized rule here is simply passed on to the
>># standard Makefile.  If no target is specified, "usage" is passed on
>># to generate a helpful printout.
>>
>>usage .DEFAULT:
>>         @make -f $(SRC)/Makefile.mk $@ \
>>             "SRC=$(SRC)" \
>>             "CFLAGS=$(CFLAGS)" \
>>             "CFLAGS_LINT=$(CFLAGS_LINT)" \
>>             "CENVFLAGS=$(CENVFLAGS)" \
>>
>>install:
>>         make -f $(SRC)/Makefile.mk install-unix
>>
>>
>>
>>
> 
> 
>