Problem compiling RTEMS for edb7312
Karel Gardas
kgardas at objectsecurity.com
Thu Nov 24 10:37:07 UTC 2005
On Thu, 24 Nov 2005, Ralf Corsepius wrote:
> On Wed, 2005-11-23 at 23:07 +0100, Frédéric PRACA wrote:
>> Hello,
>> while compiling RTEMS (HEAD version) for the edb7312, I got this error message :
>> ------------------------------------------------
>> ../../../../../../../../rtems/c/src/lib/libbsp/arm/edb7312/../../shared/console.c:
>> In function 'console_close':
>> ../../../../../../../../rtems/c/src/lib/libbsp/arm/edb7312/../../shared/console.c:134:
>> error: 'current_tty' undeclared (first use in this function)
>> ../../../../../../../../rtems/c/src/lib/libbsp/arm/edb7312/../../shared/console.c:134:
>> error: (Each undeclared identifier is reported only once
>> ../../../../../../../../rtems/c/src/lib/libbsp/arm/edb7312/../../shared/console.c:134:
>> error: for each function it appears in.)
>> gmake[6]: *** [console_rel-console.o] Erreur 1
>
>>
>> Any idea ?
> Insufficient info. These messages probably are followups to an error
> that has occurred further up.
I don't think so. I remember in the time of trying to get RTEMS working on
SkyEye emulator, I've tried edb7312 as a most closed target and also got
these errors. I needed to comment out the problematic block of code in
order to get console.c compile well. The "patch" is below.
Cheers,
Karel
Index: c/src/lib/libbsp/shared/console.c
===================================================================
RCS file: /usr1/CVS/rtems/c/src/lib/libbsp/shared/console.c,v
retrieving revision 1.12
diff -u -r1.12 console.c
--- c/src/lib/libbsp/shared/console.c 2 Sep 2005 20:29:22 -0000 1.12
+++ c/src/lib/libbsp/shared/console.c 24 Nov 2005 10:35:43 -0000
@@ -135,13 +135,13 @@
/* Get the tty refcount to determine if we need to do deviceStopRemoteTx.
* Stop only if it's the last one opened.
*/
- if ( (current_tty->refcount == 1) ) {
- if ( (args->iop->flags&LIBIO_FLAGS_READ) &&
- Console_Port_Tbl[minor].pDeviceFlow &&
- Console_Port_Tbl[minor].pDeviceFlow->deviceStopRemoteTx) {
- Console_Port_Tbl[minor].pDeviceFlow->deviceStopRemoteTx(minor);
- }
- }
+/* if ( (current_tty->refcount == 1) ) { */
+/* if ( (args->iop->flags&LIBIO_FLAGS_READ) && */
+/* Console_Port_Tbl[minor].pDeviceFlow && */
+/* Console_Port_Tbl[minor].pDeviceFlow->deviceStopRemoteTx) { */
+/* Console_Port_Tbl[minor].pDeviceFlow->deviceStopRemoteTx(minor); */
+/* } */
+/* } */
return rtems_termios_close (arg);
}
--
Karel Gardas kgardas at objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.com
More information about the users
mailing list