Subject: pkg/14916: failing configuration for math/R
To: None <gnats-bugs@gnats.netbsd.org>
From: Brook Milligan <brook@biology.nmsu.edu>
List: netbsd-bugs
Date: 12/11/2001 12:54:27
>Number:         14916
>Category:       pkg
>Synopsis:       failing configuration for math/R
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 11 11:55:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Brook Milligan
>Release:        NetBSD-1.5.2
>Organization:
Brook G. Milligan                      Internet:  brook@nmsu.edu
Department of Biology
New Mexico State University            Telephone:  (505) 646-7980
Las Cruces, New Mexico  88003  U.S.A.  FAX:        (505) 646-5665
>Environment:
	
System: NetBSD biology.nmsu.edu 1.4 NetBSD 1.4 (BIOLOGY) #0: Tue Nov 23 11:51:18 MST 1999 root@biology.nmsu.edu:/usr/src/sys/arch/i386/compile/BIOLOGY i386


>Description:
Configuration of math/R yields the following errors:

     cd /usr/tmp/pkgsrc/math/R/work.i386/R-1.3.0 && /usr/pkg/bin/autoreconf --force
     aclocal: not found
     ...
     checking whether /usr/tmp/pkgsrc/math/R/work.i386/.buildlink/bin/f2c-f77 and cc agree on int and double... configure: warning: /usr/tmp/pkgsrc/math/R/work.i386/.buildlink/bin/f2c-f77 and cc disagree on int and double
     configure: error: Maybe change CFLAGS or FFLAGS?
     *** Error code 1

This is because information in the patched acinclude.m4 is not used to
remake aclocal.m4.  Patch aclocal.m4 instead (see below).
>How-To-Repeat:
Compile the math/R package in an environment without automake
installed.
>Fix:

$NetBSD$

--- aclocal.m4.orig     Sat Dec  8 16:57:47 2001
+++ aclocal.m4  Sat Dec  8 17:14:19 2001
@@ -368,6 +368,9 @@
 
 extern void F77_SYMBOL(cftest)(int *a, int *b, double *x, double *y);
 
+int MAIN_ () { return 0; }
+int MAIN__ () { return 0; }
+
 int main () {
   int a[3] = {17, 237, 2000000000}, b[2], res = 0;
   double x[3] = {3.14159265, 123.456789, 2.3e34}, z[3];
>Release-Note:
>Audit-Trail:
>Unformatted: