Subject: Re: devel/glib2 fails on Linux with "syntax error in VERSION script"
To: Roland Illig <rillig@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: pkgsrc-users
Date: 03/17/2007 19:37:33
On Fri, 16 Mar 2007, Roland Illig wrote:

> Jeremy C. Reed wrote:
> > devel/glib2 fails on Linux with "syntax error in VERSION script". This is on
> > Ubuntu.
> > 
> > /usr/bin/ld:.libs/libglib-2.0.ver:2: ignoring invalid character `\001' in
> > script
> > /usr/bin/ld:.libs/libglib-2.0.ver:2: syntax error in VERSION script
> > collect2: ld returned 1 exit status
> > 
> > That work/glib-2.12.9/glib/.libs/libglib-2.0.ver file contains a CTRL-A:
> > 
> > { global:
> > ^A;
> > local: *; };
> > 
> > 
> > I am trying to track down what generated this.
> 
> /bin/sh is a symlink to dash, and that shell is not POSIX-compliant. In
> particular,
> 
> "echo '\400'" echoes an @ character.
> 
> The bootstrap handles this by setting TOOLS_PLATFORM.sh=/bin/bash (line 861 of
> bootstrap/bootstrap revision 1.92).

I set that. And then SHELL and all noticable uses of /bin/sh became 
/bin/bash.

But same problem.

So I changed my /bin/sh symlink to point to /bin/bash. And still same 
problem.

I can upload some files if that would be useful.

  Jeremy C. Reed