This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Using socket inside a ecos driver


Hi all,
I'm trying to modify an existing ecos driver in devs/ directory.
I'd like to re-write the body-functions of the driver preserving the API.
The driver have to connect to another machine via TCP; but when I include
some socket library:
#include <unistd.h>
#include <network.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>

I get an error:


In file included from
/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/network.h:40,                 from
                 /opt/CROSSCOMPDIR/ecos/src/ecos-scmxx-new/packages/devs/tpwire/scmxx/current/src/scm_init_tpwire.c:34:/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/sys/param.h:97:
sys/simplelock.h: No such file or directory/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/sys/param.h:109:
sys/syslimits.h: No such file or directory/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/sys/param.h:139:
sys/signal.h: No such file or directory/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/sys/param.h:181:
warning: `CLSIZE' is not definedIn file included from
/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/sys/param.h:344,                 from
                 /opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/network.h:40,                 from
                 /opt/CROSSCOMPDIR/ecos/src/ecos-scmxx-new/packages/devs/tpwire/scmxx/current/src/scm_init_tpwire.c:34:/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/machine/param.h:49:
warning: `CLBYTES' redefined/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/sys/param.h:175:
warning: this is the location of the previous definitionIn file included from
/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/network.h:42,                 from
                 /opt/CROSSCOMPDIR/ecos/src/ecos-scmxx-new/packages/devs/tpwire/scmxx/current/src/scm_init_tpwire.c:34:/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/sys/ioctl.h:100:
sys/dkio.h: No such file or directory/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/sys/ioctl.h:101:
sys/filio.h: No such file or directorymake[1]: Leaving directory
`/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_build/devs/tpwire/scmxx/current'In file included from
/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/network.h:55,make: Leaving directory
`/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_build'                 from
                 /opt/CROSSCOMPDIR/ecos/src/ecos-scmxx-new/packages/devs/tpwire/scmxx/current/src/scm_init_tpwire.c:34:/opt/CROSSCOMPDIR/ecos/work-tpwireNS2/complete_scm20_install/include/bootp.h:62:
bptypes.h: No such file or directorymake[1]: *** [src/scm_init_tpwire.o.d] Error 1
make: *** [build] Error 2

Thank you very much.
Best regards.
Giovanni Perbellini



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]