Subject: compiling xemacs
To: None <port-sparc@NetBSD.ORG>
From: Rob Windsor <windsor@synopsys.com>
List: port-sparc
Date: 09/20/1995 22:41:00
Ugh,

I stepped in it.  (Compiling xemacs on NetBSD/sparc -current).

./configure sparc-sun-netbsd --with-gcc

I had to tweak ./src/Makefile and ./src/config.h to tell it to use
unexsunos4.c instead of unexfreebsd.c and to not use gnu malloc, but now it
complains heavily about unexsunos4.c.

Any pointers on this one?

Here's the list of complaints..

In file included from unexsunos4.c:40:
/usr/include/sys/param.h:43: warning: `BSD' redefined
./s/bsd4-3.h:37: warning: this is the location of the previous definition
In file included from /usr/include/sys/exec.h:210, from /usr/include/a.out.h:42, from unexsunos4.c:47:
/usr/include/sys/exec_aout.h:140: warning: `N_BSSADDR' redefined
./s/netbsd.h:50: warning: this is the location of the previous definition
unexsunos4.c:66: warning: `relocation_info' redefined
/usr/include/machine/exec.h:58: warning: this is the location of the previous definition
unexsunos4.c:95: warning: `struct reloc_info_sparc' declared inside parameter list
unexsunos4.c:95: warning: its scope is only this definition or declaration,
unexsunos4.c:95: warning: which is probably not what you want.
unexsunos4.c:105: conflicting types for `sys_errlist'
/usr/include/stdio.h:237: previous declaration of `sys_errlist'
unexsunos4.c:298: warning: `struct reloc_info_sparc' declared inside parameter list
unexsunos4.c:299: conflicting types for `copy_relocation_site'
unexsunos4.c:95: previous declaration of `copy_relocation_site'
unexsunos4.c: In function `copy_relocation_site':
unexsunos4.c:300: dereferencing pointer to incomplete type
unexsunos4.c:307: dereferencing pointer to incomplete type
unexsunos4.c:355: dereferencing pointer to incomplete type
unexsunos4.c: In function `unexec':
unexsunos4.c:465: dereferencing pointer to incomplete type
unexsunos4.c:466: dereferencing pointer to incomplete type
unexsunos4.c:484: dereferencing pointer to incomplete type
unexsunos4.c:484: dereferencing pointer to incomplete type
unexsunos4.c:573: dereferencing pointer to incomplete type
unexsunos4.c:574: dereferencing pointer to incomplete type
unexsunos4.c:575: dereferencing pointer to incomplete type
unexsunos4.c:586: dereferencing pointer to incomplete type
unexsunos4.c:588: dereferencing pointer to incomplete type
unexsunos4.c:600: warning: passing arg 1 of `copy_relocation_site' from incompatible pointer type
unexsunos4.c:601: increment of pointer to unknown structure
*** Error code 1

-- Rob
----------------------------------------
Internet:  windsor@synopsys.com
Life:      Rob@NCS.Synopsys.Mountain_View.California.USA.Earth
 
"Life's a journey, not a destination."  -- Aerosmith (1993), 'Amazing'