Eng ler ...(admin) wrote:
> i get this error when i try to compile DSU (distributed seismic unix).
> SU is compiled fine and now i try to compile DSU.
> PVM / TCL/TK are installed properly.
>
> error :
> --------
> [root@sc1 dsu]# make INSTALL
> cd lib ; gmake
> gmake[1]: Entering directory `/usr/seismic/src/dsu/lib'
> cc -c -I../include -I/usr/seismic/include -I/usr/pvm3/include -O
> -DCWP_BIG_ENDIAN dsufgettr.c
> In file included from ../include/dsuglobdefs.h:4,
> from ../include/segy.h:527,
> from dsufgettr.c:32:
> ../include/dsulib.h:82: conflicting types for `gethostname'
> /usr/include/unistd.h:662: previous declaration of `gethostname'
> dsufgettr.c: In function `dsufgettr':
> dsufgettr.c:39: `true' undeclared (first use this function)
> dsufgettr.c:39: (Each undeclared identifier is reported only once
> dsufgettr.c:39: for each function it appears in.)
> dsufgettr.c:57: `false' undeclared (first use this function)
> dsufgettr.c: In function `dsufvgettr':
> dsufgettr.c:166: `true' undeclared (first use this function)
> dsufgettr.c:178: `false' undeclared (first use this function)
> gmake[1]: *** [libdsu.a(dsufgettr.o)] Error 1
> gmake[1]: Leaving directory `/usr/seismic/src/dsu/lib'
> make: *** [INSTALL] Error 2
>
> Any idea ??
> please help
> thanks ....
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
Looks like your problem is in dsufgettr.c. 'true' and 'false' are
undeclared..
i guess they are boolean values, if the whole thing uses true and false
you could
just put something like
#define true (something, ie 1)
#define false (something, ie 0)
First i'd suggest that you make a search through all your source files for
'#define true..'
- Julien
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]