Ticket #63 (closed defect)

Opened 8 years ago

Last modified 8 years ago

build problem on Solaris with gtk+-1.2.8 and CC5.0

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: build Version:
Keywords: Cc: roebling
Blocked By: Patch: no
Blocking:

Description

Following problem happens on Solaris 7 and Solaris 8 with CC 5.0 compiler

Machine:

SunOS carmen 5.8 Generic sun4u sparc SUNW,Ultra-2

Compiler:

CC 5.0

Glib:

1.2.8
GTK+:
1.2.8

wxGTK:

2.2.1, 2.2.2

configure options:

export CC=cc #/sopt/SUNWspro50/SUNWspro/bin/cc
export CCC=CC # /sopt/SUNWspro50/SUNWspro/bin/CC

Glib:

./configure --prefix=/home/jiri/bin/sol/usr/local --enable-debug=no

GTK+:

./configure --prefix=/home/jiri/bin/sol/usr/local --enable-debug=no

wxGTK:

./configure --prefix=/home/jiri/bin/sol/usr/local --with-x --with-gtk

Compile error:

CC -c -DWXGTK -DGTK_NO_CHECK_CASTS -D_REENTRANT -O -I. -I./include -I./include -I./src/zlib -I./src/png -I./src/jpeg -I./src/tiff -I/home/jiri/bin/sol/usr/locald/lib/glib/include -I/home/jiri/bin/sol/usr/locald/include -I/sopt/X11/X11R6/include "-DwxINSTALL_PREFIX=\"/home/jiri/bin/sol/usr/locald\"" -KPIC -o fontutil.o ./src/unix/fontutil.cpp

"/usr/include/time.h", line 30: Error: Multiple declaration for std::tm.
1 Error(s) detected.
gmake: *** [fontutil.o] Error 1

Workaround:

In glib, file glib.h (in my environment that would be glib-1.2.8/glib.h),
replace line 2079: struct tm;
with : #include <time.h>

Why? I don't know.

wxGTK then builds fine without any other problems

Jiri Mracek
jiri@…

Change History

Changed 8 years ago by roebling

Use GNU make.

Note: See TracTickets for help on using tickets.