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]

Re: Ecos-Multiple definition of read error


> Zaheerabbas Shaukatali Contractor wrote:
> 
> Hello,
> 
> We have got latest ecos from CVS and added NET and common
> NET_ETH_DRIVERS.
> Build the ecos successfully.
> In our application, we are writing socket-based server. In this we are
> using
> read and write calls to communicate through socket.
> However we are getting compilation error for our application as follows:
> 
> /home/zaheer/ecosbuild/build/install/lib/libtarget.a(io_fileio_io.o): In
> function `isatty':
> me/zaheer/ecosbuild/build/install/lib/libtarget.a(io_fileio_io.o): In
> function `isatty':
> /home/zaheer/ecosbuild/ecos/packages/io/fileio/current/src/io.cxx:414:
> multiple definition of `read'
> /home/zaheer/ecosbuild/build/install/lib/libtarget.a(net_tcpip_read.o):/home/zaheer/ecosbuild/ecos/packages/net/tcpip/current/src/lib/read.c:65:
> first defined here
> /usr/bin/ld: Warning: size of symbol `read' changed from 74 to 29 in
> io_fileio_io.o
> /home/zaheer/ecosbuild/build/install/lib/libtarget.a(io_fileio_io.o): In
> function `isatty':
> /home/zaheer/ecosbuild/ecos/packages/io/fileio/current/src/io.cxx:414:
> multiple definition of `write'
> /home/zaheer/ecosbuild/build/install/lib/libtarget.a(net_tcpip_write.o):/home/zaheer/ecosbuild/ecos/packages/net/tcpip/current/src/lib/write.c:65:
> first defined here
> 
> Please let us know what could be the problem.

This could happen if you are using an old version of the net stack sources
which doesn't conditionally build lib/read.c in CYGPKG_NET_API_LOCAL. Look
at the configury for that option. Also do an "ecosconfig check".

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


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