Hi Dazhi, I'm sorry for the late response.

I was able to get Apache 1.3.14 compiling with CIL 1.3.6 (CIL 1.3.7
fails), with some changes, like passing an extra -ldl in LDFLAGS. This
shouldn't be necessary, but... 

I was able to produce an httpd binary in this way (and an httpd_comb.c
for analysis). But other binaries, like htpasswd, still fail to compile.



On Wed, 2009-07-29 at 12:12 -0500, Dazhi Zhang wrote: 
> Hi Kristis,
> 
> apache uses libtool, and in the file build/config_vars.mk, the LIBTOOL 
> is defined to
> /usr/share/apr-1.0/build/libtool $(LTFLAGS)
> 
> In the file  /usr/share/apr-1.0/build/libtool there is definition of AR 
> and LD, I change them as:
> AR="cilly --merge --mode=AR"
> LD="cilly --merge"
> 
> but I got following error:
> /usr/lib/gcc/i486-linux-gnu/4.3.3/include/stddef.h:214: Error: Invalid 
> combination of type specifiers
> 
> this line is typedef __SIZE_TYPE__ size_t;
> 
> have you ever seen such problems? And what version of  appache and CIL 
> have you succeed in?
> 
> Thanks!
> -Dazhi
> 
> Kristis Makris wrote:
> > Hi Dazhi,
> >
> > From what I have experienced, the issue is that this particular .a file
> > produced was not produced by setting AR="cilly --merge --mode=AR".
> > Either because AR was not defined that way (you omitted defining it),
> > or, as I have experienced with older versions of Apache, because even
> > though you may define the AR variable, the Makefiles used by Apache may
> > contain a hardcoded call to "ar" instead of use the AR environment
> > variable.
> >
> > So this .a file contains object code instead of source code, and later
> > LD, which should be a call to cilly, gets as input object code and
> > source code and cannot merge the two.
> >
> > So, make sure you define AR, and make sure the Makefiles use AR, and not
> > "ar".
> >
> > Also make sure you define LD appropriately.
> >
> > I hope this helps.
> >
> > Kristis
> >
> > On Tue, 2009-07-28 at 11:54 -0500, Dazhi Zhang wrote:
> >   
> >> hi,
> >> I am trying using CIL1.3.7 to compile and merge apache 2.2.11, here is 
> >> the steps:
> >> 1: CC="cilly --merge"
> >> 2: change LTFLAGS in build/config_vars.mk, from --silent to --silent 
> >> --tag=CC
> >>
> >> but I got errors
> >> " /home/zw/test/httpd-2.2.11/srclib/pcre/.libs/libpcre.a: could not read 
> >> symbols: Archive has no index; run ranlib to add one
> >> collect2: ld returned 1 exit status "
> >>
> >> I saw a same post of the same problem, does anyone has a solution now?
> >>
> >> Thanks
> >> -Dz
> >>
> >>
> >> ------------------------------------------------------------------------------
> >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
> >> 30-Day 
> >> trial. Simplify your report design, integration and deployment - and focus 
> >> on 
> >> what you do best, core application coding. Discover what's new with 
> >> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> >> _______________________________________________
> >> CIL-users mailing list
> >> CIL-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/cil-users
> >>     
> 

Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to