From: Koen P. <at...@ce...> - 2005-10-20 14:01:20
|
Hi Alex, I believe we should get this patch integrated in the linux-atm distribution. Most of the action in ATM is probably in embedded, and we have to fix this one each time again. Alex Zeffertt wrote: > Hi Steven, > > I've just dug up this patch. I remember now I needed to apply this to > get linux-atm to cross-compile. It works around the fact that > linux-atm builds some binaries to run on the host (as part of the > compile process) rather than the target. > > Alex > > > On Thu, 20 Oct 2005 11:10:04 +0200 > Steven Geerts <Ste...@th...> wrote: > > >>Thanks >> >>I'm getting there step by step! Following is the next problem, >>maybe it's related to the fact I'm cross-compiling???? >> >>mkdir .libs >>arm-none-linux-gnueabi-gcc -I../../src/include -Wall -Wshadow >>-Wpointer-arith -Wwrite-strings -Wstrict-prototypes -o qgen common.o >>file.o first.o ql_y.o ql_l.o qgen.o second.o third.o >>-L/tmp/test/lib-lfl >>cat ./uni.h /usr/include/linux/atmsap.h | /usr/bin/perl ./mknl.pl >>atm_ai_msg atm_ai_ie atm_loc atm_cv atm_pu atm_na atm_cond atm_ie >>atm_msg atm_np atm_ton atm_sat atm_prs atm_scrn atm_vpa atm_poe >>q2931_cs atm_td atm_bc atm_tc atm_stc atm_upcc q2931_proto atm_flag >>atm_aalp atm_fd atm_tag atm_l2 atm_l3 atm_tt atm_mc atm_hl atm_imd >>atm_tdl atm_tni atm_nip atm_shi atm_oci atm_unfm atm_ofi atm_irs >>atm_it atm_lit atm_lsi atm_tcs atm_css atm_eqo atm_eqp atm_aap >>atm_asp atm_tor >> >>>default.nl || \ >> >>{ rm -f default.nl; echo 1; } >>arm-none-linux-gnueabi-gcc -E -DHAVE_CONFIG_H -I. -I. -I../.. - >>< ./msg.fmt | ./qgen -D >>/bin/sh: ./qgen: cannot execute binary file >><stdin>:93:1: pasting "}" and "fw_pcr_0" does not give a valid >>preprocessing token >><stdin>:93:1: pasting "}" and "bw_pcr_0" does not give a valid >>preprocessing token >><stdin>:93:1: pasting "}" and "fw_pcr_01" does not give a valid >>preprocessing token >><stdin>:93:1: pasting "}" and "bw_pcr_01" does not give a valid >>preprocessing token >><stdin>:93:1: pasting "}" and "fw_scr_0" does not give a valid >>preprocessing token >><stdin>:93:1: pasting "}" and "bw_scr_0" does not give a valid >>preprocessing token >><stdin>:93:1: pasting "}" and "fw_scr_01" does not give a valid >>preprocessing token >><stdin>:93:1: pasting "}" and "bw_scr_01" does not give a valid >>preprocessing token >><stdin>:93:1: pasting "}" and "fw_mbs_0" does not give a valid >>preprocessing token >><stdin>:93:1: pasting "}" and "bw_mbs_0" does not give a valid >>preprocessing token >><stdin>:93:1: pasting "}" and "fw_mbs_01" does not give a valid >>preprocessing token >><stdin>:93:1: pasting "}" and "bw_mbs_01" does not give a valid >>preprocessing token >><stdin>:93:1: pasting "}" and "best_effort" does not give a valid >>preprocessing token >><stdin>:138:3: invalid preprocessing directive #Note >><stdin>:139:9: invalid preprocessing directive #to >>make[3]: *** [qd.dump.c] Error 126 >>make[3]: Leaving directory >>`/vobs/venus/sw_drivers/aal5/linux-atm-2.5.0/src/qgen' >>make[2]: *** [all-recursive] Error 1 >>make[2]: Leaving directory >>`/vobs/venus/sw_drivers/aal5/linux-atm-2.5.0/src' >>make[1]: *** [all-recursive] Error 1 >>make[1]: Leaving directory >>`/vobs/venus/sw_drivers/aal5/linux-atm-2.5.0' make: *** [all] Error >>2 >> >> >>On Thu, 2005-10-20 at 09:48 +0100, Alex Zeffertt wrote: >> >>>On Thu, 20 Oct 2005 10:39:59 +0200 >>>Steven Geerts <Ste...@th...> wrote: >>> >>> >>>>Hi I get following compilation error while building atm tools >>>>for arm: >>>> >>>>In file included from ispl_l.l:7: >>>>../../config.h:15:1: warning: "YY_USE_CONST" redefined >>>>ispl_l.c:38:1: warning: this is the location of the previous >>>>definition lex.yy.c:1343: warning: 'yyunput' defined but not >>>>used/bin/sh ../../libtool --mode=link arm-none-linux-gnueabi-gcc >>>>-I../../src/include -g -O2 -Wall -Wshadow -Wpointer-arith >>>>-Wwrite-strings -Wstrict-prototypes -o isp isp.o ispl_y.o >>>>ispl_l.o ../../src/lib/libatm.la -lfl >>>>arm-none-linux-gnueabi-gcc -I../../src/include -g -O2 -Wall >>>>-Wshadow-Wpointer-arith -Wwrite-strings -Wstrict-prototypes -o >>>>.libs/isp isp.o ispl_y.o ispl_l.o ../../src/lib/.libs/libatm.so >>>>-lresolv -lfl-Wl,--rpath -Wl,/usr/local/lib >>>>/TOOLS/arm-none-linux-gnueabi/bin/../lib/gcc/arm-none-linux-gnu >>>>eabi/3.4.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot >>>>find -lfl collect2: ld returned 1 exit status make[3]: *** [isp] >>>>Error 1 make[3]: Leaving directory >>>>`/vobs/venus/sw_drivers/aal5/linux-atm-2.4.1/src/test' >>>>make[2]: *** [all-recursive] Error 1 >>>>make[2]: Leaving directory >>>>`/vobs/venus/sw_drivers/aal5/linux-atm-2.4.1/src' >>>>make[1]: *** [all-recursive] Error 1 >>>>make[1]: Leaving directory >>>>`/vobs/venus/sw_drivers/aal5/linux-atm-2.4.1' make: *** >>>>[all-recursive-am] Error 2 >>>> >>>>I use gcc 3.4.3 but even with 3.4.4 this gives the same error, >>>>anybody any idea on how to solve this and what the error might >>>>mean? >>>> >>>>tnx >>> >>> >>>libfl.a belongs to the flex package. Look for the flex source and >>>cross compile it. Then run configure with >>> >>> CC=cross-compiler CFLAGS="-Lpath/to/lib/flex" ./configure >>> --host=blah >>>--build=blah2 >>> >>>Alex >> >>Steven Geerts >>Thomson Silicon Components >>SW Field Application Engineer >> >> >>___________________________________________________________________ >>_____ mail : ste...@th... >>phone: +32-3-443-6-543 >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: >>Power Architecture Resource Center: Free content, downloads, >>discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl >>_______________________________________________ >>Linux-atm-general mailing list >>Lin...@li... >>https://lists.sourceforge.net/lists/listinfo/linux-atm-general > > -- ------------------------------------------------- Koen Peeters Cellink bvba Catherinalaan 37, 3110 Rotselaar, Belgium web : http://www.cellink.net/ |