* problem for building a shared library
@ 2009-03-18 22:05 xavier grave
2009-03-19 7:15 ` Simple Fix: " anon
0 siblings, 1 reply; 3+ messages in thread
From: xavier grave @ 2009-03-18 22:05 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Simple Fix: Re: problem for building a shared library
2009-03-18 22:05 problem for building a shared library xavier grave
@ 2009-03-19 7:15 ` anon
2009-03-19 8:32 ` xavier grave
0 siblings, 1 reply; 3+ messages in thread
From: anon @ 2009-03-19 7:15 UTC (permalink / raw)
-- 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 <gprr6s$b57$1@ccpntc8.in2p3.fr>, xavier grave <xavier.grave@ipno.in2p3.fr> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Simple Fix: Re: problem for building a shared library
2009-03-19 7:15 ` Simple Fix: " anon
@ 2009-03-19 8:32 ` xavier grave
0 siblings, 0 replies; 3+ messages in thread
From: xavier grave @ 2009-03-19 8:32 UTC (permalink / raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks for your fix, I will try to "port" it to my problem.
anon a �crit :
> -- 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 <gprr6s$b57$1@ccpntc8.in2p3.fr>, xavier grave <xavier.grave@ipno.in2p3.fr> 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
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknCAxIACgkQVIZi0A5BZF5SKwCeL++X5QOJLe5xtPsOlobDZ4E4
HKAAnivqwAvygUk42fQk1TjyS2zG5d6O
=oHuj
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-19 8:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-18 22:05 problem for building a shared library xavier grave
2009-03-19 7:15 ` Simple Fix: " anon
2009-03-19 8:32 ` xavier grave
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox