Subject: Re: libtool problems making gtk2
To: Georg Schwarz <geos@epost.de>
From: Tobias Nygren <tnn@netilium.org>
List: tech-pkg
Date: 08/08/2004 19:55:23
On Sun, 8 Aug 2004 17:22:03 +0200
geos@epost.de (Georg Schwarz) wrote:

> I am trying to compile x11/gtk2 on IRIX 5.3. It turns out there is a problem
> with libtool (libtool 1.5.6 from pkgsrc):
> 
> generating symbol list for `libgdk_pixbuf-2.0.la'
> nm -B  .libs/gdk-pixbuf.o .libs/gdk-pixbuf-animation.o .libs/gdk-pixbuf-data.o
> .libs/gdk-pixbuf-io.o .libs/gdk-pixbuf-loader.o .libs/gdk-pixbuf-scale.o
> .libs/gdk-pixbuf-util.o .libs/gdk-pixdata.o .libs/gdk-pixbuf-enum-types.o
> pixops/.libs/libpixops.a |  | /usr/local/bin/sed 's/.* //' | sort | uniq >
> .libs/libgdk_pixbuf-2.0.exp
> /usr/local/pkg/bin/libtool[4000]: syntax error at line 1 : `|' unexpected
> gmake[4]: *** [libgdk_pixbuf-2.0.la] Error 2
> 
> The respective line in /usr/local/pkg/bin/libtool is
> 
> # The commands to list exported symbols.
> export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe |
> \$SED 's/.* //' | sort | uniq > \$export_symbols"
> 
> elsewhere in the libtool script I find the following:
> 
> # Take the output of nm and produce a listing of raw symbols and C names.
> global_symbol_pipe=""
> 
> Is this what causes the problem? Should it be something else than an empty
> string? What is it on other platforms?
> 

Libtool in pkgsrc has a fix that is supposed to solve this;
Verify that your libtool-base/Makefile has:

.elif ${OPSYS} == "IRIX"
CONFIGURE_ENV+=         lt_cv_path_NM="nm -B"
.endif

Also make sure the native nm is in your path and that it
accepts the -B flag.

--
Tobias Nygren
tnn@netilium.org