Makefile problem was Re: make fileio example???
Joel Sherrill
joel.sherrill at OARcorp.com
Fri Jun 6 16:58:30 UTC 2003
Thomas ..
Where is ata.h they supposed to be installed? Said
another way how is it to be included by other code?
I don't see fsmount.h in the current RTEMS source tree.
Where is it supposed to come from?
--joel
Thomas Doerfler wrote:
>
> Hello David,
>
> it seems, the files "ata.h" and "fsmount.h" are not, where
> they should be. There was a problem I think that these files
> have not been installed during "make install". As a
> workaround, if you copy these files to your project,
> everything should be fine.
>
> Ralf, can you have a look at these two files (and the
> appropriate auto* files)?
>
> wkr,
> Thomas.
>
> > hello all:
> >
> > I want to make fileio example.
> > I have build and install rtems-4.6.0pre3 successfully,
> > and then copy fileio source code files to
> > test/samples/fileio.
> > when make,i got errors as below:
> >
> > administratorrtems at RTEMS
> > ~/rtems-4.6.0pre3/c/src/tests/samples/fileioexampl
> > $ make
> > i386-rtems-gcc --pipe
> > -B/opt/rtems-4.6.0pre3/i386-rtems/pc386/lib/ -specs b
> > ll -O4 -g -c -o o-optimize/init.o init.c
> > In file included from init.c:24:
> > system.h:30:54: rtems/ata.h: No such file or directory
> > In file included from init.c:24:
> > system.h:49: `ATA_DRIVER_TABLE_ENTRY' undeclared here
> > (not in a function)
> > system.h:49: initializer element is not constant
> > system.h:49: (near initialization for
> > `Device_drivers[3]')
> > init.c:37:27: rtems/fsmount.h: No such file or
> > directory
> > init.c:44: parse error before "fs_table"
> > init.c:44: warning: type defaults to `int' in
> > declaration of `fs_table'
> > init.c:45: warning: braces around scalar initializer
> > init.c:45: warning: (near initialization for
> > `fs_table[0]')
> > init.c:46: warning: initialization makes integer from
> > pointer without a cas
> > init.c:46: warning: excess elements in scalar
> > initializer
> > init.c:46: warning: (near initialization for
> > `fs_table[0]')
> > init.c:47: warning: excess elements in scalar
> > initializer
> > init.c:47: warning: (near initialization for
> > `fs_table[0]')
> > init.c:47: warning: excess elements in scalar
> > initializer
> > init.c:47: warning: (near initialization for
> > `fs_table[0]')
> > init.c:48: `FSMOUNT_MNT_OK' undeclared here (not in a
> > function)
> > init.c:48: `FSMOUNT_MNTPNT_CRTERR' undeclared here
> > (not in a function)
> > init.c:48: `FSMOUNT_MNT_FAILED' undeclared here (not
> > in a function)
> > init.c:48: warning: excess elements in scalar
> > initializer
> > init.c:48: warning: (near initialization for
> > `fs_table[0]')
> > init.c:50: warning: excess elements in scalar
> > initializer
> > init.c:50: warning: (near initialization for
> > `fs_table[0]')
> > init.c:51: warning: braces around scalar initializer
> > init.c:51: warning: (near initialization for
> > `fs_table[1]')
> > init.c:52: warning: initialization makes integer from
> > pointer without a cas
> > init.c:52: warning: excess elements in scalar
> > initializer
> > init.c:52: warning: (near initialization for
> > `fs_table[1]')
> > init.c:53: warning: excess elements in scalar
> > initializer
> > init.c:53: warning: (near initialization for
> > `fs_table[1]')
> > init.c:53: warning: excess elements in scalar
> > initializer
> > init.c:53: warning: (near initialization for
> > `fs_table[1]')
> > init.c:54: `FSMOUNT_MNT_OK' undeclared here (not in a
> > function)
> > init.c:54: `FSMOUNT_MNTPNT_CRTERR' undeclared here
> > (not in a function)
> > init.c:54: `FSMOUNT_MNT_FAILED' undeclared here (not
> > in a function)
> > init.c:54: warning: excess elements in scalar
> > initializer
> > init.c:54: warning: (near initialization for
> > `fs_table[1]')
> > init.c:56: warning: excess elements in scalar
> > initializer
> > init.c:56: warning: (near initialization for
> > `fs_table[1]')
> > init.c:57: warning: braces around scalar initializer
> > init.c:57: warning: (near initialization for
> > `fs_table[2]')
> > init.c:58: warning: initialization makes integer from
> > pointer without a cas
> > init.c:58: warning: excess elements in scalar
> > initializer
> > init.c:58: warning: (near initialization for
> > `fs_table[2]')
> > init.c:59: warning: excess elements in scalar
> > initializer
> > init.c:59: warning: (near initialization for
> > `fs_table[2]')
> > init.c:59: warning: excess elements in scalar
> > initializer
> > init.c:59: warning: (near initialization for
> > `fs_table[2]')
> > init.c:60: `FSMOUNT_MNT_OK' undeclared here (not in a
> > function)
> > init.c:60: `FSMOUNT_MNTPNT_CRTERR' undeclared here
> > (not in a function)
> > init.c:60: `FSMOUNT_MNT_FAILED' undeclared here (not
> > in a function)
> > init.c:60: warning: excess elements in scalar
> > initializer
> > init.c:60: warning: (near initialization for
> > `fs_table[2]')
> > init.c:62: warning: excess elements in scalar
> > initializer
> > init.c:62: warning: (near initialization for
> > `fs_table[2]')
> > init.c:63: warning: braces around scalar initializer
> > init.c:63: warning: (near initialization for
> > `fs_table[3]')
> > init.c:64: warning: initialization makes integer from
> > pointer without a cas
> > init.c:64: warning: excess elements in scalar
> > initializer
> > init.c:64: warning: (near initialization for
> > `fs_table[3]')
> > init.c:65: warning: excess elements in scalar
> > initializer
> > init.c:65: warning: (near initialization for
> > `fs_table[3]')
> > init.c:65: warning: excess elements in scalar
> > initializer
> > init.c:65: warning: (near initialization for
> > `fs_table[3]')
> > init.c:66: `FSMOUNT_MNT_OK' undeclared here (not in a
> > function)
> > init.c:66: `FSMOUNT_MNTPNT_CRTERR' undeclared here
> > (not in a function)
> > init.c:66: `FSMOUNT_MNT_FAILED' undeclared here (not
> > in a function)
> > init.c:66: warning: excess elements in scalar
> > initializer
> > init.c:66: warning: (near initialization for
> > `fs_table[3]')
> > init.c:68: warning: excess elements in scalar
> > initializer
> > init.c:68: warning: (near initialization for
> > `fs_table[3]')
> > init.c:69: warning: braces around scalar initializer
> > init.c:69: warning: (near initialization for
> > `fs_table[4]')
> > init.c:70: warning: initialization makes integer from
> > pointer without a cas
> > init.c:70: warning: excess elements in scalar
> > initializer
> > init.c:70: warning: (near initialization for
> > `fs_table[4]')
> > init.c:71: warning: excess elements in scalar
> > initializer
> > init.c:71: warning: (near initialization for
> > `fs_table[4]')
> > init.c:71: warning: excess elements in scalar
> > initializer
> > init.c:71: warning: (near initialization for
> > `fs_table[4]')
> > init.c:72: `FSMOUNT_MNT_OK' undeclared here (not in a
> > function)
> > init.c:72: `FSMOUNT_MNTPNT_CRTERR' undeclared here
> > (not in a function)
> > init.c:72: `FSMOUNT_MNT_FAILED' undeclared here (not
> > in a function)
> > init.c:72: warning: excess elements in scalar
> > initializer
> > init.c:72: warning: (near initialization for
> > `fs_table[4]')
> > init.c:74: warning: excess elements in scalar
> > initializer
> > init.c:74: warning: (near initialization for
> > `fs_table[4]')
> > init.c:75: warning: braces around scalar initializer
> > init.c:75: warning: (near initialization for
> > `fs_table[5]')
> > init.c:76: warning: initialization makes integer from
> > pointer without a cas
> > init.c:76: warning: excess elements in scalar
> > initializer
> > init.c:76: warning: (near initialization for
> > `fs_table[5]')
> > init.c:77: warning: excess elements in scalar
> > initializer
> > init.c:77: warning: (near initialization for
> > `fs_table[5]')
> > init.c:77: warning: excess elements in scalar
> > initializer
> > init.c:77: warning: (near initialization for
> > `fs_table[5]')
> > init.c:78: `FSMOUNT_MNT_OK' undeclared here (not in a
> > function)
> > init.c:78: `FSMOUNT_MNTPNT_CRTERR' undeclared here
> > (not in a function)
> > init.c:78: `FSMOUNT_MNT_FAILED' undeclared here (not
> > in a function)
> > init.c:78: warning: excess elements in scalar
> > initializer
> > init.c:78: warning: (near initialization for
> > `fs_table[5]')
> > init.c:80: warning: excess elements in scalar
> > initializer
> > init.c:80: warning: (near initialization for
> > `fs_table[5]')
> > init.c:81: warning: braces around scalar initializer
> > init.c:81: warning: (near initialization for
> > `fs_table[6]')
> > init.c:82: warning: initialization makes integer from
> > pointer without a cas
> > init.c:82: warning: excess elements in scalar
> > initializer
> > init.c:82: warning: (near initialization for
> > `fs_table[6]')
> > init.c:83: warning: excess elements in scalar
> > initializer
> > init.c:83: warning: (near initialization for
> > `fs_table[6]')
> > init.c:83: warning: excess elements in scalar
> > initializer
> > init.c:83: warning: (near initialization for
> > `fs_table[6]')
> > init.c:84: `FSMOUNT_MNT_OK' undeclared here (not in a
> > function)
> > init.c:84: `FSMOUNT_MNTPNT_CRTERR' undeclared here
> > (not in a function)
> > init.c:84: `FSMOUNT_MNT_FAILED' undeclared here (not
> > in a function)
> > init.c:84: warning: excess elements in scalar
> > initializer
> > init.c:84: warning: (near initialization for
> > `fs_table[6]')
> > init.c:86: warning: excess elements in scalar
> > initializer
> > init.c:86: warning: (near initialization for
> > `fs_table[6]')
> > init.c:87: warning: braces around scalar initializer
> > init.c:87: warning: (near initialization for
> > `fs_table[7]')
> > init.c:88: warning: initialization makes integer from
> > pointer without a cas
> > init.c:88: warning: excess elements in scalar
> > initializer
> > init.c:88: warning: (near initialization for
> > `fs_table[7]')
> > init.c:89: warning: excess elements in scalar
> > initializer
> > init.c:89: warning: (near initialization for
> > `fs_table[7]')
> > init.c:89: warning: excess elements in scalar
> > initializer
> > init.c:89: warning: (near initialization for
> > `fs_table[7]')
> > init.c:90: `FSMOUNT_MNT_OK' undeclared here (not in a
> > function)
> > init.c:90: `FSMOUNT_MNTPNT_CRTERR' undeclared here
> > (not in a function)
> > init.c:90: `FSMOUNT_MNT_FAILED' undeclared here (not
> > in a function)
> > init.c:90: warning: excess elements in scalar
> > initializer
> > init.c:90: warning: (near initialization for
> > `fs_table[7]')
> > init.c:92: warning: excess elements in scalar
> > initializer
> > init.c:92: warning: (near initialization for
> > `fs_table[7]')
> > init.c:93: warning: data definition has no type or
> > storage class
> > init.c: In function `fileio_fsmount':
> > init.c:157: warning: implicit declaration of function
> > `rtems_fsmount'
> > make: *** [o-optimize/init.o] Error 1
> >
> > later ,i patch pr369_fileio_sample_fsmount.diff,but i
> > got some Hunk FAILED...
> >
> > how can i get fileio example running?
> > Thanks !
> >
> > David wu
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Á÷Á¬ÍøÂçÊÀ½çµÄ¡°Ä㡱ÊÇË£¿
> > http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/cn_user_profile_study_may2003
>
> --------------------------------------------
> IMD Ingenieurbuero fuer Microcomputertechnik
> Thomas Doerfler Herbststrasse 8
> D-82178 Puchheim Germany
> email: Thomas.Doerfler at imd-systems.de
> PGP public key available at: http://www.imd-
> systems.de/pgp_keys.htm
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list