[tlbuild] yet another progress report from Utah: OpenBSD (mostly a success)

Nelson H. F. Beebe beebe at math.utah.edu
Sat May 5 00:33:16 CEST 2012


Karl Berry writes today about my report of *.a files embedded
inside libkpathsea.a:

>> Thus I suspect it is a function or bug in the libtool code on openbsd.

It isn't an OpenBSD thing: it happens on ALL of the platforms that
I've built on.  I personally suspect that it is a bug in the
source/Work/texk/kpathsea/Makefile, which has

	libkpathsea.la: $(libkpathsea_la_OBJECTS) $(libkpathsea_la_DEPENDENCIES) $(EXTRA_libkpathsea_la_DEPENDENCIES) 
		$(libkpathsea_la_LINK) -rpath $(libdir) $(libkpathsea_la_OBJECTS) $(libkpathsea_la_LIBADD) $(LIBS)

Notice that $(LIBS) appears at the end of that command.

Here is what is shown in one of the build logs:

libtool: link: ar cru .libs/libkpathsea.a \
    /usr/local/lib/libfontconfig.a /usr/lib/libexpat.a \
    /usr/local/lib/libfreetype.a /usr/local/lib/libbz2.a \
    /usr/local/lib/libz.a libkpathsea_la-tex-file.o \
    libkpathsea_la-absolute.o libkpathsea_la-atou.o libkpathsea_la-cnf.o \
    libkpathsea_la-concat.o libkpathsea_la-concat3.o \
    libkpathsea_la-concatn.o libkpathsea_la-db.o libkpathsea_la-debug.o \
    libkpathsea_la-dir.o libkpathsea_la-elt-dirs.o libkpathsea_la-expand.o \
    libkpathsea_la-extend-fname.o libkpathsea_la-file-p.o \
    libkpathsea_la-find-suffix.o libkpathsea_la-fn.o \
    libkpathsea_la-fontmap.o libkpathsea_la-getopt.o \
    libkpathsea_la-getopt1.o libkpathsea_la-hash.o \
    libkpathsea_la-kdefault.o libkpathsea_la-kpathsea.o \
    libkpathsea_la-line.o libkpathsea_la-magstep.o \
    libkpathsea_la-make-suffix.o libkpathsea_la-path-elt.o \
    libkpathsea_la-pathsearch.o libkpathsea_la-proginit.o \
    libkpathsea_la-progname.o libkpathsea_la-readable.o \
    libkpathsea_la-rm-suffix.o libkpathsea_la-str-list.o \
    libkpathsea_la-str-llist.o libkpathsea_la-tex-glyph.o \
    libkpathsea_la-tex-hush.o libkpathsea_la-tex-make.o \
    libkpathsea_la-tilde.o libkpathsea_la-truncate.o \
    libkpathsea_la-uppercasify.o libkpathsea_la-variable.o \
    libkpathsea_la-version.o libkpathsea_la-xbasename.o \
    libkpathsea_la-xcalloc.o libkpathsea_la-xdirname.o \
    libkpathsea_la-xfopen.o libkpathsea_la-xfseek.o \
    libkpathsea_la-xfseeko.o libkpathsea_la-xftell.o \
    libkpathsea_la-xftello.o libkpathsea_la-xgetcwd.o \
    libkpathsea_la-xmalloc.o libkpathsea_la-xopendir.o \
    libkpathsea_la-xputenv.o libkpathsea_la-xrealloc.o \
    libkpathsea_la-xstat.o libkpathsea_la-xstrdup.o \
libtool: link: ranlib .libs/libkpathsea.a 

It looks like this comes from my top-level setting of

	LIBS='/usr/local/lib/libfontconfig.a /usr/lib/libexpat.a /usr/local/lib/libfreetype.a /usr/local/lib/libbz2.a /usr/local/lib/libz.a -lm'

which I needed to force used of 5 static libraries, to avoid
references to shared libraries in /usr/local/lib.

-------------------------------------------------------------------------------
- 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