From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Markus_K=F6nigshaus?= Date: Thu, 15 Mar 2012 18:50:44 +0100 Subject: [Buildroot] compiling microperl In-Reply-To: References: Message-ID: <4F622BF4.5020702@wut.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net I'm not sure, but try to /usr/bin/gcc -L/usr/local/lib -lm -o miniperl miniperlmain.o opmini.o libperl.a I think, the mathlib is missing. My colleague recently had a similar problem. your private supporter, Markus ;-) Am 15.03.2012 18:31, schrieb Charles Krinke: > I am trying to add microperl to an MPC8321 project and having a > compilation error. I have been using buildroot-2011.03 for the last > year and am nearing the end of this project and today we need to add > perl. > > We are using the CodeSourcery external glibc toolchain and it has been > working fine for a long time. This is the first package we are unable > to build. > > Here are the errors I am seeing: > make[1]: Entering directory > `/home/ckrinke/asvn/trunk/buildroot-glibc/output/build/perl-5.8.8' > /usr/bin/gcc -L/usr/local/lib -o miniperl \ > miniperlmain.o opmini.o libperl.a > libperl.a(pp.o): In function `Perl_pp_pow': > pp.c:(.text+0x283a): undefined reference to `pow' > libperl.a(pp.o): In function `Perl_pp_modulo': > pp.c:(.text+0x361f): undefined reference to `fmod' > libperl.a(pp.o): In function `Perl_pp_atan2': > pp.c:(.text+0x7e49): undefined reference to `atan2' > libperl.a(pp.o): In function `Perl_pp_sin': > pp.c:(.text+0x7f2a): undefined reference to `sin' > libperl.a(pp.o): In function `Perl_pp_cos': > pp.c:(.text+0x806a): undefined reference to `cos' > libperl.a(pp.o): In function `Perl_pp_exp': > pp.c:(.text+0x834a): undefined reference to `exp' > libperl.a(pp.o): In function `Perl_pp_log': > pp.c:(.text+0x8490): undefined reference to `log' > libperl.a(pp.o): In function `Perl_pp_sqrt': > pp.c:(.text+0x8768): undefined reference to `sqrt' > > I wonder if someone would be so kind as to offer a clue, or at least a > bread crumb to figuring this out. > -- Unsere Aussagen koennen Irrtuemer und Missverstaendnisse enthalten. Bitte pruefen Sie die Aussagen fuer Ihren Fall, bevor Sie Entscheidungen auf Grundlage dieser Aussagen treffen. Wiesemann & Theis GmbH, Porschestr. 12, D-42279 Wuppertal Geschaeftsfuehrer: Dipl.-Ing. Ruediger Theis Registergericht: Amtsgericht Wuppertal, HRB 6377 Tel. +49-202/2680-0, Fax +49-202/2680-265, http://www.wut.de