<p dir="auto">by <strong>j.christoff25</strong>:</p>
<pre class="notranslate">Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1.6g demo.go
6l demo.6
2.
3.

What is the expected output?
a working demo

What do you see instead?
too many loads


Which compiler are you using (5g, 6g, 8g, gccgo)?
I use the "make install", followed by "make example"

Which operating system are you using?
Darwin AMD64 on a Imac 10.6

Which revision are you using?  (hg identify)
117785e448a6+ tip

Please provide any additional information below.

I clone the file with git clone <a href="https://github.com/mattn/go-gtk.git">https://github.com/mattn/go-gtk.git</a>
This program will compile &amp; link using 8g &amp; 8l. I have tried to link this demo
with several versions of GO in the past. All yield the same error,"too many
loads". What does "too many loads" mean?


The following is the message I get when using "make install', followed by
"make example"

jchristoffs-iMac:go-gtk jim$ make install
cd glib &amp;&amp; gomake install
CGOPKGPATH= cgo -- `pkg-config --cflags glib-2.0 gobject-2.0` glib.go
touch _cgo_run
6g -o _go_.6  glib.cgo1.go _cgo_gotypes.go
6c -FVw -I/Users/jim/go/pkg/darwin_amd64 _cgo_defun.c
gcc -m64 -g -fPIC -O2 -o _cgo_main.o -c `pkg-config --cflags glib-2.0 gobject-2.0` 
_cgo_main.c
gcc -m64 -g -fPIC -O2 -o glib.cgo2.o -c `pkg-config --cflags glib-2.0 gobject-2.0` 
glib.cgo2.c
gcc -m64 -g -fPIC -O2 -o _cgo_export.o -c `pkg-config --cflags glib-2.0 gobject-2.0` 
_cgo_export.c
gcc -m64 -g -fPIC -O2 -o _cgo1_.o _cgo_main.o glib.cgo2.o _cgo_export.o `pkg-config
--libs glib-2.0 gobject-2.0` 
cgo -dynimport _cgo1_.o &gt;__cgo_import.c &amp;&amp; mv -f __cgo_import.c _cgo_import.c
6c -FVw _cgo_import.c
rm -f _obj/glib.a
gopack grc _obj/glib.a _go_.6  _cgo_defun.6 _cgo_import.6 glib.cgo2.o _cgo_export.o
cp _obj/glib.a "/Users/jim/go/pkg/darwin_amd64/glib.a"
cd gdk &amp;&amp; gomake install
CGOPKGPATH= cgo -- `pkg-config --cflags gdk-2.0` gdk.go
touch _cgo_run
6g -o _go_.6  gdk.cgo1.go _cgo_gotypes.go
6c -FVw -I/Users/jim/go/pkg/darwin_amd64 _cgo_defun.c
gcc -m64 -g -fPIC -O2 -o _cgo_main.o -c `pkg-config --cflags gdk-2.0`  _cgo_main.c
gcc -m64 -g -fPIC -O2 -o gdk.cgo2.o -c `pkg-config --cflags gdk-2.0`  gdk.cgo2.c
gcc -m64 -g -fPIC -O2 -o _cgo_export.o -c `pkg-config --cflags gdk-2.0`  _cgo_export.c
gcc -m64 -g -fPIC -O2 -o _cgo1_.o _cgo_main.o gdk.cgo2.o _cgo_export.o `pkg-config
--libs gdk-2.0 gthread-2.0` 
cgo -dynimport _cgo1_.o &gt;__cgo_import.c &amp;&amp; mv -f __cgo_import.c _cgo_import.c
6c -FVw _cgo_import.c
rm -f _obj/gdk.a
gopack grc _obj/gdk.a _go_.6  _cgo_defun.6 _cgo_import.6 gdk.cgo2.o _cgo_export.o
cp _obj/gdk.a "/Users/jim/go/pkg/darwin_amd64/gdk.a"
cd gdkpixbuf &amp;&amp; gomake install
CGOPKGPATH= cgo -- `pkg-config --cflags gdk-pixbuf-2.0` gdkpixbuf.go
touch _cgo_run
6g -I ../glib/_obj -o _go_.6  gdkpixbuf.cgo1.go _cgo_gotypes.go
6c -FVw -I/Users/jim/go/pkg/darwin_amd64 _cgo_defun.c
gcc -m64 -g -fPIC -O2 -o _cgo_main.o -c `pkg-config --cflags gdk-pixbuf-2.0`  _cgo_main.c
gcc -m64 -g -fPIC -O2 -o gdkpixbuf.cgo2.o -c `pkg-config --cflags gdk-pixbuf-2.0` 
gdkpixbuf.cgo2.c
gcc -m64 -g -fPIC -O2 -o _cgo_export.o -c `pkg-config --cflags gdk-pixbuf-2.0` 
_cgo_export.c
gcc -m64 -g -fPIC -O2 -o _cgo1_.o _cgo_main.o gdkpixbuf.cgo2.o _cgo_export.o `pkg-config
--libs gdk-pixbuf-2.0` 
cgo -dynimport _cgo1_.o &gt;__cgo_import.c &amp;&amp; mv -f __cgo_import.c _cgo_import.c
6c -FVw _cgo_import.c
rm -f _obj/gdkpixbuf.a
gopack grc _obj/gdkpixbuf.a _go_.6  _cgo_defun.6 _cgo_import.6 gdkpixbuf.cgo2.o
_cgo_export.o
cp _obj/gdkpixbuf.a "/Users/jim/go/pkg/darwin_amd64/gdkpixbuf.a"
cd gtk &amp;&amp; gomake install
CGOPKGPATH= cgo -- `pkg-config --cflags gtk+-2.0 gtksourceview-2.0` gtk.go
touch _cgo_run
6g -I ../glib/_obj -I ../gdk/_obj -I ../gdkpixbuf/_obj -o _go_.6  gtk.cgo1.go
_cgo_gotypes.go
6c -FVw -I/Users/jim/go/pkg/darwin_amd64 _cgo_defun.c
gcc -m64 -g -fPIC -O2 -o _cgo_main.o -c `pkg-config --cflags gtk+-2.0 gtksourceview-2.0`
 _cgo_main.c
gcc -m64 -g -fPIC -O2 -o gtk.cgo2.o -c `pkg-config --cflags gtk+-2.0 gtksourceview-2.0` 
gtk.cgo2.c
gtk.go: In function '_cgo_17e138e95a5d_Cfunc_gtk_about_dialog_set_artists':
gtk.go:1655: warning: passing argument 2 of 'gtk_about_dialog_set_artists' from
incompatible pointer type
gtk.go: In function '_cgo_17e138e95a5d_Cfunc_gtk_about_dialog_get_documenters':
gtk.go:2377: warning: assignment discards qualifiers from pointer target type
gtk.go: In function '_cgo_17e138e95a5d_Cfunc_gtk_about_dialog_set_documenters':
gtk.go:5071: warning: passing argument 2 of 'gtk_about_dialog_set_documenters' from
incompatible pointer type
gtk.go: In function '_cgo_17e138e95a5d_Cfunc_make_strings':
gtk.go:6935: warning: assignment from incompatible pointer type
gtk.go: In function '_cgo_17e138e95a5d_Cfunc_gtk_about_dialog_get_authors':
gtk.go:8005: warning: assignment discards qualifiers from pointer target type
gtk.go: In function '_cgo_17e138e95a5d_Cfunc_gtk_about_dialog_set_authors':
gtk.go:9161: warning: passing argument 2 of 'gtk_about_dialog_set_authors' from
incompatible pointer type
gtk.go: In function '_cgo_17e138e95a5d_Cfunc_next_gcharptr':
gtk.go:9430: warning: assignment from incompatible pointer type
gtk.go: In function '_cgo_17e138e95a5d_Cfunc_gtk_about_dialog_get_artists':
gtk.go:9704: warning: assignment discards qualifiers from pointer target type
gcc -m64 -g -fPIC -O2 -o _cgo_export.o -c `pkg-config --cflags gtk+-2.0
gtksourceview-2.0`  _cgo_export.c
gcc -m64 -g -fPIC -O2 -o _cgo1_.o _cgo_main.o gtk.cgo2.o _cgo_export.o -lpthread
`pkg-config --libs gtk+-2.0 gtksourceview-2.0` 
cgo -dynimport _cgo1_.o &gt;__cgo_import.c &amp;&amp; mv -f __cgo_import.c _cgo_import.c
6c -FVw _cgo_import.c
rm -f _obj/gtk.a
gopack grc _obj/gtk.a _go_.6  _cgo_defun.6 _cgo_import.6 gtk.cgo2.o _cgo_export.o
cp _obj/gtk.a "/Users/jim/go/pkg/darwin_amd64/gtk.a"
jchristoffs-iMac:go-gtk jim$ make example
cd glib &amp;&amp; gomake install
cd gdk &amp;&amp; gomake install
cd gdkpixbuf &amp;&amp; gomake install
cd gtk &amp;&amp; gomake install
cd example &amp;&amp; gomake
cd demo &amp;&amp; gomake
6g -o _go_.6 demo.go 
6l -o demo _go_.6
too many loads
make[2]: *** [demo] Error 1
make[1]: *** [all] Error 2
make: *** [example] Error 2
jchristoffs-iMac:go-gtk jim$</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/1570/0/demo.go" rel="nofollow">demo.go</a> (9763 bytes)</li>
</ol>
<pre class="notranslate">I have installed lots of third pkg.
The local godoc's /pkg page looks very messy.

I think show the gopath pkg in a separate page is better.</pre>