Subject: Re: cross compile on solaris fails using SunStudio Compiler
To: None <current-users@NetBSD.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 09/07/2006 00:29:17
On Wed, Sep 06, 2006 at 11:32:59PM +0200, Alan Barrett wrote:
> On Wed, 06 Sep 2006, Kurt Schreiner wrote:
> > > Where does sys/cdefs.h come from?
> > > Surely it is not supposed to be empty?
> > Hm, I really have no idea. But there are more empty header files -
> > without negative effects on cross compiling AFAICS. So maybe it's
> > (supposed to be) ok?
> 
> src/tools/compat creates empty header files.
> 
> src/tools/compat/compat_defs.h seems to be the right place to add
> a definition for __inline.  Add it at the end of the section
> labeled "Some things usually in BSD <sys/cdefs.h>."
Yep! That does the trick! makefs compiles fine now (besides some
"warning: invalid white space character in directive")...
Thanks a lot!

...But next file failing to compile is 
    compile  mkcsmapper/yacc.lo
"/u/NetBSD/src/tools/mkcsmapper/../../usr.bin/mkcsmapper/yacc.y", line 36: warning: syntax error:  empty declaration
"/u/NetBSD/src/lib/libc/citrus/modules/citrus_mapper_std_file.h", line 48: syntax error before or at: :
"/u/NetBSD/src/lib/libc/citrus/modules/citrus_mapper_std_file.h", line 48: warning: old-style declaration or incorrect type for: no
"/u/NetBSD/src/lib/libc/citrus/modules/citrus_mapper_std_file.h", line 48: warning: old-style declaration or incorrect type for: __packed
"/u/NetBSD/src/lib/libc/citrus/modules/citrus_mapper_std_file.h", line 48: warning: old-style declaration or incorrect type for: this
"/u/NetBSD/src/lib/libc/citrus/modules/citrus_mapper_std_file.h", line 48: warning: old-style declaration or incorrect type for: compiler
"/u/NetBSD/src/lib/libc/citrus/modules/citrus_mapper_std_file.h", line 58: identifier redeclared: error
        current : struct _citrus_mapper_std_rowcol_ext_ilseq_info_x {unsigned int eix_oob_mode, unsigned int eix_dst_ilseq}
        previous: struct _citrus_mapper_std_rowcol_info_x {unsigned int rcx_src_col_bits, unsigned int rcx_dst_invalid, unsigned int rcx_src_row_begin, unsigned int rcx_src_row_end, unsigned int rcx_src_col_begin, unsigned int rcx_src_col_end, unsigned int rcx_dst_unit_bits, unsigned int rcx_pad} : "/u/NetBSD/src/lib/libc/citrus/modules/citrus_mapper_std_file.h", line 48
"/u/NetBSD/src/lib/libc/citrus/modules/citrus_mapper_std_file.h", line 58: syntax error before or at: :
"/u/NetBSD/src/lib/libc/citrus/modules/citrus_mapper_std_file.h", line 58: warning: old-style declaration or incorrect type for: no
"/u/NetBSD/src/lib/libc/citrus/modules/citrus_mapper_std_file.h", line 58: warning: old-style declaration or incorrect type for: __packed
"/u/NetBSD/src/lib/libc/citrus/modules/citrus_mapper_std_file.h", line 58: warning: old-style declaration or incorrect type for: this
"/u/NetBSD/src/lib/libc/citrus/modules/citrus_mapper_std_file.h", line 58: warning: old-style declaration or incorrect type for: compiler
cc: acomp failed for yacc.c

But it's late in the night here. I'll have a look tomorrow what's going on...

Kurt