* installing Community 2018 gnatcoll on Debian vs -liconv
@ 2018-08-01 22:45 Stephen Leake
2018-08-01 22:50 ` Michael Rohan
2018-08-02 7:38 ` briot.emmanuel
0 siblings, 2 replies; 4+ messages in thread
From: Stephen Leake @ 2018-08-01 22:45 UTC (permalink / raw)
I'm trying to install gnatcoll for Community 2018 on Debian from source, and it's complaining it can't find -liconv.
I need to install from source because the gnatcoll included in the binary install doesn't include the xref package. For some reason, the xref package requires -liconv.
I have previously installed gnatcoll gpl 2017, and it found -liconv with no problem; I don't understand what changed.
I can usually debug this sort of thing, but this one has me stumped. I managed to make it work on Windows!
Apparently in Debian iconv is provided by libc6 (although I can no longer find the web page I got that from); I have the libc6-dev package installed.
On the other hand, I can't find libiconv.a; I tried:
find /lib -name "*iconv*"
find /usr/lib -name "*iconv*"
nothing showed up.
Where is -liconv in Debian?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: installing Community 2018 gnatcoll on Debian vs -liconv
2018-08-01 22:45 installing Community 2018 gnatcoll on Debian vs -liconv Stephen Leake
@ 2018-08-01 22:50 ` Michael Rohan
2018-08-02 7:38 ` briot.emmanuel
1 sibling, 0 replies; 4+ messages in thread
From: Michael Rohan @ 2018-08-01 22:50 UTC (permalink / raw)
Hi,
Related to GNAT 2018 and libiconv: I had to adjust my LD_LIBRARY_PATH on Ubuntu to include the lib/gps directory to support the ld.so libiconv.so dependency for gnatdoc. Just fyi, not related to building from source.
Take care,
Michael.
On Wednesday, August 1, 2018 at 3:45:22 PM UTC-7, Stephen Leake wrote:
> I'm trying to install gnatcoll for Community 2018 on Debian from source, and it's complaining it can't find -liconv.
>
> I need to install from source because the gnatcoll included in the binary install doesn't include the xref package. For some reason, the xref package requires -liconv.
>
> I have previously installed gnatcoll gpl 2017, and it found -liconv with no problem; I don't understand what changed.
>
> I can usually debug this sort of thing, but this one has me stumped. I managed to make it work on Windows!
>
> Apparently in Debian iconv is provided by libc6 (although I can no longer find the web page I got that from); I have the libc6-dev package installed.
>
> On the other hand, I can't find libiconv.a; I tried:
>
> find /lib -name "*iconv*"
> find /usr/lib -name "*iconv*"
>
> nothing showed up.
>
> Where is -liconv in Debian?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: installing Community 2018 gnatcoll on Debian vs -liconv
2018-08-01 22:45 installing Community 2018 gnatcoll on Debian vs -liconv Stephen Leake
2018-08-01 22:50 ` Michael Rohan
@ 2018-08-02 7:38 ` briot.emmanuel
2018-08-14 19:33 ` Stephen Leake
1 sibling, 1 reply; 4+ messages in thread
From: briot.emmanuel @ 2018-08-02 7:38 UTC (permalink / raw)
lib iconv is in fact part of libc directly.
But apparently AdaCore forgot that detail (I guess in their context they find -liconv because it is part of gcc or some such). They wanted to simplify the setup by getting rid of `configure` (which is good for Windows
users), but they made things harder for most people...
The workaround I have found is to set the variable
export GNATCOLL_ICONV_OPT" = "-lc"
Emmanuel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: installing Community 2018 gnatcoll on Debian vs -liconv
2018-08-02 7:38 ` briot.emmanuel
@ 2018-08-14 19:33 ` Stephen Leake
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Leake @ 2018-08-14 19:33 UTC (permalink / raw)
On Thursday, August 2, 2018 at 2:38:39 AM UTC-5, briot.e...@gmail.com wrote:
> lib iconv is in fact part of libc directly.
>
> But apparently AdaCore forgot that detail (I guess in their context they find -liconv because it is part of gcc or some such). They wanted to simplify the setup by getting rid of `configure` (which is good for Windows
> users), but they made things harder for most people...
>
> The workaround I have found is to set the variable
>
> export GNATCOLL_ICONV_OPT" = "-lc"
I finally got around to trying this, and it works for me.
Thanks.
>
> Emmanuel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-08-14 19:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-01 22:45 installing Community 2018 gnatcoll on Debian vs -liconv Stephen Leake
2018-08-01 22:50 ` Michael Rohan
2018-08-02 7:38 ` briot.emmanuel
2018-08-14 19:33 ` Stephen Leake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox