autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_F77_WRAPPERS prob


From: Akim Demaille
Subject: Re: AC_F77_WRAPPERS prob
Date: 18 Jan 2001 17:40:02 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake)

In particular, it would be very useful if you knew what the answer is
expected to be.  Since you seem to use G77 and GCC, I expect you
should have the same answer as I have (but I'm running Linux, maybe
that makes a difference?  Don't know).

Just in case it might help someone help us :), my log gives:

configure:2150: gcc -o conftest -g -O2   conftest.c cf77_test.o  
-L/usr/lib/gcc-lib/i386-linux/2.95.3 -lg2c -lm  >&5
configure:2153: $? = 0
configure:2155: test -s conftest
configure:2158: $? = 0
configure:2205: result: lower case, underscore, extra underscore

i.e., when it has tried foobar => foobar_.  The log says:

#define F77_FUNC(name,NAME) name ## _

and Patrick at that line has:

configure:2095: gcc -o conftest -g -O2   conftest.c cf77_test.o  -L/usr/libexec 
-lg2c -lm  >&5
/usr/lib/libg2c.so: warning: tempnam() possibly used unsafely, use mkstemp() or 
mkdtemp()
/usr/lib/libg2c.so: undefined reference to `MAIN__'
collect2: ld returned 1 exit status
configure:2098: $? = 1
configure: failed program was:
#line 2076 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char foobar_ ();
int
main ()
{
foobar_ ();
  ;
  return 0;
}




The command line look identical:

me:
gcc -o conftest -g -O2   conftest.c cf77_test.o 
-L/usr/lib/gcc-lib/i386-linux/2.95.3 -lg2c -lm  >&5

Patrick:
gcc -o conftest -g -O2   conftest.c cf77_test.o  -L/usr/libexec -lg2c -lm  >&5



reply via email to

[Prev in Thread] Current Thread [Next in Thread]