[MPlayer-users] FriBiDi compilation problem

Torinthiel torinthiel at megapolis.pl
Wed Feb 22 23:50:57 CET 2006


MPlayer's configure detects my FriBiDi (fribidi-0.10.1-2 from PLD RPM),
and uses it. Problem is that it won't define fribidi_boolan and
FRIBIDI_{TRUE,FALSE}, so it won't compile.

<confugure.log extract>
============ Checking for fribidi with charsets ============
  
#include <stdio.h>
/* workaround for fribidi 0.10.4 and below */
#define FRIBIDI_CHARSET_UTF8 FRIBIDI_CHAR_SET_UTF8
#include <fribidi/fribidi.h>
int main()
{     
    if(fribidi_parse_charset("UTF-8") != FRIBIDI_CHAR_SET_UTF8) {
       printf("Fribidi headers are not consistents with the library!\n");
       exit(1);
    }
    return 0;
}

cc     -o /home/torinthiel/tmp/mplayer-conf-21121-17669.o /home/torinthiel/tmp/mplayer-conf-17288-17669.c -I/usr/include -L/usr/lib -lfribidi

ldd /home/torinthiel/tmp/mplayer-conf-21121-17669.o
    libfribidi.so.0 => /usr/lib/libfribidi.so.0 (0x40029000)
    libc.so.6 => /lib/libc.so.6 (0x4003b000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Result is: yes
</extract>

The exact error message is:

cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -g -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I/usr/include/     -I/usr/include/freetype2 -I/usr/include -I/usr/X11R6/include/SDL -D_REENTRANT -I/usr/X11R6/include   -I./libavutil -I./libavcodec   -o subreader.o subreader.c
subreader.c: In function `sub_fribidi':
subreader.c:1193: `fribidi_boolean' undeclared (first use in this function)
subreader.c:1193: (Each undeclared identifier is reported only once
subreader.c:1193: for each function it appears in.)
subreader.c:1193: parse error before `log2vis'
subreader.c:1195: `FRIBIDI_TRUE' undeclared (first use in this function)
subreader.c:1196: `FRIBIDI_FALSE' undeclared (first use in this function)
subreader.c:1213: `log2vis' undeclared (first use in this function)
make: *** [subreader.o] Błąd 1

I assume it's either a version old enough that it doesn't define/need/
those or that PLD messed something up with fribidi. If it's the first
then ./configure should detect it. If someone tells me what behaviour to
implement (i.e. define these ourselves or don't use fribidi) and what to
test for (all 3 defines, or any subset of them) then I'll make a patch
to configure (unless someone beats me doing it ;)
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: 0906A2CE fpr: EE3E DFB4 C4D6 E22E 8999  D714 7CEB CDDC 0906 A2CE
 "No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20060222/04bd451f/attachment.pgp>


More information about the MPlayer-users mailing list