Message-ID: <000d01c61e6b$6eac2ff0$0200a8c0@domain.hid> From: "Marco Cavallini" References: <200601192212.45556.niklaus.giger@domain.hid><17360.3999.645581.227559@domain.hid> <200601202243.46640.niklaus.giger@domain.hid> Subject: Re: [Xenomai-core] Problems generating vxworks/koan in two step: ccand link Date: Sat, 21 Jan 2006 10:16:56 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Reply-To: Marco Cavallini List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: niklaus.giger@domain.hid, Gilles Chanteperdrix Cc: xenomai-core ----- Original Message ----- From: "Niklaus Giger" To: "Gilles Chanteperdrix" Cc: "xenomai-core" Sent: Friday, January 20, 2006 10:43 PM Subject: Re: [Xenomai-core] Problems generating vxworks/koan in two step: ccand link > Am Donnerstag, 19. Januar 2006 23:15 schrieb Gilles Chanteperdrix: >> Niklaus Giger wrote: >> > ld -o koan -L/usr/xenomai/lib -luvm -lnucleus -lpthread -lvxworks >> > -lnative -e __xeno_skin_init >> > /home/hcu/project/bb/3_1_x/work/xeno/koan.o Now I get the following >> > error output >> > ld: warning: cannot find entry symbol __xeno_skin_init; defaulting to >> > 00000000100002a0 >> > /home/hcu/project/bb/3_1_x/work/xeno/koan.o: In function >> > `TaskTest':koan.c: (.text+0xbc): undefined reference to `semTake' >> > /home/hcu/project/bb/3_1_x/work/xeno/koan.o: In function >> > `CreateTask':koan.c: (.text+0x124): undefined reference to `taskSpawn' >> > /home/hcu/project/bb/3_1_x/work/xeno/koan.o: In function >> > `usrClock':koan.c: (.text+0x1c8): undefined reference to `semGive' >> > >> > :koan.c:(.text+0x1f0): undefined reference to `tickAnnounce' >> > >> > /home/hcu/project/bb/3_1_x/work/xeno/koan.o: In function >> > `koan_sysClkInit':koan.c:(.text+0x224): undefined reference to >> > `semBCreate' >> > >> > :koan.c:(.text+0x23c): undefined reference to `sysClkConnect' >> > :koan.c:(.text+0x240): undefined reference to `sysClkEnable' >> > >> > /home/hcu/project/bb/3_1_x/work/xeno/koan.o: In function >> > `__xeno_user_exit':koan.c:(.text+0x2c0): undefined reference to >> > `taskDelete' >> > >> > What is wrong with my split? >> >> What happens if you try : >> >> cc -u __xeno_skin_init -o >> koan -L/usr/xenomai/lib -luvm -lnucleus -lpthread >> -lvxworks -lnative /home/hcu/project/bb/3_1_x/work/xeno/koan.o >> >> -u seems to be a link-time option. > Thanks for the tip. This fixes my problem. > Niklaus, I never tried building vxworks/koan since fusion-0.9.1 becomed xenomai what about building other vxworks sample tests ? Best regards Marco Cavallini Koan s.a.s. - Bergamo - ITALIA Embedded and Real-Time Software Engineering www.koansoftware.com | www.klinux.org