[tex-live] build failure in texk/web2c/xetexdir

Jukka Salmi j+tex-live at 2008.salmi.ch
Wed Oct 29 15:06:02 CET 2008


Werner LEMBERG --> tex-live (2008-10-29 09:19:45 +0100):
> Hmm.  Almost all header files of FreeType 2 contain the following code
> to abort if FreeType 1 has been loaded previously:
> 
>   #ifdef FREETYPE_H
>   #error "freetype.h of FreeType 1 has been loaded!"
>   #error "Please fix the directory search order for header files"
>   #error "so that freetype.h of FreeType 2 is found first."
>   #endif
> 
> I wonder why you haven't seen this message.

I don't know. It's definitely not output, thus I guess the FreeType 2
headers are not read at all because a freetype/freetype.h has already
been found.

While trying to fix this (without having much knowledge of autoconf et
al.) I noticed that if I don't explicitly set CPPFLAGS when calling TL's
Build script, autoconf tests checking for the usability of a header file
fail while the test for the presence of the same file succeeds; e.g. gd.h:

  checking gd.h usability... no
  checking gd.h presence... yes
  configure: WARNING: gd.h: present but cannot be compiled
  configure: WARNING: gd.h:     check for missing prerequisite headers?
  configure: WARNING: gd.h: see the Autoconf documentation
  configure: WARNING: gd.h:     section "Present But Cannot Be Compiled"
  configure: WARNING: gd.h: proceeding with the preprocessor's result
  configure: WARNING: gd.h: in the future, the compiler will take precedence
  checking for gd.h... yes

config.log reveals:

  configure:9134: checking gd.h usability
  configure:9151: gcc -c -g -O2  conftest.c >&5
  conftest.c:68:16: error: gd.h: No such file or directory
  configure:9158: $? = 1
  configure: failed program was:
  | /* confdefs.h.  */
  [...]
  | #include <gd.h>
  configure:9172: result: no
  configure:9176: checking gd.h presence
  configure:9191: gcc -E -I/usr/pkg/include  conftest.c
  configure:9198: $? = 0
  configure:9212: result: yes
  configure:9225: WARNING: gd.h: present but cannot be compiled
  configure:9227: WARNING: gd.h:     check for missing prerequisite headers?
  configure:9229: WARNING: gd.h: see the Autoconf documentation
  configure:9231: WARNING: gd.h:     section "Present But Cannot Be Compiled"
  configure:9233: WARNING: gd.h: proceeding with the preprocessor's result
  configure:9235: WARNING: gd.h: in the future, the compiler will take precedence
  configure:9240: checking for gd.h
  configure:9249: result: yes
  configure:9867: creating ./config.status

Notice that there is no -I option passed to gcc for the usability test,
but -I/usr/pkg/include is specified for the presence test.

Is this done deliberately? If yes, what's the reason behind this?


Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~


More information about the tex-live mailing list