pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

problem building glib2 (with older version installed)



Hello,

I am using pkgsrc on Ubuntu Linux 6.06. I generally use "bmake replace"
or pkg_rolling-replace for updating the packages.

With glib2 I had trouble compiling glib2-2.24.1 while glib2-2.22.5nb1
is already installed on the system:

root@pkgsrc606:/opt/pkgsrc/usr/pkgsrc/devel/glib2# bmake
...
/opt/pkgsrc/work/pkgsrc/devel/glib2/default/glib-2.24.1/gobject/.libs/lt-glib-genmarshal: symbol lookup error: /opt/pkgsrc/work/pkgsrc/devel/glib2/default/glib-2.24.1/gobject/.libs/lt-glib-genmarshal: undefined symbol: g_malloc0_n


The build process is not using its own libraries in the build dir, but
those of the old version:

root@pkgsrc606:~# ldd /opt/pkgsrc/work/pkgsrc/devel/glib2/default/glib-2.24.1/gobject/.libs/lt-glib-genmarshal | grep /libg
       libglib-2.0.so.0 => /opt/pkgsrc/lib/libglib-2.0.so.0 (0xb768f000)
libgthread-2.0.so.0 => /opt/pkgsrc/lib/libgthread-2.0.so.0 (0xb7689000)

only after removing those, the build succeeds:

root@pkgsrc606:~# mv /opt/pkgsrc/lib/libglib-2.0.so.0 /opt/pkgsrc/lib/libglib-2.0.so.0.disabled root@pkgsrc606:~# mv /opt/pkgsrc/lib/libgthread-2.0.so.0 /opt/pkgsrc/lib/libgthread-2.0.so.0.disabled root@pkgsrc606:~# ldd /opt/pkgsrc/work/pkgsrc/devel/glib2/default/glib-2.24.1/gobject/.libs/lt-glib-genmarshal | grep /libg libglib-2.0.so.0 => /opt/pkgsrc/work/pkgsrc/devel/glib2/default/glib-2.24.1/glib/.libs/libglib-2.0.so.0 (0xb7670000) libgthread-2.0.so.0 => /opt/pkgsrc/work/pkgsrc/devel/glib2/default/glib-2.24.1/gthread/.libs/libgthread-2.0.so.0 (0xb766a000)


Shouldn't libtool be able to cope with this?
(using libtool-base-2.2.6bnb4)

Best regards
Matthias



Home | Main Index | Thread Index | Old Index