I am using rw1001 on Windows 98. I have a package that involves both c and fortran code, which compiled successfully under cygnus b20.1 with Mummit Kahn's port of gcc 2.95.2. I have upgraded to the new net release of cygwin (version 1.1, including the recent cygwin package upgrade to 1.1.1). Now when the dll for my package is being created, I get the string of errors like: [...] gcc -mno-cygwin -mdll -Wl,--base-file,odesolve.b -s -o odesolve.dll odesolve.e odesolve.a -L/R/rw1001/src/gnuwin32 -lg2c -lR /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(sfe.o)(.text+0x4e): undefined reference to `__errno' /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(sfe.o)(.text+0xb9): undefined reference to `__errno' /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(sfe.o)(.text+0xf3): undefined reference to `__errno' /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(fmt.o)(.text+0x51): undefined reference to `__errno' /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(fmt.o)(.text+0x9d): undefined reference to `_impure_ptr' [...] Presumably, somewhere I have configured either MkRules or my cygwin installation incorrectly, but I cannot see where I've gone wrong. I wonder if someone on the list recognizes this error, or can give me some hints? Thanks! R. Woodrow Setzer, Jr. Phone: (919) 541-0128 Biostatistics and Fax: (919) 541-4002 Research Support Staff NHEERL MD-55; US EPA; RTP, NC 27711 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Problem w/cygwin1.1 (maybe)
2 messages · Setzer.Woodrow@epamail.epa.gov, Brian Ripley
On Wed, 24 May 2000 Setzer.Woodrow at epamail.epa.gov wrote:
I am using rw1001 on Windows 98. I have a package that involves both c and fortran code, which compiled successfully under cygnus b20.1 with Mummit Kahn's port of gcc 2.95.2. I have upgraded to the new net release of cygwin (version 1.1, including the recent cygwin package upgrade to 1.1.1). Now when the dll
I have had a lot of problems with the cygwin net releases, and their mailing list shows that I am not alone. The version of make up currently is broken (and they know the cause and have not re-made it) and there are further problems with the 1.1.1 DLL that mean that re-direction in Makefiles fails (and that is used extensively in the R Makefiles).
for my package is being created, I get the string of errors like: [...] gcc -mno-cygwin -mdll -Wl,--base-file,odesolve.b -s -o odesolve.dll odesolve.e odesolve.a -L/R/rw1001/src/gnuwin32 -lg2c -lR /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(sfe.o)(.text+0x4e): undefined reference to `__errno' /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(sfe.o)(.text+0xb9): undefined reference to `__errno' /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(sfe.o)(.text+0xf3): undefined reference to `__errno' /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(fmt.o)(.text+0x51): undefined reference to `__errno' /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/libg2c.a(fmt.o)(.text+0x9d): undefined reference to `_impure_ptr' [...] Presumably, somewhere I have configured either MkRules or my cygwin installation incorrectly, but I cannot see where I've gone wrong. I wonder if someone on the list recognizes this error, or can give me some hints? Thanks!
Looks like you have the wrong libg2c.a in use, the cygwin not -mno-cygwin one. What do you have set as FLIBS in MkRules? In rw1001 it says #-L(directory where gcc-2.95-mingw-extra.tar.gz was uncompressed) FLIBS=-L/cygnus/cygwin-b20/mingw32/lib -lg2c I don't see any sign of pointing you at a particular lg2c (but do not know if that is needed under cygwin 1.1.1). It is pretty irritating that every time I `upgrade' cygwin something else breaks. For rw1010 we intend to support only the mingw32 compiler and a set of tools we will make available that we know works. For example, I compiled up a version of make 3.79 from the GNU make sources. The mingw32 compilers are just as easy to install and use, and they seem very stable.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._