emerging gtk-sharp 0.6 or 0.7 will generate compile errors. Reproducible: Always Steps to Reproduce: 1.emerge gtk-sharp # 0.6 OR 2.ACCEPT_KEYWORDS="~x86" emerge gtk-sharp # 0.7 Actual Results: ... mcs --unsafe -o treeviewdemo.exe -L ../glib -L ../pango -L ../atk -L ../gdk -L ../gtk -L ../glade -r glib-sharp.dll -r pango-sharp.dll -r atk-sharp.dll -r gdk-sharp.dll -r gtk-sharp.dll -r glade-sharp.dll -r System.Drawing TreeViewDemo.cs Compilation succeeded mcs --unsafe -o glade-viewer.exe -L ../glib -L ../pango -L ../atk -L ../gdk -L ../gtk -L ../glade -r glib-sharp.dll -r pango-sharp.dll -r atk-sharp.dll -r gdk-sharp.dll -r gtk-sharp.dll -r glade-sharp.dll -r System.Drawing GladeViewer.cs GladeViewer.cs(24) error CS0246: Cannot find type `Program' Compilation failed: 1 error(s), 0 warnings make[1]: *** [glade-viewer.exe] Error 1 make[1]: *** Waiting for unfinished jobs.... Compilation succeeded make[1]: Leaving directory `/mnt/zeta/var/tmp/portage/gtk-sharp-0.7/work/gtk-sharp-0.7/sample' make: *** [binding] Error 1 !!! ERROR: dev-libs/gtk-sharp-0.7 failed. !!! Function src_compile, Line 35, Exitcode 2 !!! (no error message)
Created attachment 8488 [details] Full output of emerge
hmm well, it works for me.. so 'will generate' may be put a bit too broad. I suppose you do have glade around ? Do you have USE gnome (give us your 'emerge info').
Ok, nevermind, I don't have the necessary packages installed. I would have thought that gnome/etc would be dependencies to gtk-sharp. Perhaps you can fix this dependency issue? * gnome-sharp.dll: no * glade-sharp.dll: yes * gda-sharp.dll: no * gnomedb-sharp.dll: no
well glade support should be seperate from gnome support.. (as it is in the ebuild right now). So if you have only glade it should build support for that.
Problem seems to be that the Glade example uses gnome and gets built even when gnome support isn't built, so i have to disable building the tests i think if thats possible.
ok did some hacks to disable samples build, could you please try 0.7-r1 and see if that one builds ok for you ?
* glade-sharp.dll: yes I think this is a wast of time; I don't have glade installed yet. I'm not sure why the configure on gtk-sharp thinks glade is installed. [...] make[2]: Entering directory `/mnt/zeta/var/tmp/portage/gtk-sharp-0.7-r1/work/gtk-sharp-0.7/gconf/GConf' mcs ClientBase.cs Client.cs ChangeSet.cs _Entry.cs NoSuchKeyException.cs NotifyEventArgs.cs NotifyEventHandler.cs NotifyWrapper.cs Value.cs -L ../../glib /r:glib-sharp.dll /target:library /out:gconf-sharp.dll ** (/usr/bin/mcs.exe:9389): CRITICAL **: : shared file [/root/.wapi/shared_data-0] open error: Permission denied make[2]: *** [gconf-sharp.dll] Error 255 make[2]: Leaving directory `/mnt/zeta/var/tmp/portage/gtk-sharp-0.7-r1/work/gtk-sharp-0.7/gconf/GConf' make[1]: *** [install] Error 1 make[1]: Leaving directory `/mnt/zeta/var/tmp/portage/gtk-sharp-0.7-r1/work/gtk-sharp-0.7/gconf' make: *** [install-binding] Error 1 !!! ERROR: dev-libs/gtk-sharp-0.7-r1 failed. !!! Function einstall, Line 361, Exitcode 2 !!! einstall failed
Ok, glade installed...still get errors (dev-util/glade-0.6.4) make[2]: Entering directory `/mnt/zeta/var/tmp/portage/gtk-sharp-0.7-r1/work/gtk-sharp-0.7/gconf/GConf' mcs ClientBase.cs Client.cs ChangeSet.cs _Entry.cs NoSuchKeyException.cs NotifyEventArgs.cs NotifyEventHandler.cs NotifyWrapper.cs Value.cs -L ../../glib /r:glib-sharp.dll /target:library /out:gconf-sharp.dll ** (/usr/bin/mcs.exe:1760): CRITICAL **: : shared file [/root/.wapi/shared_data-0] open error: Permission denied make[2]: *** [gconf-sharp.dll] Error 255 make[2]: Leaving directory `/mnt/zeta/var/tmp/portage/gtk-sharp-0.7-r1/work/gtk-sharp-0.7/gconf/GConf' make[1]: *** [install] Error 1 make[1]: Leaving directory `/mnt/zeta/var/tmp/portage/gtk-sharp-0.7-r1/work/gtk-sharp-0.7/gconf' make: *** [install-binding] Error 1 !!! ERROR: dev-libs/gtk-sharp-0.7-r1 failed. !!! Function einstall, Line 361, Exitcode 2 !!! einstall failed
it is 'libglade' that you need to have installed to trigger this and it's a dep, so it should be installed. The new error actually is different as you can see, have you upgraded your portage cause the snag you hit there should be solved in the ebuild. What's 'emerge info' for you ?
Nevermind, I'm an idiot...I had -gnome in the USE. 0.7-r1 compiled just fine. Sorry for the waste of time.
-gnome should still work (aka gtk/glade-only)
fixed and marked stable