Subject: cross compiler
To: i386 NetBSD Mailing List <port-i386@NetBSD.ORG>
From: Brian Hechinger <wonko@blackhole.arkham.net>
List: port-i386
Date: 06/14/1997 01:17:41
ok, started trying to compile the cross-compiler.  got as far as cccp.c and
then it puked with an error about how sys_errlist was getting redefined.

out of cccp.c:

#if defined(bsd4_4)
extern const char *const sys_errlist[];
#else
extern char *sys_errlist[];
#endif

we are svsv here and not bsd4_4, so cccp.c is trying to use: extern char 
*sys_errlist[];

well, /usr/include/errno.h has already defined the BSD style sys_errlist[]
as: extern const char *const sys_errlist[]; 

after i commented out that line in errno.h the compile got further along, but
now i have a new problem:

root@blackhole> make CFLAGS="-g -mv8 -O2"
cc -DCROSS_COMPILE -DIN_GCC -DSVR4  -g -mv8 -O2   -o cccp cccp.o cexp.o \
  version.o obstack.o ` case "cc" in "cc") echo "alloca.o" ;; esac `  
Undefined                       first referenced
 symbol                             in file
_ctype_                             cccp.o
__srget                             cccp.o
__sF                                cccp.o
__swbuf                             cccp.o
ld: fatal: Symbol referencing errors. No output written to cccp
make: *** [cccp] Error 1
root@blackhole> 

what is going on here??  what am i missing??  is there a library that gcc isn't
picking up on? if so why? it worked fine before i set the gcc source tree to
do a cross-compiler.

thanks,

-brian

-- 
** Brian Hechinger ** wonko@mail.arkham.net ** http://www.arkham.net **
--
"Color is for web wanking.  mono is for writing code.  Gimme a Mono Sun 3 and 
an expresso machine any day :-)"

						-Bob Beck