Re: Problems updating glib2

Previous thread: how to get ipv6 address to my system by kavitha reddy on Friday, April 11, 2008 - 1:13 am. (3 messages)

Next thread: OpenNTPd port service by Jordi Espasa Clofent on Friday, April 11, 2008 - 2:26 am. (3 messages)
From: Pedro de Oliveira
Date: Friday, April 11, 2008 - 1:45 am

Hello,
 
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.

...snip...
/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[4]: *** [gtester] Error 1
...snip...

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?

Thanks

From: Jacob Meuser
Date: Friday, April 11, 2008 - 2:34 am

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


-- 
jakemsr@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org

Previous thread: how to get ipv6 address to my system by kavitha reddy on Friday, April 11, 2008 - 1:13 am. (3 messages)

Next thread: OpenNTPd port service by Jordi Espasa Clofent on Friday, April 11, 2008 - 2:26 am. (3 messages)