You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Andrey Chernov <ac...@nagual.pp.ru> on 1997/11/21 22:45:44 UTC

os-freebsd/1450: FreeBSD Configure needs additional tuning (ctype and regex)

>Number:         1450
>Category:       os-freebsd
>Synopsis:       FreeBSD Configure needs additional tuning (ctype and regex)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Nov 21 13:50:01 PST 1997
>Last-Modified:
>Originator:     ache@nagual.pp.ru
>Organization:
apache
>Release:        1.3b3
>Environment:
FreeBSD 3.0-CURRENT
>Description:
Two problems are here:
1) Characers are not unsigned making all ctype operations with 8bit data
dangerous. For more info see PR#1305
2) FreeBSD already have Henry Spencer regex in libc, so don't need yet one
from apache.
>How-To-Repeat:

>Fix:
Apply this patch:

*** src/Configure.orig  Sat Nov 15 22:04:47 1997
--- src/Configure       Fri Nov 21 22:15:54 1997
***************
*** 345,350 ****
--- 345,352 ----
        ;;
      *-freebsd*)
        OS='FreeBSD'
+       CFLAGS="$CFLAGS -funsigned-char"
+       DEF_WANTHSREGEX=no
        LIBS="$LIBS -lcrypt"
        DBM_LIB=""
        DB_LIB=""
%0
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]