[tlbuild] TeX Live 2012 build progress report from Utah

Nelson H. F. Beebe beebe at math.utah.edu
Fri May 4 00:22:55 CEST 2012


On MirBSD, I reported this failure:

> MirBSD:
>
> mgcc -DHAVE_CONFIG_H -I. -I../../../texk/xdvik -I../../../texk/xdvik/gui -DPS_GS -I/local/build/bare/texlive-20120501/source/Work/texk
-I/local/build/bare/texlive-20  0501/source/texk -I/local/build/bare/texlive-20120501/source/Work/libs/t1lib -I/usr/X11R6/include    -Wimplicit -Wreturn-type
-Wdeclaration-after-statement -Wno-unknow  pragmas -g -I/usr/local/include/freetype2 -I/usr/include -I/usr/local/include -MT main.o -MD -MP -MF .deps/main.Tpo -c -o
main.o ../../../texk/xdvik/main.c
> In file included from /local/build/bare/texlive-20120501/source/texk/kpathsea/c-std.h:36,
>                  from /local/build/bare/texlive-20120501/source/texk/kpathsea/config.h:88,
>                  from ../../../texk/xdvik/xdvi.h:43,
>                  from ../../../texk/xdvik/main.c:10:
> /usr/include/stdlib.h:276: error: syntax error before "string"

Peter Breitenlohner responded:

>> What is the contents of /usr/include/stdlib.h:276?
>> 
>> The problem could be that kpathsea/types.h contains
>>    typedef char *string;

The problem is indeed as Peter suspected: MirBSD erroneously usurps the name
"string" for its own use:

% sed -n -e 272,276p /usr/include/stdlib.h
void arc4random_buf(void *, size_t)
        __attribute__((__bounded__ (__string__,1,2)));
u_int32_t arc4random_uniform(u_int32_t);
void arc4random_pushb_fast(const void *, size_t)
        __attribute__((bounded (string, 1, 2)));

Notice that the first uses the implementor-reserved "__string__", whereas
the second has the public "string".

I'm going to make a private patched copy of that header file, and
then use a -I option to make the compiler find the new file.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe at math.utah.edu  -
- 155 S 1400 E RM 233                       beebe at acm.org  beebe at computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------


-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe at math.utah.edu  -
- 155 S 1400 E RM 233                       beebe at acm.org  beebe at computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------


More information about the tlbuild mailing list