You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Paul Sanchez <pj...@alum.mit.edu> on 1998/05/19 04:55:19 UTC
os-next/2248: compile fails for src/support/logresolve.c due to missing strdup
>Number: 2248
>Category: os-next
>Synopsis: compile fails for src/support/logresolve.c due to missing strdup
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Mon May 18 20:00:01 PDT 1998
>Last-Modified:
>Originator: pjs@alum.mit.edu
>Organization:
apache
>Release: 1.3b6
>Environment:
NextStep 3.3, OpenStep 4.2, system compiler
>Description:
I noted in the bug database the comment that apache supplies its own strdup, but this is incorrect for logresolve.c. The context-diff patch supplied below fixes this for NeXT, and I expect for other systems missing strdup as well.
>How-To-Repeat:
>Fix:
*** logresolve.c Mon May 18 21:30:14 1998
--- logresolve.c Mon May 18 21:30:14 1998
***************
*** 50,55 ****
--- 50,57 ----
#include <sys/socket.h>
+ #include "conf.h"
+
#include <netinet/in.h>
#ifndef MPE
#include <arpa/inet.h>
***************
*** 71,77 ****
/* number of buckets in cache hash table */
#define BUCKETS 256
! #ifdef MPE
char *strdup (const char *str)
{
char *dup;
--- 73,79 ----
/* number of buckets in cache hash table */
#define BUCKETS 256
! #ifdef NEED_STRDUP
char *strdup (const char *str)
{
char *dup;
>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. ]