This is the mail archive of the ecos-discuss@sourceware.org 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]

Re: web simple monitor (httpd) compiling error


On Fri, 2 Mar 2012, beacon88 wrote:

> i want to use embedded http server in my board (Olimex LPC-E2294 rev
> B.). For testing, I want to use web simple monitoring provided by ecos
> (monitor.c). I used the net template and added the httpd package. When
> compiling the monitor.c file, i got this error.

There is no support for this (rev. B) board in eCos AnonCVS. There is
olpce2294 target in eCos repository which is another kind of hardware.
For example, the first LPC-E2294 H/W revision had differ NIC (CS8900)
and rev. B has DM9000 chip, and etc.

> ashraf@ashraf-System-Product-Name:~/ecos-work/http11$
> /home/ashraf/ecos/gnutools/arm-eabi/bin/arm-eabi-gcc -I
> /home/ashraf/ecos-work/http7_install/include monitor.c -L
> /home/ashraf/ecos-work/http7_install/lib -T
> /home/ashraf/ecos-work/http7_install/lib/target.ld -nostdlib -o test
> 
> /home/ashraf/ecos-work/http7_install/lib/extras.o:(.ecos.table.httpd_table.data+0x0):
> multiple definition of `cyg_monitor_entry'
> /tmp/cc51qKWj.o:(.ecos.table.httpd_table.data+0x0): first defined here
 
[snip]

Where above command line (a way to build) came from?

> collect2: ld returned 1 exit status
> ashraf@ashraf-System-Product-Name:~/ecos-work/http11$ 
> 
> is there any suggestion to solve this error?

You should use a way to build eCos test as that is described in eCos
documentation http://ecos.sourceware.org/docs.html If you use CLI, that
would be

  % export TARGET=olpce2294
  % ecosconfig new $TARGET net
  % ecosconfig add httpd
  % ecosconfig tree
  % make
  % make -C net/httpd/current tests

Then you have to find `httpd1` eCos test (monitor included) under
`install/tests/net/httpd/current/tests' directory.

Of course,  it will not work on rev. B hardware, but eCos AnonCVS
sources and eCos tools is not issue. (I checked that just now).

HTH

Sergei
 

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


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