From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8f2051e4ca3441c6 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!a3g2000prm.googlegroups.com!not-for-mail From: deadlyhead Newsgroups: comp.lang.ada Subject: Re: Issues building testgtk on Debian Lenny/Sid Date: Thu, 4 Sep 2008 00:53:41 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6d0720c3-8744-45b0-8794-5805a6863a63@a3g2000prm.googlegroups.com> References: NNTP-Posting-Host: 67.171.30.9 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1220514821 11656 127.0.0.1 (4 Sep 2008 07:53:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 4 Sep 2008 07:53:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a3g2000prm.googlegroups.com; posting-host=67.171.30.9; posting-account=snJuNwoAAABnc8T9lYkBlDQrDdSjOjG2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-us) AppleWebKit/525.1+ (KHTML, like Gecko, Safari/525.1+) epiphany-webkit,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7636 Date: 2008-09-04T00:53:41-07:00 List-Id: On Sep 3, 11:35=A0pm, deadlyhead wrote: > I'm learning GtkAda at the moment and currently I'm looking to build > testgtk. =A0I've gotten through the compilation and binding stages, but > now on link I get the following: > > gnatbind -aI/usr/share/ada/adainclude/gtkada2 -aO/usr/lib/adalib/ > gtkada2 -I- -x /home/deadlyhead/temp/sources/GtkAda/testgtk/obj/ > testgtk.ali > gnatlink /home/deadlyhead/temp/sources/GtkAda/testgtk/obj/testgtk.ali - > L/usr/lib -lgtkada2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 - > lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender - > lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 - > lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -o /home/deadlyhead/temp/ > sources/GtkAda/testgtk/testgtk > /usr/bin/ld: cannot find -lgtkada_gl > collect2: ld returned 1 exit status > gnatlink: error when calling /usr/bin/gcc-4.3 > gnatmake: *** link failed. > > I feel like this should be dead simple, but honestly, I've never fully > understood how ld works. =A0In /usr/lib, I have both libgtkada_gl.so. > 2.12.0 and libgtkada_gl.a, plus all of the symlinks one would expect, > but ld just will not pick up on them. =A0I've run ldconfig and > everything, but the error persists. =A0I must be missing something here, > but I'm at a loss. > > I'm currently using libgtkada2.12 from Debian Sid, with all of the > necessary libraries such as the mesa libs and libgtkada_gl2.12. > Everything that has a -dev package has had it installed. =A0What could I > be missing? Alright, so I got it all to compile. I don't know what it was, but I went ahead and did a gnatclean, plus removed all the object files generated from C code. I then recompiled the C code by hand, ran gnatmake -Ptestgtk.gpr `gtkada-config`, and then linked by hand at the end. Everything works just fine, now. Still, I'm confused as hell.