<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>174307</bug_id>
          
          <creation_ts>2007-04-12 18:07 0000</creation_ts>
          <short_desc>dev-ada/gtkada-2.8.0 - can&apos;t link anything</short_desc>
          <delta_ts>2007-05-28 07:25:04 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tomek.walkuski@gmail.com</reporter>
          <assigned_to>ada@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>tomek.walkuski@gmail.com</who>
            <bug_when>2007-04-12 18:07:08 0000</bug_when>
            <thetext>I have modified gtkada-2.4.0-r1.ebuild and gtkada-2.8.0 sources to build GtkAda 2.8.0

Reproducible: Always

Steps to Reproduce:
1. Renamed ebuild from gtkada-2.4.0-r1.ebuild to gtkada-2.8.0.ebuild
2. Renamed name of sources downloaded from AdaCore, as above.
3. Created local overlay and successfully merged.

Actual Results:  
When I try compile GtkAda tutorial examples or own piece of code I can&apos;t link anything. `gtkada-config` script searches include in /usr/include/gtkada instead of /usr/include/ada/gtkada:

tomek@gentoo [~/Dokumenty/ADA/tutorial-examples/packbox] $ make
gnatmake packbox_test `gtkada-config`
gnatgcc -c -I/usr/include/gtkada packbox_test.adb
packbox_test.adb:3:06: file &quot;gtk.ads&quot; not found
packbox_test.adb:4:06: file &quot;gtk.ads&quot; not found
packbox_test.adb:6:06: file &quot;glib.ads&quot; not found
packbox_test.adb:6:06: &quot;Packbox (spec)&quot; depends on &quot;Glib (spec)&quot;
packbox_test.adb:6:06: &quot;Packbox_Test (body)&quot; depends on &quot;Packbox (spec)&quot;
packbox_test.adb:6:06: &quot;Packbox (spec)&quot; depends on &quot;Gtk (spec)&quot;
gnatmake: &quot;packbox_test.adb&quot; compilation error
make: *** [all] Błąd 4

And:
tomek@gentoo [~/Dokumenty/ADA/tutorial-examples/packbox] $ gnatmake -I/usr/include/ada/gtkada packbox_test.adb
gnatbind -aO./ -I/usr/include/ada/gtkada -I- -x packbox_test.ali
gnatlink packbox_test.ali
b~packbox_test.o: In function `adainit&apos;:
b~packbox_test.adb:(.text+0x163): undefined reference to `glib___elabs&apos;
b~packbox_test.adb:(.text+0x169): undefined reference to `glib_E&apos;

(...)

packbox_test.adb:(.text+0x1d18): undefined reference to `gtk__box__gtk_new_hbox&apos;
packbox_test.adb:(.text+0x1d4f): undefined reference to `gtk__button__gtk_new&apos;
packbox_test.adb:(.text+0x21cf): undefined reference to `gtk_main&apos;
collect2: ld returned 1 exit status
gnatlink: cannot call /usr/i686-pc-linux-gnu/gnat-gcc-bin/4.1/gnatgcc
gnatmake: *** link failed.

Also revdep-rebuild tool ALWAYS want re-emerge GtkAda. 

Expected Results:  
Expected results? Everything should be fine :)

Surprisingly downgrade to gtkada-2.4.0-r1 produces this same output</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>george@gentoo.org</who>
            <bug_when>2007-04-13 06:49:38 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; Steps to Reproduce:
&gt; 1. Renamed ebuild from gtkada-2.4.0-r1.ebuild to gtkada-2.8.0.ebuild
&gt; 2. Renamed name of sources downloaded from AdaCore, as above.
Huh? You renamed the 2.4 sources to 2.8? But that does not make it 2.8. For that you need the real 2.8 sources from libre2.adacore.com, otherwise, what&apos;s the point?

Also, sorry about the confusion. Apparently I have the gtkada-2.8.0 in my overlay. IIRC it still had some problems, so I was working on it (so, simple rename of the ebuild did not cut it. I don&apos;t quite remember now, but it may have required a newer gnat).


&gt; Actual Results:  
&gt; When I try compile GtkAda tutorial examples or own piece of code I can&apos;t link
&gt; anything. `gtkada-config` script searches include in /usr/include/gtkada
&gt; instead of /usr/include/ada/gtkada:
Well, this should be taken care of by the sed instruction in src_unpack. Are you sure you were working off the latest gtkada ebuild? That should be gtkada-2.4.0-r2.ebuild, the only one in portage as of now.

The other error messages hint at the problem with your gnat installation in fact. Did you follow the instructions spitted by pkg_postints? (you should see them after the package is merged) The ones about running env-update as root and then source /etc/profile in the session where you intend to use gnat and libs (right after the emerge, this will be picked up the next tipe you login after running env-update).
Also, just in case, what gnat compilers do you have installed? The dev-lang/gnat has been deprecated for a long time and soon will be pulled. You should only have gnat-gpl or gnat-gcc or some their combination installed. Can you compile arbitrary Ada code, like your own projects that do not use gtkada or other libs? In any case, if you have problems there, I&apos;d suggest doing a clean reinstall of gnat compiler(s).

George</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>george@gentoo.org</who>
            <bug_when>2007-04-13 06:55:57 0000</bug_when>
            <thetext>Created an attachment (id=116126)
gtkada-2.8.0.ebuild

This is the 2.8 ebuid that I have in my overlay. Actually now, that I looked into it, I see that changes were mostly cleanups and making the deps right. This one may resolve the glib linkage error that you had. However this line from your output above:
gnatlink: cannot call /usr/i686-pc-linux-gnu/gnat-gcc-bin/4.1/gnatgcc

still makes me suspect that you did not activate a new profile after installing the library or may be even some similar issue with the compiler itself. Remember to run env-update after emerging gnat or its libs!

George
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tomek.walkuski@gmail.com</who>
            <bug_when>2007-04-13 08:13:04 0000</bug_when>
            <thetext>&gt; Huh? You renamed the 2.4 sources to 2.8? But that does not make it 2.8. For
&gt; that you need the real 2.8 sources from libre2.adacore.com, otherwise, what&apos;s
&gt; the point?
Lol, no. I had 2.8 sources from AdaCore, I have not write it clear enough.

Yes, I always perform env-update &amp;&amp; source /etc/profile 

I have gnat-gcc and earlier I hadn&apos;t problems with gtada-2.4 and other libraries. Only after &quot;upgrade&quot;.  

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>george@gentoo.org</who>
            <bug_when>2007-05-27 15:00:15 0000</bug_when>
            <thetext>Ok, got to this (sorry for the delay - I got shot, just recovered enough to get back to doing stuff).

I see what was the problem: apparently there are significant changes under the hood. Even though gtkada, following the same commands in the ebuild, compiles and installs .. something (and btw not complaining - there are die&apos;s everywhere), it does not install hald of what should be installed, it seems. All the libs are missing and I need to check the sources.. Now I onlyneed to fix this :)..

George</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tomek.walkuski@gmail.com</who>
            <bug_when>2007-05-27 17:06:47 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; Ok, got to this (sorry for the delay - I got shot, just recovered enough to get
&gt; back to doing stuff).
&gt; 
Happy to hear it!

I have same thing with gtkada-2.10.0, I saw - there is no gtkada-config script in src/ directory. And after make... there is some access violation with install...

Maybe tomorrow I will write more.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>george@gentoo.org</who>
            <bug_when>2007-05-27 18:32:21 0000</bug_when>
            <thetext>Ok, 2.8.0 is in the tree, please test. The ebuild actually had to be changed somewhat, like in totally rewritten :).
Will try 2.0.0 soon.

George</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>george@gentoo.org</who>
            <bug_when>2007-05-27 19:47:28 0000</bug_when>
            <thetext>2.10 seems similar to 2.8, even in that the provided make install does not actually install libs :) (the .so and .a files).

A list of things to improve/take care, so that I don&apos;t fogret:
1. make sure all ad? files are installed. I think I skipped some in the subdirs in the 2.8

2. install info files

3. should I pregenerate gpr files? Right now the whole dir is installed and user should rum make himself basically.

George
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>george@gentoo.org</who>
            <bug_when>2007-05-28 07:25:04 0000</bug_when>
            <thetext>2.10.0 is in the tree and pp. 1 and 2 are implemented (and backported to 2.8.0). I&apos;ll let p. 3 slide for now, as I did not do anything yet about providing .gpr files for the libs in general yet.

George</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>116126</attachid>
            <date>2007-04-13 06:55 0000</date>
            <desc>gtkada-2.8.0.ebuild</desc>
            <filename>gtkada-2.8.0.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA2IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6ICQKCmluaGVyaXQgZXV0aWxzIGduYXQKCk5hbWU9Ikd0a0FkYS1ncGwiCkRFU0NSSVBUSU9O
PSJHdGsrIGJpbmRpbmdzIHRvIHRoZSBBZGEgbGFuZ3VhZ2UiCkhPTUVQQUdFPSJodHRwczovL2xp
YnJlMi5hZGFjb3JlLmNvbS9HdGtBZGEvIgpTUkNfVVJJPSJodHRwOi8vZGV2LmdlbnRvby5vcmcv
fmdlb3JnZS9zcmMvJHtOYW1lfS0ke1BWfS50Z3oiCgpMSUNFTlNFPSJHUEwtMiIKU0xPVD0iMiIK
S0VZV09SRFM9In5hbWQ2NCB+eDg2IgpJVVNFPSJubHMgb3BlbmdsIgoKREVQRU5EPSJ2aXJ0dWFs
L2duYXQKCT49ZGV2LWxpYnMvZ2xpYi0yLjguMAoJPj14MTEtbGlicy9wYW5nby0xLjEwLjAKCT49
ZGV2LWxpYnMvYXRrLTEuMTAuMAoJPj14MTEtbGlicy9ndGsrLTIuOC4xMwoJPj1zeXMtYXBwcy9z
ZWQtNCIKUkRFUEVORD0iIgoKUz0iJHtXT1JLRElSfS8ke05hbWV9LSR7UFZ9IgoKIyBhIGxvY2F0
aW9uIHRvIHRlbXBvcmFyaWx5IGtlZXAgY29tbW9uIHN0dWZmIGluc3RhbGx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