[nycbug-talk] FreeBSD 5.2.1 to 5.3 compile issues
Gordon Smith
g
Fri Jun 3 12:51:50 EDT 2005
Max,
<disclaimer>
The following is intended to be generic C language compilation debugging
info, *not* FreeBSD build-specific info; I hope the info is at least
somewhat helpful.
</disclaimer>
One explanation: the nature of the error messages suggest that the source
file
aicasm_symbol.c
contains an #include directive that refers to an incorrect version of a
header file. My guess would be that you either need to obtain a different
version of one of the header files that have been #included in the C source,
or that you may need to somehow specify another include directory that would
contain the correct version of the required header file via the -I option of
the cc command.
It may be possible that a missing build directive would fix the problem by
specifying the correct header file or header file directory.
If you feel comfortable poking around in the source, you might want to get a
list of all the .h files in aicasm_symbol.c and find the directories in
which all those specific .h files are stored for your platform. Not sure
how you would then relate that to specific build directives that would
include the correct file(s)...
Bear in mind that this may only be a part of the explanation. If online
documentation and forums are of no help, as a last resort you may want to
consider contacting the FreeBSD staff responsible for porting to your
platform - but by all means, hit the forums first.
Sorry I didn't have a more direct answer.
Hope This Helps,
Gordon Smith
-----Original Message-----
From: talk-bounces at lists.nycbug.org [mailto:talk-bounces at lists.nycbug.org]
On Behalf Of max
Sent: Friday, June 03, 2005 10:57 AM
To: talk at lists.nycbug.org
Subject: [nycbug-talk] FreeBSD 5.2.1 to 5.3 compile issues
Hello,
Im trying to upgrade from 5.2.1 to 5.3 on sparc64, and the thing wont
compile. I looked for this same error on google, and I sure found plenty of
reference to this, but no solution other than "check your checked out cvs
source and re-check it out". Ill tell ya right away, that doesnt work.
I used UPDATING.64BIT and made sure time is still 32bit, so thats not that.
May be some .h files arent right
Any light on this is so appreciated..
This is on sparc ultra5:
--------------------------------------------------------------
>>> stage 2.3: build tools
--------------------------------------------------------------
cd /usr/obj/usr/src/sys/GENERIC;
MAKESRCPATH=/usr/src/sys/dev/aic7xxx/aicasm
/usr/obj/usr/src/make.sparc64/make -DNO_CPU_CFLAGS -f
/usr/src/sys/dev/aic7xxx/aicasm/Makefile
Warning: Object directory not changed from original
/usr/obj/usr/src/sys/GENERIC
cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm
-c /usr/src/sys/dev/aic7xxx/aicasm/aicasm.c
cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm
-c /usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c
Warning: Object directory not changed from original
/usr/obj/usr/src/sys/GENERIC
cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm
-c /usr/src/sys/dev/aic7xxx/aicasm/aicasm.c
cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm
-c /usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function
`symbol_delete':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:91: warning: passing arg 2
of pointer to function from incompatible pointer type
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:91: error: too few arguments
to function
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function
`symtable_open':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:135: warning: assignment
makes pointer from integer without a cast
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function
`symtable_close':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:151: error: structure has no
member named `seq'
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:151: error: `R_FIRST'
undeclared (first use in this function)
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:151: error: (Each undeclared
identifier is reported only once
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:151: error: for each
function it appears in.)
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:157: error: too few
arguments to function
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function `symtable_get':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:176: warning: passing arg 2
of pointer to function from incompatible pointer type
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:176: error: too few
arguments to function
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:189: warning: passing arg 2
of pointer to function from incompatible pointer type
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:189: error: too few
arguments to function
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function
`symtable_dump':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:486: error: `R_FIRST'
undeclared (first use in this function)
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:487: error: structure has no
member named `seq'
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:524: error: `R_NEXT'
undeclared (first use in this function)
*** Error code 1
Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
_______________________________________________
% NYC*BUG talk mailing list
http://lists.nycbug.org/mailman/listinfo/talk
%Be sure to check out our Jobs and NYCBUG-announce lists
%We meet the first Wednesday of the month
More information about the talk
mailing list