GTK+ from checkout not building in Ubuntu

If you try to build GTK+ from a checkout (svn, git) in Ubuntu you will probably hit this:

/usr/bin/ld:.libs/libgdk_pixbuf-2.0.ver:2: ignoring invalid character `\001′ in script
/usr/bin/ld:.libs/libgdk_pixbuf-2.0.ver:2: syntax error in VERSION script

the solution is to export a C locale before building, like this:

LC_ALL=C make

Update 30/12/08: The real solution as pointed by Xan is to use bash instead of dash for sh, reconfigure the dash package and select “DO NOT WANT” when asked:

sudo dpkg-reconfigure dash

Tags: , , , ,

2 Responses to “GTK+ from checkout not building in Ubuntu”

  1. Grand says:

    Hi there I am getting this exact problem trying to install GTk. Once I have run sudo dpkg-reconfigure dash and selected NO. What do I do afterwards? run sudo make again? cause I am still getting the same problem.

    /usr/bin/ld:.libs/libgdk_pixbuf-2.0.ver:2: ignoring invalid character `01′ in script
    /usr/bin/ld:.libs/libgdk_pixbuf-2.0.ver:2: syntax error in VERSION script

  2. diegoe says:

    Well I did a make distclean and restarted my gnome-terminal. It worked after that.