From owner-freebsd-current@FreeBSD.ORG Fri Apr 29 15:16:36 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E855E16A4CE for ; Fri, 29 Apr 2005 15:16:36 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C84443D1F for ; Fri, 29 Apr 2005 15:16:36 +0000 (GMT) (envelope-from lihong.chen@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so943635wri for ; Fri, 29 Apr 2005 08:16:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hs7s6FQRu8LyYF0wMafAzNZ3ahiJC7Qn3GLOENg6P2L2qmgAvchwILgX97qg2O8DxGWy3ZzqXS6gOWjstt8dTSd08y/D801kodKPZK03ukWwITlJWNe5Hggh6DhcePONMqDJXPCAt5A6u5S2pXq6Kg9szzUMrejhU9ya2jZuEpY= Received: by 10.54.79.5 with SMTP id c5mr1408025wrb; Fri, 29 Apr 2005 08:16:33 -0700 (PDT) Received: by 10.54.2.75 with HTTP; Fri, 29 Apr 2005 08:16:33 -0700 (PDT) Message-ID: Date: Fri, 29 Apr 2005 23:16:33 +0800 From: Lihong Chen To: current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: buildworld failed with '-O3' in 6-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Lihong Chen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 15:16:37 -0000 Hi! I try to buildworld using gcc -O3, but some file will failed. they are using fuctions not consist with declared, like these: --- /usr/src/lib/libc/rpc/getpublickey.c.orig=09Fri Apr 29 02:10:53 2005 +++ /usr/src/lib/libc/rpc/getpublickey.c=09Fri Apr 29 02:13:02 2005 @@ -175,5 +175,5 @@ =09if (__getpublickey_LOCAL !=3D NULL) =09=09return(__getpublickey_LOCAL(netname, publickey)); =09else -=09=09return(__getpublickey_real(netname, publickey)); +=09=09return(__getpublickey_real((char*)netname, publickey)); } --- /usr/src/sbin/ip6fw/ip6fw.c.orig=09Fri Apr 29 07:24:33 2005 +++ /usr/src/sbin/ip6fw/ip6fw.c=09Fri Apr 29 07:25:47 2005 @@ -1112,7 +1112,7 @@ =09=09=09=09if (!ac) =09=09=09=09=09show_usage("missing argument" =09=09=09=09=09 " for ``icmptypes''"); -=09=09=09=09fill_icmptypes(rule.fw_icmp6types, +=09=09=09=09fill_icmptypes((u_long*)rule.fw_icmp6types, =09=09=09=09 av, &rule.fw_flg); =09=09=09=09av++; ac--; continue; =09=09=09} --- /usr/src/lib/libc/net/res_debug.c.orig=09Fri Apr 29 02:00:24 2005 +++ /usr/src/lib/libc/net/res_debug.c=09Fri Apr 29 02:01:53 2005 @@ -783,7 +783,7 @@ =09if (cp >=3D maxcp) =09=09goto defaults; =20 -=09siz =3D precsize_aton(&cp); +=09siz =3D precsize_aton((char**)&cp); =09 =09while (!isspace((unsigned char)*cp) && (cp < maxcp)) /* if trailing garbage or m */ =09=09cp++; @@ -794,7 +794,7 @@ =09if (cp >=3D maxcp) =09=09goto defaults; =20 -=09hp =3D precsize_aton(&cp); +=09hp =3D precsize_aton((char**)&cp); =20 =09while (!isspace((unsigned char)*cp) && (cp < maxcp)) /* if trailing garbage or m */ =09=09cp++; @@ -805,7 +805,7 @@ =09if (cp >=3D maxcp) =09=09goto defaults; =20 -=09vp =3D precsize_aton(&cp); +=09vp =3D precsize_aton((char**)&cp); =20 defaults: