Date: Sun, 24 Mar 2002 08:04:54 -0800 (PST) From: Jerome Mainka <mainka@ixo.fr> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/36254: Conflicting function definition with standard libraries Message-ID: <200203241604.g2OG4sq63324@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 36254 >Category: ports >Synopsis: Conflicting function definition with standard libraries >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 24 08:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Jerome Mainka >Release: 4.5-STABLE >Organization: >Environment: FreeBSD gandalf 4.5-STABLE FreeBSD 4.5-STABLE #0: Sun Mar 24 12:38:05 CET 2002 >Description: the function strnstr defined in libs/libwww/HTReader.c:80 is already defined in /usr/include/string.h:93 A make in /usr/ports/print/teTeX doesn't succeed >How-To-Repeat: # cd /usr/ports/print/teTeX # make >Fix: apply the patch *** HTReader.c.orig Sun Mar 24 16:46:30 2002 --- HTReader.c Sun Mar 24 16:47:00 2002 *************** *** 76,99 **** ** HT_WOULD_BLOCK if read or write would block ** HT_PAUSE if stream is paused */ - char * strnstr(char * haystack, int *pLen, char * needle) - { - int found = 0; - int need = strlen(needle); - int i, start; - for (start = i = 0; i < *pLen; i++) - if (haystack[i] == needle[found]) { - if (++found == need) { - i -= need - 1; /* beginning of string */ - *pLen -= i; - return haystack+i; - } - } else { - found = 0; - } - *pLen = 0; - return NULL; - } /* int DebugBufferSize = INPUT_BUFFER_SIZE; */ --- 76,81 ---- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203241604.g2OG4sq63324>