Hi David: Thanks... you're right - Apache 1.3.9 does not build because
it can't find <db.h>. Using the extra include got it working.
(set "EXTRA_INCLUDES=-I/usr/include/db1" in apache_1.3.9/src/Configuration.tmpl)
Note: Apache 1.3.14 builds fine on Redhat 7 (apply RPM update below)
> Why is it a compiler / gcc issue?
Sorry... it's not. I meant 'Redhat issue' since Apache 1.3.9 builds fine under
Redhat 6.1 . I filed a bug report with RedHat since 1.3.9 is our production envt.
I also applied the RPM update you mentioned but that didn't fix the build
problem by itself.
Regards,
Sonam
David Sainty wrote:
>
> Sonam,
>
> Why is it a compiler / gcc issue?
>
> In apache_1.3.9/src/modules/standard/mod_auth_dbm.c:
>
> #if defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
> && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
> #include <db1/ndbm.h>
> #else
> #include <ndbm.h>
> #endif
> ... This finds /usr/include/db1/ndbm.h but , in ndbm.h we have:
>
> #include <db.h>
>
> Thinks gcc: "db.h where?? No, I don't know what to do!"
>
> Try adding a -I/usr/include/db1 to your compilation and you should
> have more luck.
>
> BTW, regarding your note about the gcc in Red Hat Linux 7.0... Red Hat has
> worked hard to address any known issues with the gcc release in 7.0. For
> more information and an errata RPM:
>
> http://www.redhat.com/support/errata/RHBA-2000-132.html
>
> Regards,
>
> David S..
>
> On Tue, 16 Jan 2001, Sonam Chauhan wrote:
>
> > =========
> > ndbm.h and db.h both exist in /usr/include/db1/
> > /usr/include no longer contains db.h as in Redhat 6.1.
> >
> > Copying db.h from another 6.1 install to /usr/lib/include
> > on the redhat 7 machine still fails (risky idea anyway)
> >
> > Anyone experience something similar? Pointers appreciated.
> >
> > Regards,
> > Sonam
> >
> > P.S:
> > The gcc version reported by Redhat 7:
> > gcc version 2.96 20000731 (Red Hat Linux 7.0)
> > GNU's take on this: http://gcc.gnu.org/gcc-2.96.html
> >
> >
> >
--
Sonam Chauhan
Electronic Commerce
Corporate Express Australia Ltd.
Phone: +61-2-9335-0725 Fax: +61-2-9335-0753
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug