Paul, That seemed to work. I commented out assert() on lines 686 and 1739 and it compiled with no warnings. That's really strange, why would the compiler die because of an assert() call?
That's a good point about the 2.6 kernel, we're in the process of upgrading web servers, which also involves porting our proprietary code to 64bit so it'll be a while. 1.1.13 compiled fine, I could just use that until we're fully upgraded. What would you guys recommend? Thanks! --Cal On 8/2/07, Paul Lindner <[EMAIL PROTECTED]> wrote: > > I think this is a problem with the C syntax we're using that causes > gcc 2.96 to choke on the code. Can you try removing the assert() > calls and see if that helps? > > You do know that you're much better off using a 2.6 kernel based > distro for memcache? If that choice is within your control I suggest > you upgrade. > > On Wed, Aug 01, 2007 at 11:22:44AM -0500, Cal Heldenbrand wrote: > > Hi everyone, > > > > I'm trying to compile memcached 1.2.2 on a RHEL 2.1 box, gcc 2.96, and > I'm > > getting this compile error. Any ideas on why the "item" struct on that > line > > isn't defined? > > > > Thanks! > > > > > > if gcc -DHAVE_CONFIG_H -I. -I. -I. -DNDEBUG -g -O2 -MT > > memcached-memcached.o -MD -MP -MF ".deps/memcached-memcached.Tpo" \ > > -c -o memcached-memcached.o `test -f 'memcached.c' || echo > > './'`memcached.c; \ > > then mv -f ".deps/memcached-memcached.Tpo" ".deps/memcached-memcached.Po"; > \ > > else rm -f ".deps/memcached-memcached.Tpo"; exit 1; \ > > fi > > memcached.c: In function `complete_nread': > > memcached.c:688: parse error before `*' > > memcached.c:695: `it' undeclared (first use in this function) > > memcached.c:695: (Each undeclared identifier is reported only once > > memcached.c:695: for each function it appears in.) > > memcached.c:698: `comm' undeclared (first use in this function) > > memcached.c: In function `update_event': > > memcached.c:1741: parse error before `struct' > > memcached.c:1746: `base' undeclared (first use in this function) > > make[2]: *** [memcached-memcached.o] Error 1 > > > > -- > Paul Lindner ||||| | | | | | | | | | > [EMAIL PROTECTED] > >
