Click to See Complete Forum and Search --> : Compiling gtk-- on Red Hat 7


Chate
11-12-2000, 11:06 PM
I'm tryign to compile gtk-- 1.2.3 on a Red Hat 7 install. The configure script completes with no errors but when I try to make it I get the following error:

Making all in gtkmmproc
make[3]: Entering directory `/home/chate/development/gtkmm-1.2.3/src/gtkmmproc'
c++ -DHAVE_CONFIG_H -T. -T. -I../.. -I../.. -I../.. -D MACRO_DIR=\"/usr/local/lib/gtkmm/proc\" -D M4=\"m4\" -c parser.cc
parser.yy:24: declaration of C function `char *getenv ()' conflicts with /usr/include/stdlib.h:588: previous declaration `char *getenv (const char *)' here
make[3]: *** [parser.o] Error 1

I've been able to compile other packages but they were C not C++ so I'm assuming I have something wrong with my g++ setup. I'm new to Linux and I'm going nuts trying to figure this out. Any help would be greatly appreciated.

jemfinch
11-13-2000, 12:12 AM
Redhat 7.0 is the worst distribution to have ever been released. One of the major problems is that the compiler they released with it wasn't supposed to be released. That could very easily be the reason why Gtk-- won't compile.

I can't say for sure, of course, but that's my guess.

Jeremy