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

[gdiscuss] gdis packaging

On Tue, 29 Jan 2002, Sean Fleming wrote:

> > scandir.c and molsurf.c (which have errors and fail to compile on RH 7.2 -
> > I tried to automake-ize 0.74pre1 and my script that gets all sources put
> > these two in the compile bag.
> scandir.c should not be compiled directly. Perhaps it's a bit
> misleading,
> but you'll find it's #included in file.c if you're using a sun - since
> they don't support the scandir function. I might change the name to make
> this more obvious in the future.

I'll rename it scandir.h

> I don't know what to say about molsurf.c - I've compiled it on RH 7.2
> and
> SuSE 7.2 without any problems. What's the error message?

If I explictly try to compile it, YES and NO aren't defined (see output 

But in your Makefile, molsurf.c is not in the SRC variable, so it is not
being compiled (and plain "make" succeeds).

moria:~/gdis/gdis-0.74.0-pre1$ make molsurf.o
gcc -g -Wall -DINSTALL=\""/home/sean/bin"\" -DGTK_GL -DTIMER 
`gtkextra-config --cflags` -DGTK_EXTRA -c molsurf.c `gtk-config --cflags` 
molsurf.c: In function `calc_surf':
molsurf.c:106: `YES' undeclared (first use in this function)
molsurf.c:106: (Each undeclared identifier is reported only once
molsurf.c:106: for each function it appears in.)
molsurf.c:170: `NO' undeclared (first use in this function)
molsurf.c: In function `hide_con':
molsurf.c:780: `NO' undeclared (first use in this function)
molsurf.c: In function `change_off':
molsurf.c:791: warning: passing arg 2 of `init_objs' makes pointer from 
integer without a cast
molsurf.c: In function `surf_dialog':
molsurf.c:944: `NO' undeclared (first use in this function)
make: *** [molsurf.o] Error 1

> Let me know when it's done & I'll make it part of the standard package,
> if you've no objections.

The idea is exactly to make it into the official package. I should have 
most things done by tomorrow (except for the man page).

Felipe Paulo Guazzi Bergo - Free Software Developer (bergo@seul.org)
GPG/PGP mail welcome - GPG/PGP Key: EF8EE808 (keyserver pgp.mit.edu)
http://www.advogato.org/person/khazad - Brasilia - DF - Brazil - Earth

* Vegetarians eat vegetables - Beware of humanitarians.