Subject:
|
Re: Proposals, Bug Fixes, etc and tracking them with SourceForge
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Sat, 30 Mar 2002 14:07:33 GMT
|
Viewed:
|
1929 times
|
| |
| |
<snip>
>
> I retrieved the latest from CVS and had problems building. I had to
remove
> the "\" from the end of some #define statements. I guess the gcc
version I
> have doesn't support (multi-line) #defines using "\" or isn't
configured to
> allow it.
>
> However, I was able to get the .srec, demos, utilities and lib(raries) to
> compile (except for printf.c).
>
> Has anyone else had this problem with the code currently in CVS (latest
> versions)?
Yes, i had the same problem using h8300-hms-gcc version 3.0.3.
I was able to solve the problem in printf.c and lnp.h(see diff below)
but I do not know why the c++ programs fail to link?
Mathias
Index: kernel/lnp.c
===================================================================
RCS file: /cvsroot/legos/legOS/kernel/lnp.c,v
retrieving revision 1.6
diff -c -r1.6 lnp.c
*** kernel/lnp.c 27 Aug 2001 17:32:35 -0000 1.6
--- kernel/lnp.c 30 Mar 2002 13:37:50 -0000
***************
*** 77,83 ****
//! there are no ports for integrity layer packets, so just one handler.
/*! FIXME: uninitialized
*/
! lnp_integrity_handler_t lnp_integrity_handler;
//! addressing layer packets may be directed to a variety of ports.
/*! FIXME: uninitialized
--- 77,83 ----
//! there are no ports for integrity layer packets, so just one handler.
/*! FIXME: uninitialized
*/
! volatile lnp_integrity_handler_t lnp_integrity_handler;
//! addressing layer packets may be directed to a variety of ports.
/*! FIXME: uninitialized
Index: lib/c/printf.c
===================================================================
RCS file: /cvsroot/legos/legOS/lib/c/printf.c,v
retrieving revision 1.1
diff -c -r1.1 printf.c
*** lib/c/printf.c 10 May 2001 17:06:02 -0000 1.1
--- lib/c/printf.c 30 Mar 2002 13:37:51 -0000
***************
*** 114,121 ****
pos--;
break;
case 'c':
!
/* character */
!
dst[pos] = va_arg(arg, char);
break;
case '\0':
case '%':
--- 114,123 ----
pos--;
break;
case 'c':
! /* character */
! /* need a cast here since va_arg only
! takes fully promoted types */
! dst[pos] = (char) va_arg(arg, int);
break;
case '\0':
case '%':
|
|
Message has 1 Reply:
Message is in Reply To:
22 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|