Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2002 23:20:02 -0700 (PDT)
From:      Shingo WATANABE <nabe@nabechan.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/42944: ja-okphone could not compile under FreeBSD 4.7-PRERELEASE
Message-ID:  <200209190620.g8J6K2ZI079958@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         42944
>Category:       ports
>Synopsis:       ja-okphone could not compile under FreeBSD 4.7-PRERELEASE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 18 23:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Shingo WATANABE
>Release:        FreeBSD 4.7-PRERELEASE (4-stable)
>Organization:
nabechan.org
>Environment:
FreeBSD XXXXX.nabechan.org 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #2: Sun Sep 15 13:01:38 JST 2002     nabe@nabechan.org:/usr/local/obj/usr/local/src/sys/XXXXX  i386

>Description:
The ja-okphone(ports/japanese/okphone) could not compile with FreeBSD 4.7-PRELEASE.
The reason is a conflict in the declaration of "malloc()" function.

The error message is below.
cc -O -pipe   -Isw -O -DSERVICES -DLOCAL_ECHO -c kanaconv.c
In file included from sw/win.h:71,
                 from defs.h:5,
                 from kanaconv.l:162:
/usr/include/sys/ioctl_compat.h:98: warning: `ECHO' redefined
kanaconv.l:92: warning: this is the location of the previous definition
In file included from kanaconv.l:162:
defs.h:14: conflicting types for `malloc'
/usr/include/stdlib.h:101: previous declaration of `malloc'
kanaconv.l:220: warning: `youon' was declared implicitly `extern' and later `static'
kanaconv.l:142: warning: previous declaration of `youon'
kanaconv.l:246: warning: `putone' was declared implicitly `extern' and later `static'
kanaconv.l:241: warning: previous declaration of `putone'
kanaconv.l:265: warning: `input1' was declared implicitly `extern' and later `static'
kanaconv.l:400: warning: previous declaration of `input1'
*** Error code 1

Stop in /usr/ports/japanese/okphone/work/okphone-1.2/client.
*** Error code 1

>How-To-Repeat:
cd /usr/ports/japanese/okphone
make



>Fix:
apply the following patch.

--- ./client/defs.h.org	Thu Sep 19 14:58:56 2002
+++ ./client/defs.h	Thu Sep 19 15:00:38 2002
@@ -11,7 +11,9 @@
 #endif
 char	*index();
 char	*strsave();
+#ifndef __FreeBSD__
 char	*malloc();
+#endif
 char	*basename();
 char	*expalias();
 

>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?200209190620.g8J6K2ZI079958>