Frederic Crozat
2005-Nov-21 08:50 UTC
[Fontconfig] Fontconfig or FreeType broken (was Re: Build Issue)
Le lun 03/05/2004 ? 23:06, Fr?d?ric L. W. Meunier a ?crit :> On Sat, 24 Apr 2004, Jeff Prickett wrote: > > > ../src/.libs/libfontconfig.so: undefined reference to `MAX'' > > ../src/.libs/libfontconfig.so: undefined reference to `ABS'' > > ../src/.libs/libfontconfig.so: undefined reference to `MIN'' > > At the time I exchanged some e-mails with Jeff, sent one to > this mailing-list (which never made into), later sent one to > the Freetype mailing-list (no replies, see > http://www.freetype.org/pipermail/freetype/2004-April/007042.html), > and another to Keith. > > At least another person has the same problem - see > http://linuxquestions.org/questions/history/172177 . I don''t > know what''s broken, but I assume FreeType or Fontconfig are.It is because Freetype 2.1.8 has renamed ABS, MAX and MIN macros to FT_ABS, FT_MAX and FT_MIN. Try the attached patch, it fixes the build. -- Frederic Crozat <fcrozat@mandrakesoft.com> Mandrakesoft -------------- next part -------------- A non-text attachment was scrubbed... Name: fontconfig-freetype218.patch Type: text/x-patch Size: 672 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20040504/3a09109c/fontconfig-freetype218.bin
Frédéric L. W. Meunier
2005-Nov-21 08:50 UTC
[Fontconfig] Fontconfig or FreeType broken (was Re: Build Issue)
On Sat, 24 Apr 2004, Jeff Prickett wrote:> ../src/.libs/libfontconfig.so: undefined reference to `MAX'' > ../src/.libs/libfontconfig.so: undefined reference to `ABS'' > ../src/.libs/libfontconfig.so: undefined reference to `MIN''At the time I exchanged some e-mails with Jeff, sent one to this mailing-list (which never made into), later sent one to the Freetype mailing-list (no replies, see http://www.freetype.org/pipermail/freetype/2004-April/007042.html), and another to Keith. At least another person has the same problem - see http://linuxquestions.org/questions/history/172177 . I don''t know what''s broken, but I assume FreeType or Fontconfig are. -- http://www.pervalidus.net/contact.html
I am attempting to build fontconfig from source. Configure works fine, but I get the following error when I type make gcc -g -O2 -o .libs/fc-cache fc-cache.o ../src/.libs/libfontconfig.so ../src/.libs/libfontconfig.so: undefined reference to `MAX'' ../src/.libs/libfontconfig.so: undefined reference to `ABS'' ../src/.libs/libfontconfig.so: undefined reference to `MIN'' collect2: ld returned 1 exit status make[2]: *** [fc-cache] Error 1 make[2]: Leaving directory `/home/prickett/build/fontconfig-2.2.94/fc-cache'' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/prickett/build/fontconfig-2.2.94'' make: *** [all] Error 2 I am running Suse 8.1 and the xdevel rpm is installed, which from what I can tell is where MAX and MIN are defined. I dont know where ABS is defined. Any help is greatly appreciated Thanks Jeff Prickett