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 X-Google-Thread: 103376,59f670d43fa7b69a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Simple Fix: Re: problem for building a shared library Reply-To: no to spamers (No@email.given.org) References: X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Thu, 19 Mar 2009 07:15:52 GMT NNTP-Posting-Host: 12.65.102.224 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1237446952 12.65.102.224 (Thu, 19 Mar 2009 07:15:52 GMT) NNTP-Posting-Date: Thu, 19 Mar 2009 07:15:52 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:5152 Date: 2009-03-19T07:15:52+00:00 List-Id: -- A quick fix: Change the first line of "second_level.gpr" from: with "common", "first_level"; -- to with "common"; -- file: second_level.gpr ----------------------------------------- cut with "common"; -- "first_level"; project second_level is for Object_Dir use Common.Build_Dir & "/obj"; for Source_Dirs use ("src_first_level"); for Library_Name use "second_level"; for Library_Dir use Common.Build_Dir & "/lib"; for Library_Kind use Common.Libtype; package Compiler is for Default_Switches ("Ada") use Common.Compiler'Default_Switches ("Ada"); end Compiler; end second_level; ------------------------------------------------------------- cut In , xavier grave writes: >Hi, > >I'm trying to build shared and static library for polyorb in order to >build debian packages but certainly because of the limited with in one >of two interdependent gpr files. Some problem arise when I try to >compile the shared lib, I have reduced to a very simple example my >problem (you can download it at http://dl.free.fr/pX36o8pfk). It >produces the following error : > >building dynamic library for project second_level >/usr/bin/gcc -shared -o >/home/xavier/labo/test_gpr/DYNAMIC/lib/libsecond_level.so >- -L/usr/lib/gcc/powerpc-linux-gnu/4.3.3/adalib/ >- -L/home/xavier/labo/test_gpr/DYNAMIC/lib -lfirst_level >- -L/usr/lib/gcc/powerpc-linux-gnu/4.3.3/adalib/ -lgnat-4.3 >/home/xavier/labo/test_gpr/DYNAMIC/obj/base.o >/usr/bin/ld: cannot find -lfirst_level >collect2: ld returned 1 exit status >gnatmake: gcc execution error >make: *** [dynamic] Erreur 4 > >Does somebody already had similar problem ? > >Thanks in advance, xavier