Can anyone explain me why it is impossible to upgrade /devel/glib2/ via
ports without complettly removing it first?
If you make a normal "make update" it fails during compilation, but if you
pkg_del the current version, and try to build it, it compiles.
/usr/local/bin/libtool --tag=CC --mode=link cc -O2 -pipe -Wall
-L/usr/local/lib -o gtester gtester.o libglib-2.0.la -lintl -liconv
cc -O2 -pipe -Wall -o .libs/gtester gtester.o -L/usr/local/lib -L./.libs
-lglib-2.0 -lpcre -lintl -liconv -Wl,-rpath,/usr/local/lib
/usr/local/lib/libglib-2.0.so.1400.3: warning: vsprintf() is often misused,
please use vsnprintf()
/usr/local/lib/libglib-2.0.so.1400.3: warning: strcpy() is almost always
misused, please use strlcpy()
/usr/local/lib/libglib-2.0.so.1400.3: warning: strcat() is almost always
misused, please use strlcat()
collect2: ld returned 1 exit status
gmake: *** [gtester] Error 1
My problem is that to remove glib2, I also have to remove all the packages
that depend on it.
So, can anyone tell me why does this happen?
because the installed libraries get found before the newly built
libraries; library path search order issue. blame libtool. I gave
them a patch. they "cleaned it up" to the point that it no longer
you have to rebuild/reinstall anything using glib2 eventually anyway, or
SDF Public Access UNIX System - http://sdf.lonestar.org