Re: Building 4.1.0 rc1 on Solaris 8 and 9 with gcc 3.3.2
Chad Walstrom <[email protected]> Thu, 18 Nov 2004 12:47:51 -0600
| Newsgroups | gmane.comp.bug-tracking.gnats.bugs |
|---|---|
| Message-ID | <[email protected]> |
--===============1943351933==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="UPT3ojh+0CqEDtpF"
Content-Disposition: inline
--UPT3ojh+0CqEDtpF
Content-Type: multipart/mixed; boundary="8P1HSweYDcXXzwPJ"
Content-Disposition: inline
--8P1HSweYDcXXzwPJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
I wrote:
> Nowhere in the config.in is HAVE_DECL_GETOPT defined, nor is configure
> testing for it at all. It appears that getopt and basename both
> require manual definitions of HAVE_DECL_*=3D1 to skip the function
> declaration or 0 to use it. Try throwing these defines in your CFLAGS
> and see what happens.
OK. Looks like this problem isn't a new one in free software projects.
Google pointed out numerous projects having to use their base
configure.{in,ac} files to make the define. I've attached a patch that
should, hopefully, fix the getopt/basename issues.
Try the patch. If it works, I'll commit it to CVS.
--=20
Chad Walstrom <[email protected]> http://www.wookimus.net/
assert(expired(knowledge)); /* core dump */
--8P1HSweYDcXXzwPJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gnats_configure_in.patch"
Content-Transfer-Encoding: quoted-printable
Index: gnats/configure.in
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/gnats/gnats/gnats/configure.in,v
retrieving revision 1.34
diff -u -b -B -u -r1.34 configure.in
--- gnats/configure.in 18 Nov 2004 04:22:49 -0000 1.34
+++ gnats/configure.in 18 Nov 2004 18:49:10 -0000
@@ -101,6 +101,19 @@
AC_HEADER_DIRENT
AC_SIZE_T
=20
+# ../include/getopt.h file needs the HAVE_DECL_GETOPT variable defined, or=
we
+# get compile errors on multiple platforms.
+AC_CHECK_FUNCS(getopt,=20
+ AC_DEFINE(HAVE_DECL_GETOPT, 1, [Have getopt function]),
+ AC_DEFINE(HAVE_DECL_GETOPT, 0, [Do not have getopt function]))
+
+# ../include/libiberty.h file needs the HAVE_DECL_GETOPT variable defined,=
or
+# we get compile errors on multiple platforms.
+AC_CHECK_FUNCS(basename,=20
+ AC_DEFINE(HAVE_DECL_BASENAME, 1, [Have basename function]),
+ AC_DEFINE(HAVE_DECL_BASENAME, 0, [Do not have basename function]))
+
+
AC_MSG_CHECKING(for --with-lispdir)
if test -n "$with_lispdir" ; then
AC_MSG_RESULT($with_lispdir)
--8P1HSweYDcXXzwPJ--
--UPT3ojh+0CqEDtpF
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBnO5XDMcLGCBsWv0RAoIDAJ9ZpCgchZ6mBuNfCTAcsiAPkVkmjgCg2nIW
vFElQ/wpIxTwq+jAGEUUIHM=
=dQwq
-----END PGP SIGNATURE-----
--UPT3ojh+0CqEDtpF--
--===============1943351933==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Bug-gnats mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnats
--===============1943351933==--