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]

gv 1.4.2 compile on linux (report)


  • To: software (Geometry Center Software Development Group)
  • Subject: gv 1.4.2 compile on linux (report)
  • From: trowley
  • Date: Wed, 27 Apr 94 8:27:32 CDT

I grabbed the source to the geomview 1.4.2 (X version) and
compiled it.  Two things stuck out:
	* No-one has tried compiling it on a Linux system recently :-)
	* The i/o libraries have changed since it was last
		compiled on linux.

Again, the specs for the software versions:
	Linux 1.0
	libc 4.5.24
	XFree 2.1

Here's the problems encountered and the solutions taken.  I would
appreciate feedback if I messed anything up or about the couple
I couldn't fix.  The freshly compiled geomview seems to work --
based on a quick test (start it up, load a few objects, spin them,
play with attributes...).  One "oops" in the the credits: it still
says version 1.4.1.

Most of the code problems are related to the change in the FILE
structure between libc 4.4.x and libc 4.5.x.  BTW, why do you need to
poke around in the internals of files?

PS:  If anyone tried sending mail to me at mermaid in the last day or
so, it may have gotten lost (the mail spool filled [again]).

Problems:

src/lib/oogl/refcomm/streampool.c:
	Line 40: FILE doesn't have members _gptr and _egptr
Fix:
#define F_HASDATA(inf)  ((inf)->_IO_read_ptr < (inf)->_IO_read_end)


src/lib/oogl/util/error.c:
	Line 49&58: FILE doesn't have member _base
Fix:
#ifdef __linux__
#define _base _IO_read_base
#endif


src/lib/oogl/util/futil.c:
	Numerous: FILE doesn't have member _base
Fix:
#ifdef __linux__
#define _base _IO_read_base
#endif
        Line 152: FILE doesn't have members _gptr and _egptr
Fix:
#define F_HASDATA(inf)  ((inf)->_IO_read_ptr < (inf)->_IO_read_end)
	Line 704: FILE doesn't have member _gptr
Fix:
    ptr = (char *)f->_IO_read_ptr;


src/bin/animate/xanimate.c:
	Doesn't get a -I/usr/include/X11 on the command line
Fix:
	In O.linux/Makefile:
COPTS = -g -I/usr/include/X11 -I/usr/local/include -Ddark_ui


src/bin/geomutil/ucd:
	Link fails with undefined symbols for stream stuff
Fix:
	In makefiles/mk.linux:
SYSLIBS = -liostream


src/bin/animate/glob.c:
	Numerous: NCARGS isn't defined anywhere
Fix unknown, kludged with #define NCARGS 48
What is this?


src/bin/animate:
	Link fails because the lib directory points to the sun4 one.
Fix:
	In O.linux/Makefile:
LIBS= -L../../../../lib/linux -lmib -lXm -lXt -lX11


src/bin/mgexample:
	Link fails with undefined symbols for stream stuff.
	SYSLIBS didn't get included.
Fix:
	In O.linux/Makefile:
        ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} ${SYSLIBS}


src/bin/geomutil/plutil:
	Weird makefile error... dunno how to fix:
-----------------CUT HERE----------------------
ERROR: no rule for .main.o in Makefile in directory
/work/build/Geomview/src/bin/geomutil/plutil/O.linux

make[5]: *** [$@.main.o] Error 1
-----------------CUT HERE----------------------


src/bin/pssnap/x11/xpssnap.c:
	Doesn't get a -I/usr/include/X11 on the command line 
Fix:
	In O.linux/Makefile:
COPTS = -I/usr/local/include -I/usr/include/X11 -Ddark_ui


src/bin/util/togeomview.c:
	Line 117: No definition for W_OK.  Have to include unistd.h
Fix:
#include <unistd.h>
	Line 58: Too many arguments to 'setpgrp'.  The linux version
	doesn't take any arguments.  Kludged a fix by just calling
	setpgrp().  Why would they be so different?

- Tim Rowley
  trowley at geom.umn.edu


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