axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damitha Kumarage <>
Subject Re: [Axis2] Same source file compiled multiple times in the build
Date Fri, 28 Apr 2006 03:59:02 GMT
Hi Samisa,
This happens only when it compile a library. When it compile an 
executable it won't happen twice. For example if you test this for an 
client executable you can see it compile only once. But if you go to 
server samples you can see that it build twice. I think this is how GNU 
build works and we can't do anything about it. To verify this I looked 
at other two projects(libdvdcss and wsdl pull) using GNU build system 
and found that there same thing happen.

Samisa Abeysinghe wrote:

> Damitha, the problem is partially fixed but not completely.
> Digging further into the problem, I found that almost all source files 
> are compiled twice.
> 1. Source file compiled with "-fPIC -DPIC" options and object placed 
> in .libs folder inside source folder
> 2. Source file compiled without "-fPIC -DPIC" options and object 
> placed in source folder
> I do not think that this is necessary, we should have only one 
> compiling of a given source.
> Thanks,
> Samisa...
> Damitha Kumarage wrote:
>> Hi Samisa,
>> Thanks very much for pointing this out.  I found the reason for this 
>> and fixed it.
>> Damitha
>> Samisa Abeysinghe wrote:
>>> It looks to me that the same source file is compiled more than once  
>>> in some cases when I do a full build.
>>> This must be the reason for the *very* slow build time.
>>> To verify this do a 'make clean' and then 'sh > out'
>>> Then 'vi out' and '/http_worker.c' and search next. There are 
>>> multiple occurences.
>>> This we have to fix. It is annyoing to wait till a build finishes - 
>>> takes *so long* :-(
>>> Samisa...

View raw message