Hi I'm having a problem with the env that the Makefile.sfw is using. I've import my opensource code in the sfw workspace and if I run: % ./configure
% gmake Everything compiles and builds correctly. Now I've put in the Makefile.sfw in the directory above the last and run: > make -f Makefile.sfw > dmake: defaulting to parallel mode. > See the man page dmake(1) for more information on setting up the > .dmakerc file. > (cd swig-1.3.35; env \ > CC= CXX= \ > "CFLAGS= -Xa -xildoff -xc99=all " \ > > PATH="/ws/onnv-tools/SUNWspro/SS11/bin:/usr/sfw/bin:/ws/onnv-tools/SUNWspro/SS11/bin:/ws/onnv-tools/teamware/bin:/ws/onnv-tools/onbld/bin:/home/brucer/bin:/usr/sbin:/usr/etc:/bin:/sbin:/usr/lib:/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/usr/dist/exe:/usr/dist/local/exe:/ws/galileo/tools/bin:/usr/ucb:/usr/dt/bin:/net/suntools/export/tools/sparc/bin:.:/home/brucer:/usr/openwin/bin" > > \ > MAKE=/usr/ccs/bin/make \ > ./configure --prefix=/usr) > checking build system type... sparc-sun-solaris2.11 > checking host system type... sparc-sun-solaris2.11 > checking for a BSD-compatible install... /bin/ginstall -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... Tools/config/install-sh -c -d > checking for gawk... gawk > checking whether /usr/ccs/bin/make sets $(MAKE)... yes > checking for gcc... gcc > checking for C compiler default output file name... > configure: error: C compiler cannot create executables > See `config.log' for more details. > *** Error code 77 > dmake: Fatal error: Command failed for target `swig-1.3.35/config.status' I can see that I'm failing in the configure portion. config.log shows configure:2337: checking whether /usr/ccs/bin/make sets $(MAKE) configure:2358: result: yes configure:2598: checking for gcc configure:2614: found /usr/sfw/bin/gcc configure:2625: result: gcc configure:2863: checking for C compiler version configure:2870: gcc --version >&5 gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2873: $? = 0 configure:2880: gcc -v >&5 Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.11/3.4.3/specs Configured with: /gates/sfwnv/builds/sfwnv-gate/usr/src/cmd/gcc/gcc-3.4.3/config ure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-20050802) configure:2883: $? = 0 configure:2890: gcc -V >&5 gcc: `-V' option must have argument configure:2893: $? = 1 configure:2916: checking for C compiler default output file name configure:2943: gcc -Xa -xildoff -xc99=all conftest.c >&5 gcc: unrecognized option `-Xa' gcc: language c99=all not recognized ld: fatal: file conftest.c: unknown file type ld: fatal: File processing errors. No output written to a.out collect2: ld returned 1 exit status It looks like it is now looking for a gcc version of 5 or greater but if I run configure without Makefile.sfw it works fine. Any help would be appreciated Bruce Rothermal
