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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: GNAT linker error Date: Sun, 25 Jan 2015 15:35:01 +0100 Organization: cbb software GmbH Message-ID: <1jku6ojzl4vi4.ndzc5pnnk5l6.dlg@40tude.net> References: <63e1488a-6a1b-46e7-8984-240faef1fc67@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: O5wBfA8x5QTLTrmrCnAc2g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:24735 Date: 2015-01-25T15:35:01+01:00 List-Id: On Sun, 25 Jan 2015 01:45:53 -0800 (PST), hosszu.gabor90@gmail.com wrote: > I get the following if I try to compile the GtkAda minimal example of GNAT > Programming Studio 6.1.0w: [...] > gnatlink: error when calling /usr/bin/gcc-4.6 > > The command executed by GPS: > > gnatmake -d -P/home/myuser/own projects/ada/AdaTest.gpr -vP2 -j4 -g > The same command works if I try it from a terminal and it also worked in > GPS 5.0 (which executed the same command as the newest, 6.1.0w) What can > cause this and how can I make GPS work? Assuming that the project file AdaTest.gpr has "with gtkada.gpr" referenced, it is likely a GNAT-GtkAda-GTK configuration problem, because it must reference all libraries needed. But it seems that pixman is not there. It might be a version mismatch between cairo you have and cairo GtkAda expects. If you run $ gtkada-config you will see the include paths and libraries GtkAda uses. Furthermore, you are using a very outdated stuff. The actual version of GNAT is 4.9, the actual version of GTK is 3.8. E.g. gtkada-config output on Fedora 21 (GtkAda3-devel-3.8.2-2.fc21.x86_64): -aI/usr/include/gtkada -aO/usr/lib64/gtkada/relocatable -largs -L/usr/lib64/gtkada/relocatable -lgtkada -Wl,--as-needed -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 No pixman as well. P.S. There was a big incompatibility leap from GTK 2.x to GTK 3.x. If you want to learn GTK and GtkAda, better start with 3.8. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de