Skip to contentSkip to conversation

Fontconfig

Buildroot Julien Vermillard 2 participants 2 messages Jan 17, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

Look like fontconfig got a problem :

make[4]: Entering directory `/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2/fc-case'
gcc -Os -pipe -o fc-case fc-case.o
fc-case.o: In function `main':
fc-case.c:(.text+0x3e6): undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
make[4]: *** [fc-case] Error 1
make[4]: Leaving directory `/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2/fc-case' make[3]: *** [all] Error 2
make[3]: Leaving directory `/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2/fc-case' make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2' make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2'
make: *** [/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2/.compiled] Error 2

Any idea ?

Julien

#1 lore raw
Quoted 3 lines · Julien Vermillard

Hello,

Look like fontconfig got a problem :

fontconfig is completely broken:
1)
It passes the TARGET_CFLAGS down to the HOSTCC which just works out of pure luck for you.
2) It builds the host-tools fc-cache, fc-cat etc that is ment to be used on the _host_ against the target libraries and headers.

I have a patch that adds a BUILD_CFLAGS for the host-compiler, but that's only half of the story; Fontconfig does not distinguish between freetype-config for the host vs. target, so fontconfig is essentially b0rked for cross-compilation (at least IMHO).

I did not look if the CVS version on freedesktop.org fixes these obvious bugs. If it does, we should use that version instead of the release, if it doesn't than someone should better fix fontconfig to cleanly cross-compile upstream..

HTH,

Quoted 31 lines

make[4]: Entering directory `/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2/fc-case'
gcc -Os -pipe -o fc-case fc-case.o
fc-case.o: In function `main':
fc-case.c:(.text+0x3e6): undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
make[4]: *** [fc-case] Error 1
make[4]: Leaving directory `/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2/fc-case' make[3]: *** [all] Error 2
make[3]: Leaving directory `/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2/fc-case' make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2' make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2'
make: *** [/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2/.compiled] Error 2

Any idea ?

Julien

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot