wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
6.33k stars 1.79k forks source link

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

Closed wxtrac closed 3 years ago

wxtrac commented 24 years ago

Issue migrated from trac ticket # 63

component: build | priority: normal

2000-10-23 22:37:38: anonymous created the issue


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

Why? I don't know.

wxGTK then builds fine without any other problems

Jiri Mracek jiri@lucent.com

wxtrac commented 24 years ago

2000-12-16 13:16:50: roebling (Robert Roebling) commented


Use GNU make.