Compling fvwm95 on Solaris 10

From: stan (stanb@panix.com)
Date: Fri Aug 25 2006 - 15:01:15 EDT


I've got a couple of Blade 1500's that I want to use for an application
that I have been using FreeBSD for. Turns out not much but Solaris will run
on these machines (to bad, they are nice machines). In any case, I'm trying
to compile FVWM95 on it, since I can't seem to find a prebuilt binary.
However the compile fails, like this:

Script started on Fri Aug 25 14:26:23 2006
# ./configure
creating cache ./config.cache
checking for uname... uname -a
checking 'checking cached value of $uname'... no
checking for ar... ar cr
checking for makedepend... makedepend
checking for rm... rm -f
checking for xc-config... no
checking for ranlib... ranlib
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether the C compiler (gcc -O ) works... yes
checking whether the C compiler (gcc -O ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking how to run the C preprocessor... gcc -E
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... no
checking for a BSD compatible install... /opt/sfw/bin/ginstall -c
checking whether ln -s works... yes
checking for main in -lXbsd... no
checking for connect... no
checking for main in -lsocket... yes
checking for gethostbyname... no
checking for main in -lnsl... yes
checking for ANSI C header files... yes
checking for working const... yes
checking for inline... inline
checking for gethostname... yes
checking for waitpid... yes
checking for sysconf... yes
checking for uname... yes
checking for strerror... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for X... libraries , headers
updating cache ./config.cache
creating ./config.status
creating Makefile
creating docs/Makefile
creating fvwm/Makefile
creating libs/Makefile
creating mini-icons/Makefile
creating pixmaps/Makefile
creating utils/Makefile
creating xpmroot/Makefile
creating sample.fvwmrc/Makefile
creating sample.fvwmrc/system.fvwm95rc
creating modules/Makefile
creating modules/FvwmAudio/Makefile
creating modules/FvwmAuto/Makefile
creating modules/FvwmBacker/Makefile
creating modules/FvwmBanner/Makefile
creating modules/FvwmButtons/Makefile
creating modules/FvwmConsole/Makefile
creating modules/FvwmCpp/Makefile
creating modules/FvwmDebug/Makefile
creating modules/FvwmForm/Makefile
creating modules/FvwmIconBox/Makefile
creating modules/FvwmIconMan/Makefile
creating modules/FvwmIdent/Makefile
creating modules/FvwmM4/Makefile
creating modules/FvwmPager/Makefile
creating modules/FvwmSave/Makefile
creating modules/FvwmSaveDesk/Makefile
creating modules/FvwmScript/Makefile
creating modules/FvwmScript/Widgets/Makefile
creating modules/FvwmScript/Scripts/Makefile
creating modules/FvwmScroll/Makefile
creating modules/FvwmTalk/Makefile
creating modules/FvwmTaskBar/Makefile
creating modules/FvwmWharf/Makefile
creating modules/FvwmWinList/Makefile
creating include/FVWMconfig.h
include/FVWMconfig.h is unchanged
# make
Making all in libs
gcc -I../include -O -DXPM -DSHAPE -c GetFdWidth.c
gcc -I../include -O -DXPM -DSHAPE -c GetFont.c
gcc -I../include -O -DXPM -DSHAPE -c GetLine.c
gcc -I../include -O -DXPM -DSHAPE -c Picture.c
gcc -I../include -O -DXPM -DSHAPE -c ReadPacket.c
gcc -I../include -O -DXPM -DSHAPE -c SendInfo.c
gcc -I../include -O -DXPM -DSHAPE -c SendText.c
gcc -I../include -O -DXPM -DSHAPE -c SetMask.c
gcc -I../include -O -DXPM -DSHAPE -c envvar.c
gcc -I../include -O -DXPM -DSHAPE -c findIconFile.c
gcc -I../include -O -DXPM -DSHAPE -c hostname.c
gcc -I../include -O -DXPM -DSHAPE -c mygetostype.c
gcc -I../include -O -DXPM -DSHAPE -c safemalloc.c
gcc -I../include -O -DXPM -DSHAPE -c sleep.c
gcc -I../include -O -DXPM -DSHAPE -c strutils.c
gcc -I../include -O -DXPM -DSHAPE -c wild.c
ar cr libfvwm95.a GetFdWidth.o GetFont.o GetLine.o Picture.o ReadPacket.o
SendInfo.o SendText.o SetMask.o envvar.o findIconFile.o hostname.o
mygetostype.o safemalloc.o sleep.o strutils.o wild.o
ranlib libfvwm95.a
Making all in fvwm
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c
add_window.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c
bindings.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c
borders.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c
builtins.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c
colormaps.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c colors.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c
complex.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c
decorations.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c events.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c focus.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c
functions.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c fvwm.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c icons.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c menus.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c misc.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c module.c
In file included from module.c:32:
module.h:35:1: warning: "M_ERROR" redefined
In file included from /usr/include/netinet/in.h:66,
                 from /usr/include/sys/socket.h:45,
                 from module.c:25:
/usr/include/sys/stream.h:421:1: warning: this is the location of the previous
definition
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c move.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c
placement.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c read.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c resize.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c style.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c
virtual.c
gcc -I../include -O -DXPM -DSHAPE
-DFVWM_ICONDIR=\"/X11/bitmaps:/X11/pixmaps:NONE/icons\"
-DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DFVWMRC=\".fvwm95rc\" -c
windows.c
gcc -o fvwm95 add_window.o bindings.o borders.o builtins.o colormaps.o
colors.o complex.o decorations.o events.o focus.o functions.o fvwm.o
icons.o menus.o misc.o module.o move.o placement.o read.o resize.o
style.o virtual.o windows.o -L../libs -lfvwm95 -lXpm -lXext -lX11 -lsocket
-lnsl
Making all in modules
Making all in FvwmAudio
gcc -I../../include -O -DXPM -DSHAPE -c FvwmAudio.c
gcc -o FvwmAudio FvwmAudio.o -L../../libs -lfvwm95 -lXpm -lXext -lX11
-lsocket -lnsl
Making all in FvwmAuto
gcc -I../../include -O -DXPM -DSHAPE -c FvwmAuto.c
gcc -o FvwmAuto FvwmAuto.o -L../../libs -lfvwm95 -lXpm -lXext -lX11 -lsocket
-lnsl
Making all in FvwmBacker
gcc -I../../include -O -DXPM -DSHAPE -c FvwmBacker.c
gcc -I../../include -O -DXPM -DSHAPE -c Mallocs.c
gcc -I../../include -O -DXPM -DSHAPE -c root_bits.c
gcc -o FvwmBacker FvwmBacker.o Mallocs.o root_bits.o -L../../libs -lfvwm95
-lXpm -lXext -lX11 -lsocket -lnsl
Making all in FvwmBanner
gcc -I../../include -O -DXPM -DSHAPE -c FvwmBanner.c
gcc -o FvwmBanner FvwmBanner.o -L../../libs -lfvwm95 -lXpm -lXext -lX11
-lsocket -lnsl
Making all in FvwmButtons
gcc -I../../include -O -DXPM -DSHAPE -c FvwmButtons.c
gcc -I../../include -O -DXPM -DSHAPE -c button.c
gcc -I../../include -O -DXPM -DSHAPE -c draw.c
gcc -I../../include -O -DXPM -DSHAPE -c icons.c
gcc -I../../include -O -DXPM -DSHAPE -c misc.c
misc.c:156:16: warning: extra tokens at end of #undef directive
gcc -I../../include -O -DXPM -DSHAPE -c output.c
gcc -I../../include -O -DXPM -DSHAPE -c parse.c
gcc -o FvwmButtons FvwmButtons.o button.o draw.o icons.o misc.o output.o
parse.o -L../../libs -lfvwm95 -lXpm -lXext -lX11 -lsocket -lnsl
Making all in FvwmConsole
gcc -I../../include -O -DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DXPM -DSHAPE
-c FvwmConsole.c
In file included from FvwmConsole.h:26,
                 from FvwmConsole.c:10:
../../fvwm/module.h:35:1: warning: "M_ERROR" redefined
In file included from /usr/include/netinet/in.h:66,
                 from /usr/include/sys/socket.h:45,
                 from FvwmConsole.h:18,
                 from FvwmConsole.c:10:
/usr/include/sys/stream.h:421:1: warning: this is the location of the previous
definition
FvwmConsole.c: In function `server':
FvwmConsole.c:146: warning: passing arg 2 of `bind' from incompatible pointer
type
FvwmConsole.c:160: warning: passing arg 2 of `accept' from incompatible
pointer type
gcc -o FvwmConsole FvwmConsole.o -L../../libs -lfvwm95 -lXpm -lXext -lX11
-lsocket -lnsl
Making all in FvwmCpp
gcc -I../../include -O -DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DXPM -DSHAPE
-c FvwmCpp.c
In file included from FvwmCpp.c:37:
../../fvwm/module.h:35:1: warning: "M_ERROR" redefined
In file included from /usr/include/netinet/in.h:66,
                 from /usr/include/sys/socket.h:45,
                 from FvwmCpp.c:28:
/usr/include/sys/stream.h:421:1: warning: this is the location of the previous
definition
gcc -o FvwmCpp FvwmCpp.o -L../../libs -lfvwm95 -lXpm -lXext -lX11 -lsocket
-lnsl
Making all in FvwmDebug
gcc -I../../include -O -DXPM -DSHAPE -c FvwmDebug.c
gcc -o FvwmDebug FvwmDebug.o -L../../libs -lfvwm95 -lXpm -lXext -lX11
-lsocket -lnsl
Making all in FvwmForm
gcc -I../../include -O -DXPM -DSHAPE -c FvwmForm.c
gcc -o FvwmForm FvwmForm.o -L../../libs -lfvwm95 -lXpm -lXext -lX11 -lsocket
-lnsl
Making all in FvwmIconBox
gcc -I../../include -O -DXPM -DSHAPE -c FvwmIconBox.c
gcc -I../../include -O -DXPM -DSHAPE -c icons.c
gcc -o FvwmIconBox FvwmIconBox.o icons.o -L../../libs -lfvwm95 -lXpm -lXext
-lX11 -lsocket -lnsl
Making all in FvwmIconMan
gcc -I../../include -O -DFVWMDIR=\"/usr/local/lib/X11/fvwm95\" -DXPM -DSHAPE
-c FvwmIconMan.c
FvwmIconMan.c:412:1: pasting "." and "res" does not give a valid preprocessing
token
FvwmIconMan.c:412:1: pasting "." and "res" does not give a valid preprocessing
token
FvwmIconMan.c:423:1: pasting "." and "fontname" does not give a valid
preprocessing token
FvwmIconMan.c:423:1: pasting "." and "fontname" does not give a valid
preprocessing token
FvwmIconMan.c:433:1: pasting "." and "geometry" does not give a valid
preprocessing token
FvwmIconMan.c:433:1: pasting "." and "geometry" does not give a valid
preprocessing token
FvwmIconMan.c:484:1: pasting "." and "backColorName" does not give a valid
preprocessing token
FvwmIconMan.c:484:1: pasting "." and "backColorName" does not give a valid
preprocessing token
FvwmIconMan.c:497:1: pasting "." and "foreColorName" does not give a valid
preprocessing token
FvwmIconMan.c:497:1: pasting "." and "foreColorName" does not give a valid
preprocessing token
FvwmIconMan.c:529:1: pasting "." and "actions" does not give a valid
preprocessing token
FvwmIconMan.c:529:1: pasting "." and "actions" does not give a valid
preprocessing token
FvwmIconMan.c:548:1: pasting "." and "use_titlename" does not give a valid
preprocessing token
FvwmIconMan.c:548:1: pasting "." and "use_titlename" does not give a valid
preprocessing token
FvwmIconMan.c:583:1: pasting "." and "buttonState" does not give a valid
preprocessing token
FvwmIconMan.c:583:1: pasting "." and "buttonState" does not give a valid
preprocessing token
FvwmIconMan.c:593:1: pasting "." and "foreColorName" does not give a valid
preprocessing token
FvwmIconMan.c:593:1: pasting "." and "foreColorName" does not give a valid
preprocessing token
FvwmIconMan.c:603:1: pasting "." and "backColorName" does not give a valid
preprocessing token
FvwmIconMan.c:603:1: pasting "." and "backColorName" does not give a valid
preprocessing token
FvwmIconMan.c:622:1: pasting "." and "followFocus" does not give a valid
preprocessing token
FvwmIconMan.c:622:1: pasting "." and "followFocus" does not give a valid
preprocessing token
FvwmIconMan.c:641:1: pasting "." and "sort" does not give a valid
preprocessing token
FvwmIconMan.c:641:1: pasting "." and "sort" does not give a valid
preprocessing token
*** Error code 1
make: Fatal error: Command failed for target `FvwmIconMan.o'
Current working directory
/usr/local/src/pd/fvwm/fvwm95-2.0.43f/modules/FvwmIconMan
*** Error code 1
The following command caused the error:
for i in FvwmAudio FvwmAuto FvwmBacker FvwmBanner FvwmButtons FvwmConsole
FvwmCpp FvwmDebug FvwmForm FvwmIconBox FvwmIconMan FvwmIdent FvwmM4 FvwmPager
FvwmSave FvwmSaveDesk FvwmScript FvwmScroll FvwmTalk FvwmTaskBar FvwmWinList
FvwmWharf; do \
        echo Making all in $i ; \
        (cd $i; make all) \
done
make: Fatal error: Command failed for target `all'
Current working directory /usr/local/src/pd/fvwm/fvwm95-2.0.43f/modules
*** Error code 1
The following command caused the error:
for i in libs fvwm modules utils sample.fvwmrc xpmroot pixmaps mini-icons
docs; do \
        echo Making all in $i ; \
        (cd $i; make all) \
done
make: Fatal error: Command failed for target `all'
# which gcc
/usr/sfw/bin/gcc
# gcc -C V
gcc: `-V' option must have argument
# gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
# which as
/usr/ccs/bin/as
#
script done on Fri Aug 25 14:27:40 2006

Anyone got any words of wisdom here?

--
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:40:40 EDT