[RTEMS Project] #2364: pc386 build fails
RTEMS trac
trac at rtems.org
Tue Jun 9 16:06:13 UTC 2015
#2364: pc386 build fails
--------------------------+--------------------
Reporter: hermann19829 | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 4.11.1
Component: General | Version: 4.10
Severity: normal | Keywords: pc386
--------------------------+--------------------
When building RTEMS for pc386 ''make all'' fails after executing bootstrap
and configure by
{{{
../rtems/configure --target=i386-rtems4.11 --enable-rtemsbsp=pc386
--enable-tests=samples --disable-posix
}}}
at entering ''.../samples/hello'' with
''undefined reference to pthread_mutex_trylock'' and
''undefined reference to pthread_mutex_unlock''
When commenting lines 869-874, 891-892, 899-901 in
''development/rtems/src/rtems/c/src/lib/libbsp/i386/pc386/console/fb_vesa_rm.c
'' the build succeeds.
{{{
860 rtems_device_driver
861 frame_buffer_open(
862 rtems_device_major_number major,
863 rtems_device_minor_number minor,
864 void *arg
865 )
866 {
867 printk( FB_VESA_NAME " open device\n" );
868
869 //if (pthread_mutex_trylock(&vesa_mutex) != 0)
870 //{
871 // printk( FB_VESA_NAME " could not lock vesa_mutex\n" );
872
873 // return RTEMS_UNSATISFIED;
874 //}
875
876 return RTEMS_SUCCESSFUL;
877
878 }
879
880 /*
881 * fb_vesa device driver CLOSE entry point
882 */
883 rtems_device_driver
884 frame_buffer_close(
885 rtems_device_major_number major,
886 rtems_device_minor_number minor,
887 void *arg
888 )
889 {
890 printk( FB_VESA_NAME " close device\n" );
891 //if (pthread_mutex_unlock(&vesa_mutex) == 0)
892 //{
893 /* restore previous state. for VGA this means return to text
mode.
894 * leave out if graphics hardware has been initialized in
895 * frame_buffer_initialize() */
896
897 printk(FB_VESA_NAME ": close called.\n" );
898 return RTEMS_SUCCESSFUL;
899 //}
900
901 //return RTEMS_UNSATISFIED;
902 }
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/2364>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list