[kde-solaris] Problem compiling kde-3.1.95

Jan Van Belle Jan.Van_Belle at alcatel.be
Tue Jan 20 09:24:28 CET 2004


		Hello all,

		Can someone help me with this one ??
When I start compiling arts-1.1.95, I get the following error:

make  all-recursive
make[1]: Entering directory `/dumpdisk/localdisk/builddir/arts-1.1.95'
Making all in libltdl
make[2]: Entering directory `/dumpdisk/localdisk/builddir/arts-1.1.95/libltdl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/dumpdisk/localdisk/builddir/arts-1.1.95/libltdl'
Making all in mcop
make[2]: Entering directory `/dumpdisk/localdisk/builddir/arts-1.1.95/mcop'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/dumpdisk/localdisk/builddir/arts-1.1.95/mcop'
Making all in mcopidl
make[2]: Entering directory `/dumpdisk/localdisk/builddir/arts-1.1.95/mcopidl'
/bin/bash ../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor 
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG 
-DNO_DEBUG -O2 -mcpu=ultrasparc -mtune=ultrasparc -g -O2 -fno-exceptions 
-fno-check-new -fno-common  -ftemplate-depth-99 -O0   
-L/localdisk/desktop/system/lib -L/localdisk/desktop/printing/lib 
-L/localdisk/desktop/tools/lib -L/localdisk/desktop/multimedia/lib 
-L/localdisk/desktop/graphics/lib -L/usr/openwin/lib -L/localdisk/java/lib -o 
mcopidl -L/dumpdisk/localdisk/toolkits/qt/v3.2.1/lib 
-L/dumpdisk/localdisk/desktop/kde/v3.1.95/lib  
-L/localdisk/desktop/printing/lib -L/localdisk/desktop/tools/lib 
-L/localdisk/desktop/multimedia/lib -L/localdisk/desktop/graphics/lib 
-L/localdisk/java/lib -L/usr/openwin/lib mcopidl.all_cc.o  ../mcop/libmcop.la
/dumpdisk/localdisk/desktop/system/bin/ld: cannot find -lgcc_
collect2: ld returned 1 exit status
make[2]: *** [mcopidl] Error 1
make[2]: Leaving directory `/dumpdisk/localdisk/builddir/arts-1.1.95/mcopidl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/dumpdisk/localdisk/builddir/arts-1.1.95'
make: *** [all] Error 2

--> so the interesting part is: 
/dumpdisk/localdisk/desktop/system/bin/ld: cannot find -lgcc_

When I compile arts-1.1.4 (with the same settings from the same script), I 
don't get this error. In fact, it's the first time I see it.

For general intrest, I'll include my build script and the configure logfile...

Kind regards

Jan
-------------- next part --------------
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking target system type... sparc-sun-solaris2.8
checking for a BSD-compatible install... /localdisk/desktop/system/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /localdisk/desktop/system/bin/install -c -p
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether g++ supports -Wundef... yes
checking whether g++ supports -Wno-long-long... yes
checking whether g++ supports -Wnon-virtual-dtor... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fno-common... yes
checking whether g++ supports -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -O0... yes
not using lib directory suffix
checking for a sed that does not truncate output... /localdisk/desktop/system/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /dumpdisk/localdisk/desktop/system/bin/ld
checking if the linker (/dumpdisk/localdisk/desktop/system/bin/ld) is GNU ld... yes
checking for /dumpdisk/localdisk/desktop/system/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /localdisk/desktop/system/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fl32... no
checking for af77... no
checking for fort77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for lf95... no
checking for g95... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 262144
checking command to parse /localdisk/desktop/system/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/dumpdisk/localdisk/desktop/system/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... solaris2.8 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /dumpdisk/localdisk/desktop/system/bin/ld
checking if the linker (/dumpdisk/localdisk/desktop/system/bin/ld) is GNU ld... yes
checking whether the g++ linker (/dumpdisk/localdisk/desktop/system/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/dumpdisk/localdisk/desktop/system/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.8 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
checking which extension is used for shared libraries... 
checking which variable specifies run-time library path... LD_LIBRARY_PATH
checking for the default library search path... /lib /usr/lib
checking for objdir... .libs
checking command to parse /localdisk/desktop/system/bin/nm -B output... yes
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for dlopen in -ldl... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dld_link in -ldld... no
checking for dlerror... yes
checking for _ prefix in compiled symbols... (cached) no
checking whether deplibs are loaded by dlopen... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for dlfcn.h... (cached) yes
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking dld.h usability... no
checking dld.h presence... no
checking for dld.h... no
checking for string.h... (cached) yes
checking for strchr... yes
checking for strrchr... yes
checking for memcpy... yes
checking for strcmp... yes
checking for extra includes... added
checking for extra libs... added
checking for strlcat... yes
checking if strlcat needs custom prototype... no
checking for strlcpy... yes
checking if strlcpy needs custom prototype... no
checking for main in -lutil... no
checking for main in -lcompat... no
checking for crypt in -lcrypt... yes
checking for socklen_t... socklen_t
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... no
checking for inet_ntoa in -lnsl... yes
checking for connect... no
checking for connect in -lsocket... yes
checking for remove... yes
checking for shmat... yes
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) no
checking for poll in -lpoll... no
checking CoreAudio/CoreAudio.h usability... no
checking CoreAudio/CoreAudio.h presence... no
checking for CoreAudio/CoreAudio.h... no
checking if res_init needs -lresolv... yes
checking if res_init is available... yes
checking for killpg in -lucb... no
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 4
checking for char *... yes
checking size of char *... 4
checking for dlopen in -ldl... (cached) yes
checking for shl_unload in -ldld... no
checking for size_t... yes
checking size of size_t... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking sizeof size_t == sizeof unsigned long... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
checking for vsnprintf... yes
checking for snprintf... yes
checking if Qt compiles without flags... no
checking if C++ programs can be compiled... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking sys/cdefs.h usability... no
checking sys/cdefs.h presence... no
checking for sys/cdefs.h... no
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking sysent.h usability... no
checking sysent.h presence... no
checking for sysent.h... no
checking for strings.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking linux/socket.h usability... no
checking linux/socket.h presence... no
checking for linux/socket.h... no
checking socketbits.h usability... no
checking socketbits.h presence... no
checking for socketbits.h... no
checking sigaction.h usability... no
checking sigaction.h presence... no
checking for sigaction.h... no
checking paths.h usability... no
checking paths.h presence... no
checking for paths.h... no
checking for malloc.h... (cached) yes
checking monetary.h usability... yes
checking monetary.h presence... yes
checking for monetary.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/mnttab.h usability... yes
checking sys/mnttab.h presence... yes
checking for sys/mnttab.h... yes
checking mntent.h usability... no
checking mntent.h presence... no
checking for mntent.h... no
checking fstab.h usability... no
checking fstab.h presence... no
checking for fstab.h... no
checking sys/soundcard.h usability... no
checking sys/soundcard.h presence... no
checking for sys/soundcard.h... no
checking for X... libraries , headers 
checking for IceConnectionNumber in -lICE... yes
checking for libXext... yes
checking for pthread_create in -lpthread... yes
checking whether g++ supports -mt... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for perl... /localdisk/desktop/system/bin/perl
checking for Qt... libraries /dumpdisk/localdisk/toolkits/qt/v3.2.1/lib, headers /dumpdisk/localdisk/toolkits/qt/v3.2.1/include using -mt
checking for moc... /dumpdisk/localdisk/toolkits/qt/v3.2.1/bin/moc
checking for uic... /dumpdisk/localdisk/toolkits/qt/v3.2.1/bin/uic
checking whether uic supports -L ... yes
checking whether uic supports -nounload ... yes
checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... will be installed in /dumpdisk/localdisk/desktop/kde/v3.1.95
checking for main in -lcompat... (cached) no
checking for main in -lutil... (cached) no
checking X11/ICE/ICElib.h usability... yes
checking X11/ICE/ICElib.h presence... yes
checking for X11/ICE/ICElib.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether byte ordering is bigendian... yes
checking for socket... no
checking for snprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for seteuid... yes
checking for setegid... yes
checking for random... yes
checking for strfmon... yes
checking for stpcpy... no
checking for mkstemp... yes
checking for setmntent... no
checking for gettimeofday... yes
checking for vasprintf... no
checking for pid_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for usleep... yes
checking if usleep needs custom prototype... no
checking for setenv... no
checking if setenv needs custom prototype... yes - in libkdefakes
checking for gethostname... yes
checking if gethostname needs custom prototype... no
checking for random... yes
checking if random needs custom prototype... no
checking for srandom... yes
checking if srandom needs custom prototype... no
checking for S_ISSOCK... yes
checking for socklen_t... (cached) socklen_t
checking libaudioio.h usability... no
checking libaudioio.h presence... no
checking for libaudioio.h... no
checking audio/audiolib.h usability... no
checking audio/audiolib.h presence... no
checking for audio/audiolib.h... no
checking esd.h usability... yes
checking esd.h presence... yes
checking for esd.h... yes
checking for esd_open_sound in -lesd... yes
checking audiofile.h usability... yes
checking audiofile.h presence... yes
checking for audiofile.h... yes
checking for afOpenFile in -laudiofile... yes
checking dmedia/audio.h usability... no
checking dmedia/audio.h presence... no
checking for dmedia/audio.h... no
checking for mas-config... no
checking for posix realtime scheduling support... yes
checking for getdomainname... no
checking if getdomainname needs custom prototype... getdomainname unavailable
checking ioctl type... 1
checking for x86 float to int conversions... no
checking for x86 SSE instructions... no
checking for stdio emulation in artsdsp... no
checking whether g++ supports -ftemplate-depth-99... yes
checking sys/asoundlib.h usability... no
checking sys/asoundlib.h presence... no
checking for sys/asoundlib.h... no
checking alsa/asoundlib.h usability... no
checking alsa/asoundlib.h presence... no
checking for alsa/asoundlib.h... no
checking for IRIX... "no"
checking for pkg-config... /localdisk/toolkits/gtk/bin/pkg-config
checking for GLib-2.0 (at least 1.3.3)... yes
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking for _oss_ioctl in -lossaudio... no
checking for ov_read_float in -lvorbisfile... yes
checking ogg/ogg.h usability... yes
checking ogg/ogg.h presence... yes
checking for ogg/ogg.h... yes
checking vorbis/vorbisfile.h usability... yes
checking vorbis/vorbisfile.h presence... yes
checking for vorbis/vorbisfile.h... yes
checking for ov_read_float() from rc3... no
checking for mad_synth_frame in -lmad... yes
checking mad.h usability... yes
checking mad.h presence... yes
checking for mad.h... yes
checking the required GSL-Loader library set... complete
checking size of pthread_mutex_t... 24
checking size of pthread_cond_t... 16
checking size of intmax_t... 8
checking for pthread_mutexattr_settype()... yes
checking for getcwd... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for an implementation of va_copy()... yes
checking for an implementation of __va_copy()... yes
checking if libltdl should be compiled... yes
checking if mcop should be compiled... yes
checking if mcopidl should be compiled... yes
checking if flow should be compiled... yes
checking if mcop_mt should be compiled... yes
checking if soundserver should be compiled... yes
checking if artsc should be compiled... yes
checking if examples should be compiled... yes
checking if tests should be compiled... yes
checking if doc should be compiled... yes
checking if gmcop should be compiled... yes
checking if qtmcop should be compiled... yes
checking if x11 should be compiled... yes
configure: creating ./config.status
fast creating Makefile
fast creating artsc/Makefile
fast creating doc/Makefile
fast creating examples/Makefile
fast creating flow/Makefile
fast creating flow/gsl/Makefile
fast creating flow/gslpp/Makefile
fast creating flow/mcopclass/Makefile
fast creating gmcop/Makefile
fast creating libltdl/Makefile
fast creating mcop/Makefile
fast creating mcop_mt/Makefile
fast creating mcopidl/Makefile
fast creating qtmcop/Makefile
fast creating soundserver/Makefile
fast creating tests/Makefile
fast creating x11/Makefile
fast creating artsc/artsc-config
fast creating artsc/artsdsp
fast creating soundserver/artsversion-new.h
fast creating flow/gsl/gslconfig.h
config.pl: fast created 21 file(s).
config.status: creating config.h
config.status: executing depfiles commands

Good - your configure finished. Start make now

-------------- next part --------------
#!/dumpdisk/localdisk/desktop/system/bin/bash

## Script to compile KDE
## (C) 2003   --  Jan Van Belle (Jan.Van_Belle at alcatel.be)


KDE_VERSION=v3.1.4
QT_VERSION=v3.2.1

KDEDIR=/dumpdisk/localdisk/desktop/kde/$KDE_VERSION
QTDIR=/dumpdisk/localdisk/toolkits/qt/$QT_VERSION
LOCAL=
PATH=/localdisk/desktop/system/bin:/localdisk/desktop/multimedia/bin:/localdisk/desktop/printing/bin:/localdisk/desktop/graphics/bin:/localdisk/desktop/tools/bin:/localdisk/desktop/kde/$KDE_VERSION/bin:/localdisk/toolkits/lesstif/bin:/localdisk/toolkits/qt/$QT_VERSION/bin:/localdisk/toolkits/gtk/bin:/localdisk/toolkits/tcltk/bin:/localdisk/java/bin:/usr/openwin/bin:/dumpdisk/localdisk/java/jre/bin:/ap/local/5.8/bin:/usr/dt/bin:/usr/ccs/bin:/bin:/usr/bin:/usr/atria/bin:/usr/sbin:/usr/ucb
CPPFLAGS="-I/localdisk/desktop/system/include -I/localdisk/desktop/printing/include -I/localdisk/desktop/tools/include -I/localdisk/desktop/multimedia/include/freetype2 -I/localdisk/desktop/multimedia/include -I/localdisk/desktop/graphics/include -I/usr/openwin/include -I/localdisk/java/include"
LDFLAGS="-L/localdisk/desktop/system/lib -L/localdisk/desktop/printing/lib -L/localdisk/desktop/tools/lib -L/localdisk/desktop/multimedia/lib -L/localdisk/desktop/graphics/lib -L/usr/openwin/lib -L/localdisk/java/lib"
PKG_CONFIG_PATH=/localdisk/desktop/system/lib/pkgconfig:/localdisk/desktop/printing/lib/pkgconfig:/localdisk/desktop/tools/lib/pkgconfig:/localdisk/desktop/kde/$KDE_VERSION/lib/pkgconfig:/localdisk/desktop/multimedia/lib/pkgconfig:/localdisk/desktop/graphics/lib/pkgconfig:/localdisk/toolkits/qt/$QT_VERSION/lib/pkgconfig:/localdisk/toolkits/gtk/lib/pkgconfig:/localdisk/toolkits/tcltk/lib/pkgconfig:/localdisk/toolkits/lesstif/lib/pkgconfig
export KDEDIR QTDIR PKG_CONFIG_PATH PATH LOCAL CPPFLAGS LDFLAGS

#########################################################################

#PACKAGES="arts kdelibs kdebase kdenetwork kdepim kdeutils kdegraphics kdemultimedia kdevelop kdegraphics quanta"
PACKAGES="arts kdelibs kdebase kdenetwork kdepim kdeutils kdemultimedia kdegraphics kdetoys quanta kdesdk kdevelop"
#PACKAGES="kdevelop kdeutils kdemultimedia kdeartwork  quanta "
src=../sources/kde-sources-$KDE_VERSION

#cat >> kde-cvs-build.log << EOF
#   "kde-cvs build started :"
#EOF

if [ -f kde-$KDE_VERSION-build.log ]
then
date >> kde-$KDE_VERSION-build.log
else
date > kde-$KDE_VERSION-build.log
fi

for package in $PACKAGES
do

   if [ -f config-$package-$KDE_VERSION* ]
   then
      echo "$package already done"          && continue
   fi
	          
   if [ -d $package* ] 
   then
      echo "skipping extraction"
   else
      echo "extracting $package"
      tar xfj $src/$package*.bz2
   fi
   
   echo "doing $package"

   cd $package*                             || exit

   OPTS=""
   MY_CFLAGS="-mcpu=ultrasparc -mtune=ultrasparc -g -Os -pipe -D FORCE_DEBUGGER"
#       if [ "$package" = "kdesupport" ]
#               then OPTS="$OPTS --prefix=/usr/local"; fi
#        if ./configure --help | grep -q shadow
#                then OPTS="$OPTS --with-shadow --without-pam"; fi

   if [ "$package" = "arts" ] 
   then
      PREOPTS=""
      MY_CFLAGS="-mcpu=ultrasparc -mtune=ultrasparc -g -O2"
      EXTRAOPTS=""
   fi

   if [ "$package" = "kdelibs" ]; then
      EXTRAOPTS="--with-distribution --with-ssl-dir=/localdisk/desktop/tools" 
      PREOPTS="ksmartcard"
   fi

   if [ "$package" = "kdebase" ]; then
      PREOPTS="legacyimport";
      EXTRAOPTS="--with-motif-includes=/localdisk/toolkits/lesstif/include --with-motif-libraries=/localdisk/toolkits/lesstif/lib --with-java=/localdisk/java";
   fi

   if [ "$package" = "kdegraphics" ]; then
      MY_CFLAGS="-mcpu=ultrasparc -mtune=ultrasparc -g -Os -pipe -D FORCE_DEBUGGER"
      PREOPTS="kamera kooka kruler kuickshow";
      EXTRAOPTS="";
   fi

   if [ "$package" = "kdemultimedia" ]; then
      PREOPTS="krec";
      EXTRAOPTS="--with-vorbis=/localdisk/desktop/multimedia --with-lame=/localdisk/desktop/multimedia";
   fi

   if [ "$package" = "kdenetwork" ]; then
      PREOPTS="knewsticker ksirc kppp kopete";
      EXTRAOPTS="--with-ssl-dir=/localdisk/desktop/tools";
   fi

   if [ "$package" = "kdepim" ]; then
      PREOPTS="kandy kpilot";
      EXTRAOPTS="--without-xpm";
   fi

   if [ "$package" = "kdeutils" ]; then
      PREOPTS="kedit kfloppy kjots klaptopdaemon";
      EXTRAOPTS="";
   fi
   
   if [ "$package" = "kdesdk" ]; then
      PREOPTS="kbabel umbrello"
      EXTRAOPTS=""
   fi

   if [ "$package" = "kdevelop" ]; then
      PREOPTS="";
      EXTRAOPTS="--enable-clearcase --with-pythondir=/localdisk/desktop/tools --disable-ada --disable-fortran --disable-pascal --disable-ruby"
   fi

   if [ "$package" = "quanta" ]; then
      PREOPTS="";
      EXTRAOPTS="--with-libxml-prefix=/localdisk/desktop/tools --with-libxslt-prefix=/localdisk/desktop/tools";
   fi

   if [ "$package" = "kdeartwork" ]; then
      PREOPTS="";
      EXTRAOPTS="--without-gl";
   fi

   if [ ! -f Makefile ]
   then
      if [ -f Makefile.cvs ]
      then
         make -f Makefile.cvs                             || exit
      fi
   
      echo "configuring $package" >> ../kde-$KDE_VERSION-build.log
      date >> ../kde-$KDE_VERSION-build.log
      DO_NOT_COMPILE=$PREOPTS \
      CFLAGS=$MY_CFLAGS \
      CXXFLAGS=$MY_CFLAGS \
      ./configure --prefix=/dumpdisk/localdisk/desktop/kde/$KDE_VERSION --enable-debug=no --enable-final \
                  --with-extra-includes=/localdisk/desktop/printing/include:/localdisk/desktop/tools/include:/localdisk/desktop/multimedia/include/freetype2:/localdisk/desktop/multimedia/include/:/localdisk/desktop/graphics/include:/localdisk/java/include:/usr/openwin/include \
                  --with-extra-libs=/localdisk/desktop/printing/lib:/localdisk/desktop/tools/lib:/localdisk/desktop/multimedia/lib:/localdisk/desktop/graphics/lib:/localdisk/java/lib:/usr/openwin/lib \
                  --localstatedir=/dumpdisk/localdisk/desktop/kde/$KDE_VERSION/var \
                  --sysconfdir=/dumpdisk/localdisk/desktop/kde/$KDE_VERSION/etc \
                  $EXTRAOPTS  | tee config-$package-$KDE_VERSION.txt || exit
   fi
   
   echo "making $package" >> ../kde-$KDE_VERSION-build.log
   date >> ../kde-$KDE_VERSION-build.log
   make -j 2 -l 80                                                   || exit
   
#   if [ "$package" = "kdelibs" ]; then
#      make -k -l 70 apidox          
#   fi
   
   echo -e "\007installing $package now..."
   echo "installing $package" >> ../kde-$KDE_VERSION-build.log
   date >> ../kde-$KDE_VERSION-build.log
   
   make -l 90 install                                                || exit
   cd ..
   cp $package*/config-$package-$KDE_VERSION.txt .
   rm -rf $package*

   date >> kde-$KDE_VERSION-build.log

done ;



More information about the kde-solaris mailing list