Hi Christophe,
I've run the build on x86 Solaris 10 and hot-patched anything I could to make it finish. I've managed to make it through. Log of errors is attached.

The deprecated attribute seems to change between gcc 3 and gcc 4. gcc 3 does not support the version with argument. I've looked into gcc docs and it seems to me that deprecated(msg) was added only to gcc 4.

Otherwise, the most issues were caused by nanosleep() not being part of libc (but librt) and __progname not being defined.

The only thing I wasn't able to build was wmiv tool which seems to have many type conflicts with XKBlib.h.

Regards,
Milan

Dne 4.10.2014 22:23, Christophe napsal(a):
Hi Milan,

For your deprecated issue, it is a bit strange because the attribute seems to 
have been introduced in gcc 3.1, so you are not supposed to have problem with 
3.4.3, or maybe it is a special version from Sun? Maybe the error log might 
help a little bit there...

Christophe.

gcc 3.4.3 does not understand attribute deprecated with argument. However, it 
understands it without argument.

wraster.h:180: error: wrong number of arguments specified for `deprecated' 
attribute
gmake[3]: *** [raster.lo] Error 1
gmake[3]: Leaving directory `/buildzone/wmaker-crm/wrlib'

#if __GNUC__ > 3
#define __wrlib_deprecated(msg)  __attribute__ ((deprecated(msg)))
#else
#if __GNUC__ == 3
#define __wrlib_deprecated(msg)  __attribute__ ((deprecated))
#else
#define __wrlib_deprecated(msg)
#endif
#endif
---------------------------------------
wmspec.c:35:23: X11/Xarch.h: No such file or directory

Header does not seem to be needed for anything.
---------------------------------------
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -Wall -Wextra 
-Wno-sign-compare -Wno-deprecated-declarations   -o wmaker actions.o appicon.o 
application.o appmenu.o balloon.o client.o colormap.o cycling.o defaults.o 
dialog.o dock.o dockedapp.o event.o framewin.o geomview.o icon.o main.o menu.o 
misc.o monitor.o motif.o moveres.o pixmap.o placement.o properties.o 
resources.o rootmenu.o screen.o session.o shutdown.o switchpanel.o stacking.o 
startup.o superfluous.o switchmenu.o texture.o usermenu.o xdnd.o xinerama.o 
xmodifier.o xutil.o wcore.o wdefaults.o window.o winmenu.o winspector.o 
wmspec.o workspace.o    osdep_stub.o ../WINGs/libWINGs.la ../WINGs/libWUtil.la 
../wrlib/libwraster.la -L/usr/openwin/lib -R/usr/openwin/lib -lXinerama -lX11 
-lsocket  -lnsl -lXext -lm

Undefined                       first referenced
 symbol                             in file
nanosleep                           
/buildzone/wmaker-crm/WINGs/.libs/libWUtil.so

nanosleep(3RT) is defined in librt. I guess it needs detection in configure.
Also in util/wdwrite and WPrefs.app.
--------------------------------------
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -Wall -Wextra 
-Wno-sign-compare -Wno-deprecated-declarations   -o wxcopy wxcopy.o 
-L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lsocket  -lnsl -lXext  
Undefined                       first referenced
 symbol                             in file
__progname                          wxcopy.o
ld: fatal: symbol referencing errors. No output written to wxcopy
collect2: ld returned 1 exit status
gmake[3]: *** [wxcopy] Error 1
gmake[3]: Leaving directory `/buildzone/wmaker-crm/util'

__progname is GNU thing, not defined in older Sun libc.
Also in wxpaste, wdwrite, wdread, getstyle, setstyle, convertfonts, seticons, 
geticonset, wmsetbg, wmgenmenu, wmmenugen
--------------------------------------
wmiv has many issues with conflicting types in XKBlib.h
/usr/openwin/include/X11/XKBlib.h:516: error: syntax error before "XkbBell"
/usr/openwin/include/X11/XKBlib.h:523: warning: type defaults to `int' in 
declaration of `XkbBell'
/usr/openwin/include/X11/XKBlib.h:523: warning: data definition has no type or 
storage class

Reply via email to