Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Apr 2005 23:16:33 +0800
From:      Lihong Chen <lihong.chen@gmail.com>
To:        current@freebsd.org
Subject:   buildworld failed with '-O3' in 6-current
Message-ID:  <a50d5a5005042908161ca3d415@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a50d5a5005042908161ca3d415>