go to www.geomview.org home page
 
Home

Overview
FAQ
Documentation

Download

Mailing List

Geomview For Windows?

Support
Users
Development

Bug Reporting
Contributing
Contact Us

Sponsors

 

Site Search

 

Advanced
Search

 
About the software@geom archive

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

[ REQ 5531]: make lib under Linux



Just compiled the libraries under my linux system (gcc 2.7.0, libc
5.0.9, linux 1.2.7).  Everything compiled well except for liboogl.a,
which died when trying to compile $GEOMROOT/src/lib/oogl/util/futil.c.

The problem is that the hack to check whether stdio uses the newer
iostream package doesn't work, at least under this version of libc.
Including <stdio.h> #defines _STDIO_USES_IOSTREAM to be 1.  The
closest thing I could find to what the original hack did was in
<iostdio.h>, which #defined _IOSTDIO_H, not _IO_STDIO_H.  I don't know
when _IO_STDIO_H stopped being defined, nor do I know whether
_STDIO_USES_IOSTREAM has been defined all along.  It may be necessary
to include both checks.

Anyhow, the following patch (from $GEOMROOT) worked on my system, and
may be necessary for others with a similar setup.

Danek

--- src/lib/oogl/util/futil.c.orig	Fri Aug 18 17:00:26 1995
+++ src/lib/oogl/util/futil.c	Fri Aug 18 17:00:39 1995
@@ -146,7 +146,7 @@
 #define _ptr __ptr
 #endif 
 
-#if defined(__linux__) && !defined(_IO_STDIO_H)
+#if defined(__linux__) && !defined(_STDIO_USES_IOSTREAM)
 	/* Handle older (pre-1.0) Linux stdio fields,
 	 * making them look like later ones.
 	 */


 
Home | Overview | FAQ | Documentation | Support | Download | Mailing List
Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors
 
site hosted by
SourceForge Logo