LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Wierd compiler errors (https://www.linuxquestions.org/questions/linux-newbie-8/wierd-compiler-errors-293409/)

dangerousdave 02-22-2005 10:20 AM

Wierd compiler errors
 
I'm trying to make a library called librtk and I get the following error:

../librtk/librtk.a(motion_est_mmx.o)(.text+0x9d3): In function `pix_abs8x8_xy2_mmx2':
i386/motion_est_mmx.c:118: undefined reference to `bone'
../librtk/librtk.a(motion_est_mmx.o)(.text+0xcf3): In function `pix_abs16x16_xy2_mmx2':
i386/motion_est_mmx.c:118: undefined reference to `bone'
../librtk/librtk.a(motion_est_mmx.o)(.text+0xd73):i386/motion_est_mmx.c:118: undefined reference to `bone'
../librtk/librtk.a(simple_idct_mmx.o)(.text+0x24): In function `ff_simple_idct_mmx':
i386/simple_idct_mmx.c:209: undefined reference to `wm1010'
../librtk/librtk.a(simple_idct_mmx.o)(.text+0x120):i386/simple_idct_mmx.c:209: undefined reference to `d40000'
../librtk/librtk.a(simple_idct_mmx.o)(.text+0x1de4): In function `ff_simple_idct_put_mmx':
i386/simple_idct_mmx.c:209: undefined reference to `wm1010'
../librtk/librtk.a(simple_idct_mmx.o)(.text+0x1ee0):i386/simple_idct_mmx.c:209: undefined reference to `d40000'
../librtk/librtk.a(simple_idct_mmx.o)(.text+0x3bc4): In function `ff_simple_idct_add_mmx':
i386/simple_idct_mmx.c:209: undefined reference to `wm1010'
../librtk/librtk.a(simple_idct_mmx.o)(.text+0x3cc0):i386/simple_idct_mmx.c:209: undefined reference to `d40000'
collect2: ld returned 1 exit status

I've googled and the only promising post said to use an older version of gcc, I've tried both 3.4.3 and 3.2.3 with the same error.

If its a dependency problem, I cant figure out what it needs.

This is really annoying - I've been trying for days to get it installed now - any help much appreciated,

Tinkster 02-22-2005 01:10 PM

That's not a compiler error, that's a linker error.

Most likely either a name-mangling problem or
a plain type somewhere ;0 ... impossible to assess
from that output alone, though. We'd need to see
how it's invoked, and if THAT doesn't show any-
thing obvious then we'd need to see the code.


Cheers,
Tink

J-Ho 03-28-2005 01:18 AM

Dave, I am receiving the exact same errors.

Have you been able to rectify the problem?

Any help would be much appreciated.

Cheers.

glanca 07-10-2005 02:47 PM

If you're building librtk for player and gazebo then apparently (I'm just working through this myself) you don't need libavcodec which is causing the problems so use:

Quote:

./configure --enable-python --disable-libavcodec
before you try to make.


All times are GMT -5. The time now is 12:58 AM.