httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject Re: [STATUS] Wed Jun 4 08:10:42 EDT 1997
Date Wed, 04 Jun 1997 17:45:11 GMT
> "twenty, twenty, twenty fours to go... I wanna be sedated"
> 

Are you positively sure that SVR4 users won't complain about the
"BrowserMatch" error that occurs as long as the "-lc" is still in the
Configure settings? ("Browser regex could not be compiled.")

I think this is an error that can easily be avoided.

I reported this bug earlier in Message-Id: <199706021734.TAA05194@deejai.mch.sni.de>
I'll append it below.

    -Martin
[PS: Other than that, I think 1.2b11 is a perfect candidate for 1.2]

> There's one more bug in the *-sysv4 versions: the final link command which
> is generated by Configure is something like this:
>
> $ cc -o httpd alloc.o ...many.o...  -lsocket -lnsl -lc regex/libregex.a
>
> The problem with this is that the regex calls will be satisfied from the
> (broken?) libc instead of the provided libregex, which is BAD(TM).
>
> The effect is that every attempt to start apache results in an error:
>
> > Syntax error on line 38 of /home/martin/apache/src/TEST/conf/httpd.conf:
> >
> > Browser regex could not be compiled.
>
> ### NOTE: ###
> The "-lc" line was a relic from the days when strcasecmp was taken from
> the SVR4-libucb (this library must be included only _after_ including
> libc, or BAD things will happen with readdir(3C)). Now that strcasecmp()
> is brought by apache it isn't necessary any longer to use "-lc" at all.
>
>     Martin
>
> The resulting patch is therefore:
>
> diff -u -r1.37 Configure
> --- Configure   1997/05/13 07:45:04     1.37
> +++ Configure   1997/06/02 17:32:26
> @@ -393,9 +393,9 @@
>         ;;
>      *-sni-sysv4*)
>         OS='SVR4'
> -       CFLAGS="$CFLAGS -DSVR4"
> +       CFLAGS="$CFLAGS -DSVR4 -D_XPG_IV -DHAVE_MMAP -DHAVE_SHMGET"
>         DEF_WANTHSREGEX=yes
> -       LIBS="$LIBS -lsocket -lnsl -lc"
> +       LIBS="$LIBS -lsocket -lnsl"
>         ;;
>      DS/90\ 7000-*-sysv4*)
>         OS='UXP/DS'
> @@ -406,7 +406,7 @@
>      *-sysv4*)
>         OS='SVR4'
>         CFLAGS="$CFLAGS -DSVR4"
> -       LIBS="$LIBS -lsocket -lnsl -lc"
> +       LIBS="$LIBS -lsocket -lnsl"
>         ;;
>      *-uts*)
>         OS='Amdahl UTS'
>


-- 
| S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Mime
View raw message