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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5fad37e7b6e75b9d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.14.169 with SMTP id q9mr17192906pbc.2.1319453243732; Mon, 24 Oct 2011 03:47:23 -0700 (PDT) Path: c1ni7179pbr.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Linking problem in GPS 2011 Date: Mon, 24 Oct 2011 12:47:23 +0200 Organization: A noiseless patient Spider Message-ID: References: <5140065e-51a7-446d-8b86-13bd59b92bde@x7g2000yqn.googlegroups.com> <87fwimjd6b.fsf@ludovic-brenta.org> <4EA2A18E.8000604@obry.net> Mime-Version: 1.0 Injection-Date: Mon, 24 Oct 2011 10:47:23 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="i/A9DDFtm92PEI+jw3DLWQ"; logging-data="21956"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188OaZ5BuxqCNVLLlGIT/qH" User-Agent: KNode/4.7.2 Cancel-Lock: sha1:WHVfOGYMl1A9jJ8qgszUvD0JiHU= Xref: news2.google.com comp.lang.ada:14168 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Date: 2011-10-24T12:47:23+02:00 List-Id: Pascal Obry wrote: > > Ludovic, > >> One solution is to >> >> export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu > > Shouldn't this be LIBRARY_PATH instead of LD_LIBRARY_PATH? Seconded, I ran into the same problem some months ago when the 2011 version came out. LIBRARY_PATH is needed at linking time. LD_LIBRARY_PATH is needed to find shared libraries at execution time. Finally, if your projects have C/C++ sources too, you'll likely need to fix your C_INCLUDE_PATH too, or basic C headers won't be found either. >From my Ada env setup file: --8<-- # Fix paths for multiarch, broken since 2011 version export C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/include/i386-linux-gnu export LIBRARY_PATH=$LIBRARY_PATH:/usr/lib/i386-linux-gnu --8<-- (And I haven't had to fix LD_LIBRARY_PATH yet... ?) > >> before you call gnatmake from GPS. > > Pascal. >