Ebuild fails to build: Configuration summary 000452 000453 * Installation prefix = /usr 000454 * C# compiler: /usr/bin/mcs -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GTK_SHARP_2_10 -define:GTK_SHARP_2_12 000455 000456 Optional assemblies included in the build: 000457 000458 * glade-sharp.dll: yes 000459 * gtk-dotnet.dll: yes 000460 * Mono.Cairo.dll: no 000461 000462 NOTE: if any of the above say 'no' you may install the 000463 corresponding development packages for them, rerun 000464 autogen.sh to include them in the build. 000465 000466 * Documentation build enabled: no 000467 --- 000468 >>> Source configured. 000469 >>> Compiling source in /var/tmp/portage/dev-dotnet/atk-sharp-2.12.7-r5/work/gtk-sharp-2.12.7 ... 000470 make 000471 Making all in . 000472 make[1]: Entering directory `/var/tmp/portage/dev-dotnet/atk-sharp-2.12.7-r5/work/gtk-sharp-2.12.7/atk' 000473 cp ./atk-api.raw atk-api.xml 000474 chmod u+w atk-api.xml 000475 gapi2-fixup --api=atk-api.xml --metadata=./Atk.metadata 000476 rm -f generated/* &&\ 000477 gapi2-codegen --generate atk-api.xml \ 000478 \ 000479 --outdir=generated --customdir=. --assembly-name=atk-sharp\ 000480 --gluelib-name=atksharpglue-2 --glue-filename=glue/generated.c\ 000481 --glue-includes=atk/atk.h\ 000482 && touch generated-stamp 000483 Property has unknown Type value_array in type Atk.Relation 000484 Defaulting FocusHandler param to 'call' scope in method PropertyChangeHandler.AddFocusHandler 000485 Defaulting FocusHandler param to 'call' scope in method NoOpObject.AddFocusHandler 000486 Defaulting PropertyChangeHandler param to 'call' scope in method Object.ConnectPropertyChangeHandler 000487 Defaulting KeySnoopFunc param to 'call' scope in method Global.AddKeyEventListener 000488 Defaulting EventListener param to 'call' scope in method Global.AddFocusTracker 000489 Defaulting EventListenerInit param to 'call' scope in method Focus.TrackerInit 000490 000491 Generation Summary: 000492 Enums: 10 Structs: 5 Boxed: 1 Opaques: 0 Interfaces: 13 Objects: 12 Callbacks: 6 000493 Properties: 20 Signals: 24 Methods: 409 Constructors: 5 Throttled: 1 000494 Total Nodes: 506 000495 000496 cp ../gtk-sharp.snk . 000497 cp ../AssemblyInfo.cs . 000498 /usr/bin/mcs -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GTK_SHARP_2_10 -define:GTK_SHARP_2_12 -nowarn:0169,0612,0618 -unsafe -out:atk-sharp.dll -target:library /r:/usr/lib64/pkgconfig/../../lib64/mono/gtk-sharp-2.0/glib-sharp.dll -r:/usr/lib64/pkgconfig/../../lib/mono/1.0/Mono.Cairo.dll generated/*.cs ./TextChangedDetail.cs AssemblyInfo.cs 000499 generated/Relation.cs(55,83): error CS1501: No overload for method `ListToArray' takes `5' arguments 000500 Compilation failed: 1 error(s), 0 warnings 000501 make[1]: *** [atk-sharp.dll] Error 1 000502 make[1]: Leaving directory `/var/tmp/portage/dev-dotnet/atk-sharp-2.12.7-r5/work/gtk-sharp-2.12.7/atk' 000503 make: *** [all-recursive] Error 1 Reproducible: Always
Which version of gtk-sharp are you upgrading from? Please show the output of: emerge -pDav =gtk-sharp-2.12.7-r5
(In reply to comment #1) > Which version of gtk-sharp are you upgrading from? > Please show the output of: > emerge -pDav =gtk-sharp-2.12.7-r5 > Calculating dependencies... done! [ebuild U ] sys-apps/openrc-0.4.2 [0.4.1-r1] USE="ncurses pam unicode -debug" 142 kB [ebuild U ] x11-misc/util-macros-1.2.1 [1.2.0] 48 kB [ebuild U ] x11-libs/xtrans-1.2.3 [1.2.2] USE="-debug" 102 kB [ebuild U ] x11-libs/libXfont-1.3.4 [1.3.3] USE="ipv6 -debug" 558 kB [ebuild U ] net-libs/gnutls-2.6.3 [2.6.2] USE="cxx guile nls zlib -bindist -doc -lzo" 4,995 kB [ebuild N ] dev-dotnet/atk-sharp-2.12.7-r5 USE="-debug" 0 kB [ebuild N ] dev-dotnet/gdk-sharp-2.12.7-r5 USE="-debug" 0 kB [ebuild N ] dev-dotnet/gtk-sharp-2.12.7-r5 USE="-debug" 0 kB [ebuild N ] x11-libs/qt-qt3support-4.4.2 USE="accessibility -debug -pch" 0 kB [ebuild U ] gnome-base/gnome-desktop-2.24.3 [2.24.2-r1] USE="-debug -doc" 1,475 kB [ebuild U ] media-gfx/imagemagick-6.4.8.3 [6.4.5.7-r1] USE="X bzip2 corefonts fontconfig jpeg lcms openmp* perl png svg tiff truetype wmf xml zlib -djvu -doc -fpx -graphviz -gs -hdri -jbig -jpeg2k -nocxx -openexr -q32 -q8 -raw" 0 kB
Reopening
Created attachment 179387 [details] output from emerge - working
Created attachment 179390 [details] output from emerge - fails
Hrmmm... I think I see the problem. Can you post /var/tmp/portage/dev-dotnet/atk-sharp-2.12.7-r5/work/gtk-sharp-2.12.7/atk/generated/Relation.cs from the Laptop along with emerge --info (also laptop)
Created attachment 179431 [details] Emerge infro from laptop
Created attachment 179433 [details] Relation.cs from laptop
It looks to me like the gapi2-codegen that is generating the code here is from gtk-sharp-2.10.x. You will notice the difference here: loki ~ # diff /var/tmp/portage/dev-dotnet/atk-sharp-2.12.7-r5/work/gtk-sharp-2.12.7/atk/generated/Relation.cs attachment.cgi\?id\=179433\&action\=view 11c11 < public class Relation : GLib.Object { --- > public class Relation : GLib.Object { 55c55 < Atk.Object[] ret = (Atk.Object[]) GLib.Marshaller.PtrArrayToArray (raw_ret, true, false, typeof(Atk.Object)); --- > Atk.Object[] ret = (Atk.Object[]) GLib.Marshaller.ListToArray (raw_ret, typeof (Atk.Object), true, false, typeof (Atk.Object)); Now, the gapi2-codegen that comes with gtk-sharp-2.12.x *cannot* generate that bit of code, the last time it could was in r111172: http://anonsvn.mono-project.com/viewvc/trunk/gtk-sharp/generator/ReturnValue.cs?view=diff&r1=111172&r2=111173 So, you'll need to search your harddrive for a file named gapi2-codegen that might be left over from a previous installation. First, emerge -C gtk-sharp-gapi so we're sure it's not its files we get. You can see which file is first in your path named gapi2-codegen by typing: type -P gapi2-codegen. If you don't have any success, try this command: find /usr -name 'gapi2-codegen' -o -name 'gapi_codegen.exe' and post the results here.
Thanks Peter, i had a lost gapi2-codegen in my /usr/local/bin. Seen that /usr/local/bin goes before /usr/bin? Solved.
(In reply to comment #10) > Thanks Peter, > > i had a lost gapi2-codegen in my /usr/local/bin. Seen that /usr/local/bin goes > before /usr/bin? > > Solved. Not quite. I've just taken a look at gtk-sharp-gapi. I think I know why that gapi2-codegen was picked up. It looks like I may have made a typo in the gtk-sharp-gapi ebuild. Wait for gtk-sharp-gapi-2.12.7-r7.
+*gtk-sharp-gapi-2.12.7-r7 (23 Jan 2009) + + 23 Jan 2009; Peter Alfredsen <loki_val@gentoo.org> + -gtk-sharp-gapi-2.12.7-r6.ebuild, +gtk-sharp-gapi-2.12.7-r7.ebuild: + Fix bug 254162. The /usr/bin/gapi2-codegen shell script would sometimes + not be installed because I typoed the eclass. + Now it should be fixed. Wait half an hour and resync. Thank you very much for reporting.