On Tue, Nov 04, 2008 at 09:30:47PM -0500, Aaron W. Hsu wrote: > I seem to be having some trouble with the glib2 port. I've tried > a few things, but it seems to be picking up my old installation > somehow. Here's is a history: > > > /usr/local/bin/libtool --tag=CC --mode=link cc -O2 -pipe -Wall > -L/usr/local/lib -o markup-subparser markup-subparser.o > ../../glib/libglib-2.0.la -lintl -liconv > cc -O2 -pipe -Wall -o .libs/markup-subparser markup-subparser.o > -L/usr/local/lib -L../../glib/.libs -lglib-2.0 -lpcre -lintl -liconv > -Wl,-rpath,/usr/local/lib > /usr/local/lib/libglib-2.0.so.1600.2: warning: vsprintf() is often > misused, please use vsnprintf() > /usr/local/lib/libglib-2.0.so.1600.2: warning: strcpy() is almost > always misused, please use strlcpy() > /usr/local/lib/libglib-2.0.so.1600.2: warning: strcat() is almost > always misused, please use strlcat() > markup-subparser.o(.text+0xb8): In function `subparser_start': > /usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/glib/tests/markup-sub > parser.c:72: undefined reference to `g_markup_parse_context_push' > markup-subparser.o(.text+0xcb): In function `subparser_end': > /usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/glib/tests/markup-sub > parser.c:82: undefined reference to `g_markup_parse_context_pop' > markup-subparser.o(.text+0x185): In function `replay_parser_start': > /usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/glib/tests/markup-sub > parser.c:128: undefined reference to `g_markup_parse_context_push' > markup-subparser.o(.text+0x1a8): In function `replay_parser_end': > /usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/glib/tests/markup-sub > parser.c:141: undefined reference to `g_markup_parse_context_pop' > collect2: ld returned 1 exit status > gmake[4]: *** [markup-subparser] Error 1 > gmake[4]: Leaving directory > `/usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/glib/tests' > gmake[3]: *** [all-recursive] Error 1 > gmake[3]: Leaving directory > `/usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/glib' > gmake[2]: *** [all] Error 2 > gmake[2]: Leaving directory > `/usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/glib' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory > `/usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2' > gmake: *** [all] Error 2 > *** Error code 2 > Stop in /usr/ports/devel/glib2 (line 2169 of > /usr/ports/infrastructure/mk/bsd.port.mk). > *** Error code 1 > Stop in /usr/ports/devel/glib2 (line 1424 of > /usr/ports/infrastructure/mk/bsd.port.mk). > *** Error code 1 > Stop in /usr/ports/devel/glib2 (line 1964 of > /usr/ports/infrastructure/mk/bsd.port.mk). > *** Error code 1 > Stop in /usr/ports/devel/glib2 (line 2980 of > /usr/ports/infrastructure/mk/bsd.port.mk). > > And my attempt to remove that old library: with what commad are you removing that old library? obviously not pkg_delete. that would solve the problem actually... > cc -O2 -pipe -Wall -o .libs/memory-output-stream memory-output-stream.o > -L/usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/glib/.libs > -L/usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/gobject/.libs > -L/usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/gmodule/.libs > -L/usr/local/lib -L../../glib/.libs -L../../gobject/.libs -L../../gio/.libs > -lgio-2.0 -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -lpcre -lintl -liconv > -Wl,-rpath,/usr/local/lib > > /usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/glib/.libs/libglib-2.0.so.1800.0: > warning: vsprintf() is often misused, please use vsnprintf() > /usr/local/lib/libgio-2.0.so.1600.2: warning: strcpy() is almost always > misused, please use strlcpy() > /usr/local/lib/libgio-2.0.so.1600.2: warning: strcat() is almost always > misused, please use strlcat() > /usr/bin/ld: warning: libgmodule-2.0.so.1600.2, needed by > /usr/local/lib/libgio-2.0.so.1600.2, may conflict with > libgmodule-2.0.so.1800.0 > /usr/bin/ld: warning: libgobject-2.0.so.1600.2, needed by > /usr/local/lib/libgio-2.0.so.1600.2, may conflict with > libgobject-2.0.so.1800.0 > /usr/bin/ld: warning: libglib-2.0.so.1600.2, needed by > /usr/local/lib/libgio-2.0.so.1600.2, not found (try using -rpath or > -rpath-link) > memory-output-stream.o(.text+0x13c): In function `test_data_size': > > /usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/gio/tests/memory-output-stream.c:68: > undefined reference to `g_memory_output_stream_get_data_size' > collect2: ld returned 1 exit status > gmake[4]: *** [memory-output-stream] Error 1 > gmake[4]: Leaving directory > `/usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/gio/tests' > gmake[3]: *** [all-recursive] Error 1 > gmake[3]: Leaving directory > `/usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/gio' > gmake[2]: *** [all] Error 2 > gmake[2]: Leaving directory > `/usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2/gio' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory > `/usr/ports/devel/glib2/w-glib-2.18.2/glib-2.18.2' > gmake: *** [all] Error 2 > *** Error code 2 > > Stop in /usr/ports/devel/glib2 (line 2169 of > /usr/ports/infrastructure/mk/bsd.port.mk). > *** Error code 1 > > Stop in /usr/ports/devel/glib2 (line 1424 of > /usr/ports/infrastructure/mk/bsd.port.mk). > *** Error code 1 > > Stop in /usr/ports/devel/glib2 (line 1964 of > /usr/ports/infrastructure/mk/bsd.port.mk). > *** Error code 1 > > Stop in /usr/ports/devel/glib2 (line 2980 of > /usr/ports/infrastructure/mk/bsd.port.mk). > >
-- "Intelligence should guide our actions, but in harmony with the texture of the situation at hand" -- Francisco Varela