Thank you . bug fixed. 

On Wed, 2012-11-21 at 23:51 +0100, Matthieu Bec wrote:
> Hello raz,
> 
> It looks quite interesting, I hope to try it sometimes.
> 
> compilation bugged on:
> 
> > gcc -Wall -Werror -O0  -g -O2   -o ec_slave ec_slave-ec_cmd_apwr.o 
> > ec_slave-ec_cmd_aprd.o ec_slave-ec_cmd_aprw.o ec_slave-ec_cmd_armw.o 
> > ec_slave-ec_cmd_brd.o ec_slave-ec_cmd_brw.o ec_slave-ec_cmd_bwr.o 
> > ec_slave-ec_cmd_fprd.o ec_slave-ec_cmd_fprw.o ec_slave-ec_cmd_fpwr.o 
> > ec_slave-ec_cmd_frmw.o ec_slave-ec_cmd_lrw.o ec_slave-ec_cmd_lrd.o 
> > ec_slave-ec_cmd_lwr.o ec_slave-ec_sii.o ec_slave-ec_regs.o 
> > ec_slave-ec_slave.o ec_slave-ec_com.o ec_slave-ec_net.o ec_slave-ec_coe.o 
> > ec_slave-ec_mbox.o ec_slave-ec_process_data.o ec_slave-ec_debug.o -lrt 
> > -lpcap
> > /usr/bin/ld: ec_slave-ec_com.o: undefined reference to symbol 
> > 'pthread_create@@GLIBC_2.2.5'
> > /usr/bin/ld: note: 'pthread_create@@GLIBC_2.2.5' is defined in DSO 
> > /lib64/libpthread.so.0 so try adding it to the linker command line
> > /lib64/libpthread.so.0: could not read symbols: Invalid operation
> > collect2: error: ld returned 1 exit status
> 
> fixed with:
> 
> diff --git a/Makefile.am b/Makefile.am
> index 95dac3a..e1d9830 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -24,7 +24,7 @@ src/ec_mbox.c \
>   src/ec_process_data.c \
>   src/ec_debug.c
> 
> -ec_slave_CFLAGS  = -Wall -Werror -O0
> +ec_slave_CFLAGS  = -Wall -Werror -O0 -pthread
>   if HAVE_DEBUG
>   ec_slave_CFLAGS += -D__MAKE_DEBUG__
>   endif
> 
> Regards
> 
> On 11/21/12 12:25, Ben Yehuda, Raz wrote:
> > Hello etherlab users
> >
> > I wrote an open source linux virtual ethercat slave.
> >
> > $ git clone git://git.code.sf.net/p/ecslave/code ecslave
> >
> > Ecslave is "tailored" to etherlab and it provides a virtual
> > and cheap solution to set up and debug etherlab master application.
> >
> > At the moment ec_slave is user space application, but i am going to add a
> > version to kernel mode in the near future.
> >
> > wiki :
> > https://sourceforge.net/p/ecslave/wiki/Howto/
> >
> > I will be happy for debug and input.
> >
> > raz
> >
> > _______________________________________________
> > etherlab-users mailing list
> > etherlab-users@etherlab.org
> > http://lists.etherlab.org/mailman/listinfo/etherlab-users
> >
> 
> 

-- 
https://sites.google.com/site/ironspeedlinux/

_______________________________________________
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to