Subject: Re: libtool problems making gtk2
To: Georg Schwarz <geos@epost.de>
From: Dan McMahill <dmcmahill@netbsd.org>
List: tech-pkg
Date: 08/08/2004 14:04:44
On Sun, Aug 08, 2004 at 05:22:03PM +0200, 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?
having global_symbol_pipe="" will certainly cause that error as would an
empty \$NM \$libobjs \$convenience .
On my NetBSD-1.6.2/alpha with libtool-base-1.5.6nb1
# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1
\\2\\3 \\3/p'"
I'd take a close look at the libtool-base build log and see what failed.
-Dan
--