Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Oct 2008 11:10:48 -0700
From:      David Christensen <dpchrist@holgerdanske.com>
To:        Freebsd-Questions <freebsd-questions@freebsd.org>
Subject:   FreeBSD 7.0-RELEASE (GENERIC) firefox3 /usr/bin/ld: cannot find -lgio-2.0
Message-ID:  <4904B2A8.3000102@holgerdanske.com>

next in thread | raw e-mail | index | archive | help
freebsd-questions:

I am attempting to build a desktop machine using FreeBSD 7.0-RELEASE 
(GENERIC) and am having trouble building firefox3:

20081026-104652 root@p43400e /usr/ports/www/firefox3
# make
===>   firefox-3.0.3,1 depends on package: nspr>=4.7 - found
===>   firefox-3.0.3,1 depends on executable: zip - found
===>   firefox-3.0.3,1 depends on executable: gmake - found
===>   firefox-3.0.3,1 depends on file: 
/usr/local/libdata/pkgconfig/printproto.
pc - found
===>   firefox-3.0.3,1 depends on file: 
/usr/local/libdata/pkgconfig/sm.pc - fou
nd
===>   firefox-3.0.3,1 depends on file: 
/usr/local/libdata/pkgconfig/xt.pc - fou
nd
===>   firefox-3.0.3,1 depends on file: 
/usr/local/libdata/pkgconfig/xi.pc - fou
nd
===>   firefox-3.0.3,1 depends on file: 
/usr/local/libdata/pkgconfig/xext.pc - f
ound
===>   firefox-3.0.3,1 depends on file: 
/usr/local/libdata/pkgconfig/x11.pc - fo
und
===>   firefox-3.0.3,1 depends on file: 
/usr/local/libdata/pkgconfig/xinerama.pc
  - found
===>   firefox-3.0.3,1 depends on file: 
/usr/local/libdata/pkgconfig/ice.pc - fo
und
===>   firefox-3.0.3,1 depends on file: 
/usr/local/libdata/pkgconfig/xproto.pc -
  found
===>   firefox-3.0.3,1 depends on file: /usr/local/bin/perl5.8.8 - found
===>   firefox-3.0.3,1 depends on file: /usr/local/bin/intltool-extract 
- found
===>   firefox-3.0.3,1 depends on executable: pkg-config - found
===>   firefox-3.0.3,1 depends on executable: update-desktop-database - 
not foun
d
===>    Verifying install for update-desktop-database in 
/usr/ports/devel/deskto
p-file-utils
===>  Installing for desktop-file-utils-0.15_1
===>   desktop-file-utils-0.15_1 depends on executable: pkg-config - found
===>   desktop-file-utils-0.15_1 depends on file: 
/usr/local/lib/gio/modules/lib
giofam.so - not found
===>    Verifying install for /usr/local/lib/gio/modules/libgiofam.so in 
/usr/po
rts/devel/gio-fam-backend
===>  Building for gio-fam-backend-2.16.5
/bin/sh ../../libtool --tag=CC   --mode=link cc 
-DG_LOG_DOMAIN=\"GLib-GIO\" -I..
/.. -I../../glib -I../../gmodule -I../../gio -DG_DISABLE_CAST_CHECKS 
-DGIO_MODUL
E_DIR=\"/usr/local/lib/gio/modules\" -DGIO_COMPILATION 
-DG_DISABLE_DEPRECATED -O
2 -fno-strict-aliasing -pipe -Wall -export_dynamic -avoid-version 
-module -no-un
defined -export-symbols-regex '^g_io_module_(load|unload)' 
-L/usr/local/lib -lin
tl -o libgiofam.la -rpath /usr/local/lib/gio/modules 
libgiofam_la-fam-helper.lo
libgiofam_la-fam-module.lo libgiofam_la-gfamdirectorymonitor.lo 
libgiofam_la-gfa
mfilemonitor.lo  -lgio-2.0 -lgobject-2.0 -lglib-2.0  -lfam
rm -fr  .libs/libgiofam.exp
generating symbol list for `libgiofam.la'
/usr/bin/nm -B  .libs/libgiofam_la-fam-helper.o 
.libs/libgiofam_la-fam-module.o
.libs/libgiofam_la-gfamdirectorymonitor.o 
.libs/libgiofam_la-gfamfilemonitor.o
| sed -n -e 's/^.*[     ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][ 
]*\([_A-
Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /usr/bin/sed 's/.* //' | sort | uniq 
 > .libs
/libgiofam.exp
/usr/bin/grep -E -e "^g_io_module_(load|unload)" ".libs/libgiofam.exp" > 
".libs/
libgiofam.expT"
mv -f ".libs/libgiofam.expT" ".libs/libgiofam.exp"
cc -shared  .libs/libgiofam_la-fam-helper.o 
.libs/libgiofam_la-fam-module.o .lib
s/libgiofam_la-gfamdirectorymonitor.o 
.libs/libgiofam_la-gfamfilemonitor.o  -Wl,
--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib 
-L/usr/local/lib /usr/
local/lib/libintl.so -lgio-2.0 /usr/local/lib/libgobject-2.0.so 
/usr/local/lib/l
ibglib-2.0.so /usr/local/lib/libfam.so  -Wl,-soname -Wl,libgiofam.so 
-Wl,-retain
-symbols-file -Wl,.libs/libgiofam.exp -o .libs/libgiofam.so
/usr/bin/ld: cannot find -lgio-2.0
gmake: *** [libgiofam.la] Error 1
*** Error code 2

Stop in /usr/ports/devel/gio-fam-backend.
*** Error code 1

Stop in /usr/ports/devel/desktop-file-utils.
*** Error code 1

Stop in /usr/ports/www/firefox3.
*** Error code 1

Stop in /usr/ports/www/firefox3.


If I understand the above, the linker is unable to find the file 
gio-2.0.  STFW I found something similar:

http://lists.freebsd.org/pipermail/freebsd-ports/2008-May/048813.html

But I don't understand the answer:

http://lists.freebsd.org/pipermail/freebsd-ports/2008-May/048814.html

and I don't know if it is applicable -- I have been attempting KDE, not 
Gnome.  But, I'll use any desktop that supports Firefox, Thunderbird, 
and Open Office.


Any suggestions?

David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4904B2A8.3000102>