Re: problems with gcc installation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



yzysea <yangjing47686@xxxxxxx> writes:

>   I need to intall gcc-2.5.8 on opensolaris. In the "make" step, I get  the
> following message: 
>
>   root@opensolaris:/export/home/sea/Desktop/gcc-2.5.8# make 
> cc  -DIN_GCC   -g     -I. -I. -I./config \ 
>  
> -DGCC_INCLUDE_DIR=\"/usr/local/gcc258/lib/gcc-lib/i386-sun-sunos5.11/2.5.8/include\"
> \ 
>   -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/gcc258/lib/g++-include\" \ 
>   -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \ 
>  
> -DCROSS_INCLUDE_DIR=\"/usr/local/gcc258/lib/gcc-lib/i386-sun-sunos5.11/2.5.8/sys-include\"
> \ 
>   -DTOOL_INCLUDE_DIR=\"/usr/local/gcc258/i386-sun-sunos5.11/include\" \ 
>   -DTOOLDIR=\"/usr/local/gcc258/i386-sun-sunos5.11/\" \ 
>   -c `echo ./cccp.c | sed 's,^\./,,'` 
> cccp.c: In function `bzero': 
> cccp.c:8966: error: argument "b" doesn't match prototype 
> cccp.c:240: error: prototype declaration 
> cccp.c: In function `bcopy': 
> cccp.c:8976: error: argument "b1" doesn't match prototype 
> cccp.c:240: error: prototype declaration 
> cccp.c:8976: error: argument "b2" doesn't match prototype 
> cccp.c:240: error: prototype declaration 
> cccp.c: In function `bcmp': 
> cccp.c:8986: error: argument "b1" doesn't match prototype 
> cccp.c:240: error: prototype declaration 
> cccp.c:8986: error: argument "b2" doesn't match prototype 
> cccp.c:240: error: prototype declaration 
> *** Error code 1 
> make: Fatal error: Command failed for target `cccp.o'
>
> I am trapped in this problem for ages.
> Can anyone give me some help?  Thanks a great deal 


Thanks for sending this message to gcc-help@xxxxxxxxxxxx  A message of
this sort should not be sent to gcc@xxxxxxxxxxxx  Please keep similar
messages to gcc-help in the future.  Thanks.

gcc 2.5.8 is very very old.  The current release is 4.4.1, and 4.4.2
is about to go out the door.  Is there any reason that you want to use
such an old release?

I don't have a copy of that ancient release, but the fix should be
pretty obvious for anybody who knows C: look at the lines in cccp.c,
and make the functions match the declarations.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux