Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135395 - mono-tools error when trying to configure No package 'gconf-sharp' found
Summary: mono-tools error when trying to configure No package 'gconf-sharp' found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-03 08:39 UTC by Popolous
Modified: 2006-06-05 13:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Popolous 2006-06-03 08:39:01 UTC
Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1.50GHz
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -ffast-math -O3 -pipe -ftracer -momit-leaf-frame-pointer -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -ffast-math -O3 -pipe -ftracer -momit-leaf-frame-pointer -fforce-addr -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS=" http://gentoo.osuosl.org http://mirror.hamakor.org.il/pub/mirrors/gentoo/  ftp://mirror.nutsmaas.nl/gentoo/  ftp://ftp.rnl.ist.utl.pt/pub/gentoo/  ftp://ftp.citkit.ru/pub/Linux/gentoo  ftp://ftp.caliu.info/pub/gentoo/  http://linuv.uv.es/mirror/gentoo/  ftp://ftp.du.se/pub/os/gentoo"
LANG="es_ES@euro"
LC_ALL="es_ES@euro"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
LINGUAS="es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acl adns alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cdr cli crypt cups curl directfb doc dri dts eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm ggi gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal idn imagemagick imlib ipv6 isdnlog java jpeg junit kde lcms ldap libcaca libg++ libwww lirc mad mikmod mng mono motif mozilla mp3 mpeg mysql nas ncurses nls nptl nptlonly odbc ogg openal opengl oss pam pcre pdflib perl php png pppd python qt quicktime readline reflection sdl session snmp spell spl ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xine xml xml2 xmms xorg xv xvid zlib linguas_es userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 1 Popolous 2006-06-03 08:40:38 UTC
This error appears whenever one try:

# emerge mono-tools
Comment 2 Andrew Yates 2006-06-03 08:58:59 UTC
I was unable to reproduce the error.
What version of mono-tools are you attempting to install, and what version of gconf-sharp is on your system? Does /usr/lib/pkgconfig/gconf-sharp.pc exist on your system? What is the output of pkg-config --libs gconf-sharp ?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-06-03 11:01:53 UTC
Please, don't paste long errors into bug summary...

<snip>
: checking for GTK_SHARP... configure: error: Package requirements (gtk-sharp glade-sharp gconf-sharp) were not met:
</snip>
Comment 4 Popolous 2006-06-03 13:52:22 UTC
(In reply to comment #2)
> I was unable to reproduce the error.
> What version of mono-tools are you attempting to install, and what version of
> gconf-sharp is on your system? Does /usr/lib/pkgconfig/gconf-sharp.pc exist on
> your system? What is the output of pkg-config --libs gconf-sharp ?
> 

The version of mono-tools that I'm trying to install is:
# emerge mono-tools
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-util/mono-tools-1.1.11 to /

And the version of gconf-sharp is:
*  dev-dotnet/gconf-sharp
      Latest version available: 2.8.2
      Latest version installed: 2.8.2
      Size of downloaded files: 6,355 kB
      Homepage:    http://gtk-sharp.sourceforge.net/
      Description: gconf component of gtk-sharp
      License:     LGPL-2.1

The file /usr/lib/pkgconfig/gconf-sharp-2.0.pc exists, but I don't know if that name is correct.

The output for the last command you said is:

# pkg-config --libs gconf-sharp
Package gconf-sharp was not found in the pkg-config search path.
Perhaps you should add the directory containing `gconf-sharp.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gconf-sharp' found

Hope it helps. Thanks for your guidance!!
Comment 5 Andrew Yates 2006-06-03 13:59:54 UTC
/usr/lib/pkgconfig/gconf-sharp.pc is for gconf-sharp-1.x, which is required by mono-tools. It should be emerged as a dependency when you install mono-tools, so my guess is that you previously either injected it or added it to packages.provided.
Try running emerge =dev-dotnet/gconf-sharp-1.0.10 and then emerging mono-tools.
Comment 6 Popolous 2006-06-03 14:57:05 UTC
I have tried to compile gconf-sharp-1.0.10 and I got the following error:

cs ./PropertyEditorToggleButton.cs ./EditorShell.cs AssemblyInfo.cs
error CS0006: Cannot find assembly `//usr/lib/mono/gtk-sharp/gnome-sharp.dll'
Log:

Compilation failed: 1 error(s), 0 warnings

Comment 7 Andrew Yates 2006-06-03 15:51:49 UTC
That file is provided by dev-dotnet/gnome-sharp-1.0.10
It should be a dependency, but maybe that somehow got injected too.. try emerge =dev-dotnet/gnome-sharp-1.0.10 and then run the commands I gave you earlier.
Comment 8 Popolous 2006-06-03 17:40:43 UTC
Hi again. I compiled dev-dotnet/gnome-sharp-1.0.10, and the file is again: /usr/lib/pkgconfig/gconf-sharp-2.0.pc, it didn't changed with the compilation of this package. 

I added dev-dotnet/gnome-sharp-2.8.2 in /etc/portage/profile/package.provided and did an "# emerge -C gnome-sharp" before installing the 1.0.10 version. After doing this the output for the other command is:

# pkg-config --libs gconf-sharp
Package gconf-sharp was not found in the pkg-config search path.
Perhaps you should add the directory containing `gconf-sharp.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gconf-sharp' found

What else can I do to check where the problem is?
Comment 9 Andrew Yates 2006-06-03 18:54:59 UTC
Can you paste the part of the emerge =dev-dotnet/gnome-sharp-1.0.10   where it shows the files being added to /usr/lib?
Comment 10 Popolous 2006-06-04 05:57:01 UTC
This is what I get:

making executable: /usr/lib/libgnomesharpglue.so
>>> Completed installing gnome-sharp-1.0.10 into /var/tmp//portage/gnome-sharp-1.0.10/image/

>>> Merging dev-dotnet/gnome-sharp-1.0.10 to /
--- /usr/
--- /usr/lib/
--- /usr/lib/mono/
--- /usr/lib/mono/gac/
--- /usr/lib/mono/gac/gnome-sharp/
--- /usr/lib/mono/gac/gnome-sharp/1.0.0.0__35e10195dab3c99f/
>>> /usr/lib/mono/gac/gnome-sharp/1.0.0.0__35e10195dab3c99f/gnome-sharp.dll.config
>>> /usr/lib/mono/gac/gnome-sharp/1.0.0.0__35e10195dab3c99f/gnome-sharp.dll
--- /usr/lib/mono/gtk-sharp/
>>> /usr/lib/mono/gtk-sharp/gnome-sharp.dll -> ../gac/gnome-sharp/1.0.0.0__35e10195dab3c99f/gnome-sharp.dll
>>> /usr/lib/libgnomesharpglue.la
>>> /usr/lib/libgnomesharpglue.so
--- /usr/lib/pkgconfig/
>>> /usr/lib/pkgconfig/gnome-sharp.pc
>>> /usr/lib/libgnomesharpglue.a
--- /usr/share/
--- /usr/share/gapi/
>>> /usr/share/gapi/gnome-api.xml
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/gapi/gnome-api.xml
--- !mtime obj /usr/lib/pkgconfig/gnome-sharp.pc
--- !mtime obj /usr/lib/mono/gac/gnome-sharp/1.0.0.0__35e10195dab3c99f/gnome-sharp.dll.config
--- !mtime obj /usr/lib/mono/gac/gnome-sharp/1.0.0.0__35e10195dab3c99f/gnome-sharp.dll
--- !mtime obj /usr/lib/libgnomesharpglue.so
--- !mtime obj /usr/lib/libgnomesharpglue.la
--- !mtime obj /usr/lib/libgnomesharpglue.a
--- !empty dir /usr/share/gapi
--- !empty dir /usr/share
--- !empty dir /usr/lib/pkgconfig
--- !empty dir /usr/lib/mono/gtk-sharp
--- !empty dir /usr/lib/mono/gac/gnome-sharp/1.0.0.0__35e10195dab3c99f
--- !empty dir /usr/lib/mono/gac/gnome-sharp
--- !empty dir /usr/lib/mono/gac
--- !empty dir /usr/lib/mono
--- !empty dir /usr/lib
--- !empty dir /usr
--- !targe sym /usr/lib/mono/gtk-sharp/gnome-sharp.dll
>>> original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
>>> dev-dotnet/gnome-sharp-1.0.10 merged.
Comment 11 Andrew Yates 2006-06-04 10:34:41 UTC
/usr/lib/pkgconfig/gnome-sharp.pc should exist, as you can see:
>>> /usr/lib/pkgconfig/gnome-sharp.pc

a mono-tools emerge still fails? can you confirm that that file exists?
Comment 12 Popolous 2006-06-04 10:42:35 UTC
(In reply to comment #11)
> /usr/lib/pkgconfig/gnome-sharp.pc should exist, as you can see:
> >>> /usr/lib/pkgconfig/gnome-sharp.pc
> 
> a mono-tools emerge still fails? can you confirm that that file exists?
> 

Yes, the file does exist, and it sais:

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib


Name: Gnome#
Description: Gnome# - GNOME .NET Binding
Version: 1.0.10
Requires: gtk-sharp art-sharp
Libs: -r:${libdir}/mono/gtk-sharp/gnome-sharp.dll

But emerge mono-tools is still failing..., what else can I do or prove?
Comment 13 Andrew Yates 2006-06-04 11:06:04 UTC
stupid mistake on my part, try an emerge =dev-dotnet/gconf-sharp-1.0.10 and then emerge mono-tools
Comment 14 Popolous 2006-06-04 12:43:22 UTC
With your last advice, I could pass the last failure of mono-tools. I get the following message, once I have emerge =dev-dotnet/gconf-sharp-1.0.10 and emerge mono-tools:

./GeckoHtmlRender.cs(191,7): warning CS0219: The variable `result' is assigned but its value is never used
Compilation succeeded - 1 warning(s)

I suppose it has failed (I can't see the normal message when Gentoo has compiled one package), but it is saying that the Compilation succeded....

How can I check this?

In addition, thak you very much for your patience 
Comment 15 Popolous 2006-06-04 12:46:22 UTC
Sorry, I am very embarrased for my clumsiness. With a simple emerge --search mono-tools I got:

*  dev-util/mono-tools
      Latest version available: 1.1.11
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 248 kB
      Homepage:    http://www.mono-project.com/
      Description: Set of useful Mono related utilities
      License:     GPL-2

So it didn't compile succesfully (as I was afraid of)
Comment 16 Andrew Yates 2006-06-04 13:07:51 UTC
I get the same warnings, but it compiles successfully.
Are you sure it's not still compiling? If you cancelled it, try it again.
If it's successful, /usr/bin/monodoc should exist.
Comment 17 Popolous 2006-06-04 14:38:29 UTC
Something very weird has just happened. After my last post, I tried to run monodevelop. It hanged up and I couldn't run it successfully, so I emerged the last versions of gconf-sharp and gnome-sharp (2.8.2).

monodevelop started ok, and when I try to emerge mono-tools, I pass by the first error (I suppose I still have /usr/lib/pkgconfig/gnome-sharp.pc) but mono-tools compiling proccess still halts...

Could this be a dependency not satisfied when trying to emerge mono-tools-1.1.11? Maybe it should install first gnome-sharp and gconf-sharp (1.0.10) and then 2.8.2...

I'm really lost and confused...
Comment 18 Andrew Yates 2006-06-04 17:33:24 UTC
The order shouldn't matter. mono-tools needs gconf-sharp 1.x, it doesn't use the 2.x version at all.
Try running this to make sure you have all the deps emerged, since some of the others appear to have been injected and some of these might be aswell:
emerge  =dev-dotnet/gtk-sharp-1.0* =dev-dotnet/gnome-sharp-1.0* =dev-dotnet/glade-sharp-1.0* =dev-dotnet/gtkhtml-sharp-1.0* =dev-dotnet/gconf-sharp-1.0* =dev-dotnet/gecko-sharp-0.11

Then emerge mono-tools, and if it fails paste the error.
Comment 19 Popolous 2006-06-04 18:31:47 UTC
Great!! At last it worked!! Thank you very much Andrew. 

So, when all's said and done, everything was a problem of library versions. 

Thanks again.

Comment 20 Andrew Yates 2006-06-04 19:13:01 UTC
No problem.
Please mark this as resolved.. I'm not a dev, so I can't.
Comment 21 Popolous 2006-06-05 13:51:27 UTC
Ok, I'll put it as fixed.

Thanks!!!