Hi all, the macro AC_F77_DUMMY_MAIN (and AC_FC_DUMMY_MAIN as well) causes configure to abort when using Oracle Solaris Studio 12.2 compilers. This is the relevant configure output: ... checking for Fortran 77 libraries of f77... -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a checking for gcc... cc checking whether we are using the GNU C compiler... no checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking for dummy main to link with Fortran 77 libraries... unknown configure: error: in `/home/roessel/studio_ac_dummy_main/_build_studio': configure: error: linking to Fortran libraries from C fails See `config.log' for more details config.log (attached) reveals a linking error: configure:3203: cc -o conftest -g conftest.c -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a >&5 /usr/bin/ld: cannot find -lmtsk All libraries are available on my system but the compile command lacks "-L<path>" LDFLAGS. It is interesting that the result of "checking for Fortran 77 libraries of f77" does not have any LDFLAGS at all. I also checked with gcc, intel, pgi and (bg)xl compilers. They all pass the AC_F77_DUMMY_MAIN macro. But in contrast to the studio compiler they return -L LDFLAGS for the Fortran library check, e.g. checking for Fortran 77 libraries of ifort... -L/opt/packages/intel/11.1.072/lib/ia32 -L/usr/lib/gcc/i486-linux-gnu/4.4.5/ -L/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/ -L/lib/../lib/ -L/usr/lib/../lib/ -L/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../ -L/lib/ -L/usr/lib/ -lifport -lifcore -limf -lsvml -lm -lipgo -lirc -lirc_s -ldl So, why are the -L flags missing when compiling with the studio compiler? By looking at config.log I actually found the relevant paths (line 166 of config.log): /usr/bin/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 --enable-new-dtags /opt/packages/studio/12.2/prod/lib/crti.o /opt/packages/studio/12.2/prod/lib/crt1.o /opt/packages/studio/12.2/prod/lib/values-xi.o conftest.o -o conftest -Y "/opt/packages/studio/12.2/prod/lib/compilers/rtlibs/usr/lib:/opt/packages/studio/12.2/lib:/opt/packages/studio/12.2/prod/lib:/lib:/usr/lib" -Qy "-R/opt/packages/studio/12.2/lib:/opt/packages/studio/12.2/prod/lib/compilers/rtlibs/usr/lib:/opt/packages/studio/12.2/lib" -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm -lc /opt/packages/studio/12.2/prod/lib/libc_supp.a /opt/packages/studio/12.2/prod/lib/crtn.o It's either the -Y or the -Qy option given to ld: -Y "/opt/packages/studio/12.2/prod/lib/compilers/rtlibs/usr/lib:/opt/packages/studio/12.2/lib:/opt/packages/studio/12.2/prod/lib:/lib:/usr/lib" -Qy "-R/opt/packages/studio/12.2/lib:/opt/packages/studio/12.2/prod/lib/compilers/rtlibs/usr/lib:/opt/packages/studio/12.2/lib" To have a successful outcome of AC_F77_DUMMY_MAIN it is in my case sufficient to additionally pass LDFLAGS=-L/opt/packages/studio/12.2/prod/lib/compilers/rtlibs/usr/lib to configure, so it can be either of the two options. But according to "man ld" I assume it is -Y. I identified _AC_FC_LIBRARY_LDFLAGS (lib/autoconf/fortran.m4) as the macro where the actual parsing of the ld output is performed in order to deteremine the linker flags. There we already look for a "-YP" option. Is it sufficient to just add a -Y case there? If yes, how can this be done? The above observations were made using following minimal configure.ac: AC_INIT([ac_f77_dummy_main_test],[1],[]) AC_F77_DUMMY_MAIN AC_OUTPUT Any help appreciated. Best regards, Christian -- Christian Rössel Jülich Supercomputing Centre Telefon +49 2461 61-1773 ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Besuchen Sie uns auf unserem neuen Webauftritt unter www.fz-juelich.de
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by ac_f77_dummy_main_test configure 1, which was generated by GNU Autoconf 2.68-dirty. Invocation command line was $ ../configure FC=f95 F77=f77 CC=cc CXX=CC ## --------- ## ## Platform. ## ## --------- ## hostname = atlantis uname -m = i686 uname -r = 2.6.38-gentoo uname -s = Linux uname -v = #1 SMP Thu Mar 24 11:17:48 CET 2011 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /opt/packages/studio/12.2/bin PATH: /opt/packages/uncrustify/0.57/bin PATH: /opt/packages/graphviz/2.26.3/bin PATH: /opt/packages/doxygen/1.7.3/bin PATH: /opt/packages/m4/1.4.16/bin PATH: /opt/packages/silc-autotools/0.2/bin PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/local/games PATH: /usr/games ## ----------- ## ## Core tests. ## ## ----------- ## configure:1907: checking for Fortran 77 compiler version configure:1916: f77 --version >&5 NOTICE: Invoking /opt/packages/studio/12.2/bin/f90 -f77 -ftrap=%none --version f90: Warning: Option --version passed to ld, if ld is invoked, ignored otherwise usage: f90 [ options ] files. Use 'f90 -flags' for details configure:1927: $? = 0 configure:1916: f77 -v >&5 NOTICE: Invoking /opt/packages/studio/12.2/bin/f90 -f77 -ftrap=%none -v ### f90: Note: NLSPATH = /opt/packages/studio/12.2/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/packages/studio/12.2/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat ### command line files and options (expanded): ### -f77=%all -ftrap=%none -v usage: f90 [ options ] files. Use 'f90 -flags' for details configure:1927: $? = 0 configure:1916: f77 -V >&5 NOTICE: Invoking /opt/packages/studio/12.2/bin/f90 -f77 -ftrap=%none -V f90: Sun Fortran 95 8.5 Linux_i386 2010/08/13 usage: f90 [ options ] files. Use 'f90 -flags' for details configure:1927: $? = 0 configure:1916: f77 -qversion >&5 NOTICE: Invoking /opt/packages/studio/12.2/bin/f90 -f77 -ftrap=%none -qversion f90: Warning: Option -qversion passed to ld, if ld is invoked, ignored otherwise usage: f90 [ options ] files. Use 'f90 -flags' for details configure:1927: $? = 0 configure:1942: checking whether the Fortran 77 compiler works configure:1964: f77 conftest.f >&5 NOTICE: Invoking /opt/packages/studio/12.2/bin/f90 -f77 -ftrap=%none conftest.f conftest.f: MAIN main: configure:1968: $? = 0 configure:2016: result: yes configure:2019: checking for Fortran 77 compiler default output file name configure:2021: result: a.out configure:2027: checking for suffix of executables configure:2034: f77 -o conftest conftest.f >&5 NOTICE: Invoking /opt/packages/studio/12.2/bin/f90 -f77 -ftrap=%none -o conftest conftest.f conftest.f: MAIN main: configure:2038: $? = 0 configure:2060: result: configure:2076: checking whether we are cross compiling configure:2084: f77 -o conftest conftest.f >&5 NOTICE: Invoking /opt/packages/studio/12.2/bin/f90 -f77 -ftrap=%none -o conftest conftest.f conftest.f: MAIN main: configure:2088: $? = 0 configure:2095: ./conftest configure:2099: $? = 0 configure:2114: result: no configure:2119: checking for suffix of object files configure:2135: f77 -c conftest.f >&5 NOTICE: Invoking /opt/packages/studio/12.2/bin/f90 -f77 -ftrap=%none -c conftest.f conftest.f: MAIN main: configure:2139: $? = 0 configure:2160: result: o configure:2168: checking whether we are using the GNU Fortran 77 compiler configure:2181: f77 -c conftest.F >&5 NOTICE: Invoking /opt/packages/studio/12.2/bin/f90 -f77 -ftrap=%none -c conftest.F /tmp/fpp.1304495385.24814.01.f: MAIN main: choke me ^ "conftest.F", Line = 3, Column = 16: ERROR: Unknown statement. Expected assignment statement but found "EOS" instead of "=" or "=>". f90comp: 6 SOURCE LINES f90comp: 1 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI configure:2181: $? = 1 configure: failed program was: | program main | #ifndef __GNUC__ | choke me | #endif | | end configure:2190: result: no configure:2196: checking whether f77 accepts -g configure:2207: f77 -c -g conftest.f >&5 NOTICE: Invoking /opt/packages/studio/12.2/bin/f90 -f77 -ftrap=%none -c -g conftest.f conftest.f: MAIN main: configure:2207: $? = 0 configure:2215: result: yes configure:2249: checking how to get verbose linking output from f77 configure:2259: f77 -c -g conftest.f >&5 NOTICE: Invoking /opt/packages/studio/12.2/bin/f90 -f77 -ftrap=%none -c -g conftest.f conftest.f: MAIN main: configure:2259: $? = 0 configure:2277: f77 -o conftest -g -v conftest.f NOTICE: Invoking /opt/packages/studio/12.2/bin/f90 -f77 -ftrap=%none -o conftest -g -v conftest.f ### f90: Note: NLSPATH = /opt/packages/studio/12.2/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/packages/studio/12.2/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat ### command line files and options (expanded): ### -f77=%all -ftrap=%none -o conftest -g -v conftest.f /opt/packages/studio/12.2/prod/bin/f90comp -m3 -f77=%all -ev -dq -xall -xivdep=loop -H "/opt/packages/studio/12.2/prod/bin/f90 -f77 -ftrap=%none -g -v " -I/opt/packages/studio/12.2/prod/include/f95 -p/opt/packages/studio/12.2/prod/lib/modules -y-xarch=generic -xmemalign=1i -iorounding=processor-defined -xhasc=yes -xcache=generic -y-xcache=generic -y-xassume_control=optimize -xassume_control=optimize -fstore -y-xdbggen=no%stabs+dwarf2 -y-xdbggen=incl -G 0 -y-fbe -y/opt/packages/studio/12.2/prod/bin/fbe -y-verbose -y-comdat -y-g -y-xarch=generic -y-comdat -y-xthreadvar=no%dynamic -y-o -yconftest.o -y-s conftest.f conftest.f: MAIN main: /opt/packages/studio/12.2/prod/bin/fbe -s -o conftest.o -warn=%none -Qy /tmp/yabeWj3Fc4 rm /tmp/yabeWj3Fc4 ### f90: Note: LD_LIBRARY_PATH = /opt/packages/studio/12.2/lib ### f90: Note: LD_RUN_PATH = /opt/packages/studio/12.2/lib ### f90: Note: LD_OPTIONS = (null) /usr/bin/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 --enable-new-dtags /opt/packages/studio/12.2/prod/lib/crti.o /opt/packages/studio/12.2/prod/lib/crt1.o /opt/packages/studio/12.2/prod/lib/values-xi.o conftest.o -o conftest -Y "/opt/packages/studio/12.2/prod/lib/compilers/rtlibs/usr/lib:/opt/packages/studio/12.2/lib:/opt/packages/studio/12.2/prod/lib:/lib:/usr/lib" -Qy "-R/opt/packages/studio/12.2/lib:/opt/packages/studio/12.2/prod/lib/compilers/rtlibs/usr/lib:/opt/packages/studio/12.2/lib" -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm -lc /opt/packages/studio/12.2/prod/lib/libc_supp.a /opt/packages/studio/12.2/prod/lib/crtn.o rm conftest.o configure:2343: result: -v configure:2345: checking for Fortran 77 libraries of f77 configure:2368: f77 -o conftest -g -v conftest.f NOTICE: Invoking /opt/packages/studio/12.2/bin/f90 -f77 -ftrap=%none -o conftest -g -v conftest.f ### f90: Note: NLSPATH = /opt/packages/studio/12.2/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/packages/studio/12.2/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat ### command line files and options (expanded): ### -f77=%all -ftrap=%none -o conftest -g -v conftest.f /opt/packages/studio/12.2/prod/bin/f90comp -m3 -f77=%all -ev -dq -xall -xivdep=loop -H "/opt/packages/studio/12.2/prod/bin/f90 -f77 -ftrap=%none -g -v " -I/opt/packages/studio/12.2/prod/include/f95 -p/opt/packages/studio/12.2/prod/lib/modules -y-xarch=generic -xmemalign=1i -iorounding=processor-defined -xhasc=yes -xcache=generic -y-xcache=generic -y-xassume_control=optimize -xassume_control=optimize -fstore -y-xdbggen=no%stabs+dwarf2 -y-xdbggen=incl -G 0 -y-fbe -y/opt/packages/studio/12.2/prod/bin/fbe -y-verbose -y-comdat -y-g -y-xarch=generic -y-comdat -y-xthreadvar=no%dynamic -y-o -yconftest.o -y-s conftest.f conftest.f: MAIN main: /opt/packages/studio/12.2/prod/bin/fbe -s -o conftest.o -warn=%none -Qy /tmp/yabePyM658 rm /tmp/yabePyM658 ### f90: Note: LD_LIBRARY_PATH = /opt/packages/studio/12.2/lib ### f90: Note: LD_RUN_PATH = /opt/packages/studio/12.2/lib ### f90: Note: LD_OPTIONS = (null) /usr/bin/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 --enable-new-dtags /opt/packages/studio/12.2/prod/lib/crti.o /opt/packages/studio/12.2/prod/lib/crt1.o /opt/packages/studio/12.2/prod/lib/values-xi.o conftest.o -o conftest -Y "/opt/packages/studio/12.2/prod/lib/compilers/rtlibs/usr/lib:/opt/packages/studio/12.2/lib:/opt/packages/studio/12.2/prod/lib:/lib:/usr/lib" -Qy "-R/opt/packages/studio/12.2/lib:/opt/packages/studio/12.2/prod/lib/compilers/rtlibs/usr/lib:/opt/packages/studio/12.2/lib" -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm -lc /opt/packages/studio/12.2/prod/lib/libc_supp.a /opt/packages/studio/12.2/prod/lib/crtn.o rm conftest.o configure:2543: result: -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a configure:2602: checking for gcc configure:2629: result: cc configure:2858: checking for C compiler version configure:2867: cc --version >&5 cc: Warning: Option --version passed to ld, if ld is invoked, ignored otherwise usage: cc [ options ] files. Use 'cc -flags' for details configure:2878: $? = 0 configure:2867: cc -v >&5 usage: cc [ options ] files. Use 'cc -flags' for details configure:2878: $? = 0 configure:2867: cc -V >&5 cc: Sun C 5.11 Linux_i386 2010/08/13 usage: cc [ options ] files. Use 'cc -flags' for details configure:2878: $? = 0 configure:2867: cc -qversion >&5 cc: Warning: Option -qversion passed to ld, if ld is invoked, ignored otherwise usage: cc [ options ] files. Use 'cc -flags' for details configure:2878: $? = 0 configure:2882: checking whether we are using the GNU C compiler configure:2909: cc -c conftest.c >&5 "conftest.c", line 22: undefined symbol: choke "conftest.c", line 22: syntax error before or at: me cc: acomp failed for conftest.c configure:2909: $? = 2 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ac_f77_dummy_main_test" | #define PACKAGE_TARNAME "ac_f77_dummy_main_test" | #define PACKAGE_VERSION "1" | #define PACKAGE_STRING "ac_f77_dummy_main_test 1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | #ifdef F77_DUMMY_MAIN | | # ifdef __cplusplus | extern "C" | # endif | int F77_DUMMY_MAIN() { return 1; } | | #endif | int | main () | { | #ifndef __GNUC__ | choke me | #endif | | ; | return 0; | } configure:2918: result: no configure:2927: checking whether cc accepts -g configure:2955: cc -c -g conftest.c >&5 configure:2955: $? = 0 configure:3012: result: yes configure:3029: checking for cc option to accept ISO C89 configure:3101: cc -c -g conftest.c >&5 "conftest.c", line 65: warning: statement not reached configure:3101: $? = 0 configure:3114: result: none needed configure:3140: checking for dummy main to link with Fortran 77 libraries configure:3174: cc -o conftest -g conftest.c -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a >&5 /usr/bin/ld: cannot find -lmtsk configure:3174: $? = 2 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ac_f77_dummy_main_test" | #define PACKAGE_TARNAME "ac_f77_dummy_main_test" | #define PACKAGE_VERSION "1" | #define PACKAGE_STRING "ac_f77_dummy_main_test 1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | #ifdef F77_DUMMY_MAIN | | # ifdef __cplusplus | extern "C" | # endif | int F77_DUMMY_MAIN() { return 1; } | | #endif | int | main () | { | | ; | return 0; | } configure:3203: cc -o conftest -g conftest.c -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a >&5 /usr/bin/ld: cannot find -lmtsk configure:3203: $? = 2 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ac_f77_dummy_main_test" | #define PACKAGE_TARNAME "ac_f77_dummy_main_test" | #define PACKAGE_VERSION "1" | #define PACKAGE_STRING "ac_f77_dummy_main_test 1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #define F77_DUMMY_MAIN MAIN__ | #ifdef F77_DUMMY_MAIN | | # ifdef __cplusplus | extern "C" | # endif | int F77_DUMMY_MAIN() { return 1; } | | #endif | int | main () | { | | ; | return 0; | } configure:3203: cc -o conftest -g conftest.c -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a >&5 /usr/bin/ld: cannot find -lmtsk configure:3203: $? = 2 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ac_f77_dummy_main_test" | #define PACKAGE_TARNAME "ac_f77_dummy_main_test" | #define PACKAGE_VERSION "1" | #define PACKAGE_STRING "ac_f77_dummy_main_test 1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #define F77_DUMMY_MAIN MAIN_ | #ifdef F77_DUMMY_MAIN | | # ifdef __cplusplus | extern "C" | # endif | int F77_DUMMY_MAIN() { return 1; } | | #endif | int | main () | { | | ; | return 0; | } configure:3203: cc -o conftest -g conftest.c -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a >&5 /usr/bin/ld: cannot find -lmtsk configure:3203: $? = 2 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ac_f77_dummy_main_test" | #define PACKAGE_TARNAME "ac_f77_dummy_main_test" | #define PACKAGE_VERSION "1" | #define PACKAGE_STRING "ac_f77_dummy_main_test 1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #define F77_DUMMY_MAIN __main | #ifdef F77_DUMMY_MAIN | | # ifdef __cplusplus | extern "C" | # endif | int F77_DUMMY_MAIN() { return 1; } | | #endif | int | main () | { | | ; | return 0; | } configure:3203: cc -o conftest -g conftest.c -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a >&5 /usr/bin/ld: cannot find -lmtsk configure:3203: $? = 2 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ac_f77_dummy_main_test" | #define PACKAGE_TARNAME "ac_f77_dummy_main_test" | #define PACKAGE_VERSION "1" | #define PACKAGE_STRING "ac_f77_dummy_main_test 1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #define F77_DUMMY_MAIN MAIN | #ifdef F77_DUMMY_MAIN | | # ifdef __cplusplus | extern "C" | # endif | int F77_DUMMY_MAIN() { return 1; } | | #endif | int | main () | { | | ; | return 0; | } configure:3203: cc -o conftest -g conftest.c -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a >&5 /usr/bin/ld: cannot find -lmtsk configure:3203: $? = 2 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ac_f77_dummy_main_test" | #define PACKAGE_TARNAME "ac_f77_dummy_main_test" | #define PACKAGE_VERSION "1" | #define PACKAGE_STRING "ac_f77_dummy_main_test 1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #define F77_DUMMY_MAIN _MAIN | #ifdef F77_DUMMY_MAIN | | # ifdef __cplusplus | extern "C" | # endif | int F77_DUMMY_MAIN() { return 1; } | | #endif | int | main () | { | | ; | return 0; | } configure:3203: cc -o conftest -g conftest.c -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a >&5 /usr/bin/ld: cannot find -lmtsk configure:3203: $? = 2 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ac_f77_dummy_main_test" | #define PACKAGE_TARNAME "ac_f77_dummy_main_test" | #define PACKAGE_VERSION "1" | #define PACKAGE_STRING "ac_f77_dummy_main_test 1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #define F77_DUMMY_MAIN __MAIN | #ifdef F77_DUMMY_MAIN | | # ifdef __cplusplus | extern "C" | # endif | int F77_DUMMY_MAIN() { return 1; } | | #endif | int | main () | { | | ; | return 0; | } configure:3203: cc -o conftest -g conftest.c -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a >&5 /usr/bin/ld: cannot find -lmtsk configure:3203: $? = 2 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ac_f77_dummy_main_test" | #define PACKAGE_TARNAME "ac_f77_dummy_main_test" | #define PACKAGE_VERSION "1" | #define PACKAGE_STRING "ac_f77_dummy_main_test 1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #define F77_DUMMY_MAIN main_ | #ifdef F77_DUMMY_MAIN | | # ifdef __cplusplus | extern "C" | # endif | int F77_DUMMY_MAIN() { return 1; } | | #endif | int | main () | { | | ; | return 0; | } configure:3203: cc -o conftest -g conftest.c -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a >&5 /usr/bin/ld: cannot find -lmtsk configure:3203: $? = 2 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ac_f77_dummy_main_test" | #define PACKAGE_TARNAME "ac_f77_dummy_main_test" | #define PACKAGE_VERSION "1" | #define PACKAGE_STRING "ac_f77_dummy_main_test 1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #define F77_DUMMY_MAIN main__ | #ifdef F77_DUMMY_MAIN | | # ifdef __cplusplus | extern "C" | # endif | int F77_DUMMY_MAIN() { return 1; } | | #endif | int | main () | { | | ; | return 0; | } configure:3203: cc -o conftest -g conftest.c -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a >&5 /usr/bin/ld: cannot find -lmtsk configure:3203: $? = 2 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ac_f77_dummy_main_test" | #define PACKAGE_TARNAME "ac_f77_dummy_main_test" | #define PACKAGE_VERSION "1" | #define PACKAGE_STRING "ac_f77_dummy_main_test 1" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #define F77_DUMMY_MAIN _main | #ifdef F77_DUMMY_MAIN | | # ifdef __cplusplus | extern "C" | # endif | int F77_DUMMY_MAIN() { return 1; } | | #endif | int | main () | { | | ; | return 0; | } configure:3219: result: unknown configure:3236: error: in `/home/roessel/studio_ac_dummy_main/_build_studio': configure:3238: error: linking to Fortran libraries from C fails See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_c_compiler_gnu=no ac_cv_env_CC_set=set ac_cv_env_CC_value=cc ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_F77_set=set ac_cv_env_F77_value=f77 ac_cv_env_FFLAGS_set= ac_cv_env_FFLAGS_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_f77_compiler_gnu=no ac_cv_f77_dummy_main=unknown ac_cv_f77_libs=' -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a' ac_cv_fortran_dummy_main=unknown ac_cv_objext=o ac_cv_prog_ac_ct_CC=cc ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_f77_g=yes ac_cv_prog_f77_v=-v ## ----------------- ## ## Output variables. ## ## ----------------- ## CC='cc' CFLAGS='-g' CPPFLAGS='' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EXEEXT='' F77='f77' FFLAGS='-g' FLIBS=' -lfai -lfui -lfsu -lsunquad -lmtsk -lpthread -lm /opt/packages/studio/12.2/prod/lib/libc_supp.a' LDFLAGS='' LIBOBJS='' LIBS='' LTLIBOBJS='' OBJEXT='o' PACKAGE_BUGREPORT='' PACKAGE_NAME='ac_f77_dummy_main_test' PACKAGE_STRING='ac_f77_dummy_main_test 1' PACKAGE_TARNAME='ac_f77_dummy_main_test' PACKAGE_URL='' PACKAGE_VERSION='1' PATH_SEPARATOR=':' SHELL='/bin/bash' ac_ct_CC='cc' ac_ct_F77='' bindir='${exec_prefix}/bin' build_alias='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host_alias='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='NONE' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "ac_f77_dummy_main_test" #define PACKAGE_TARNAME "ac_f77_dummy_main_test" #define PACKAGE_VERSION "1" #define PACKAGE_STRING "ac_f77_dummy_main_test 1" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" configure: exit 1
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf