[kde-solaris] kdebase 3.3.1 large file compilation env. issues on Solaris 8

Stefan Teleman steleman at nyc.rr.com
Thu Oct 21 02:18:28 CEST 2004


The only thing you have to do is:

#ifdef _FILE_OFFSET_BITS
#undef _FILE_OFFSET_BITS
#endif

in the file where the problem occurs.

--Stefan

------

On Wednesday 20 October 2004 15:43, ken mays wrote:
> I got arts and kdelibs from the 3.3.1 branch to compile cleanly.
> While compiling kdebase 3.3.1 I got '"Cannot use swapctl in the
> large files compilation environment". I see this also in using
> 'procfs.h' on Solaris. This is seen while trying to build
> kcontrol/info on Solaris 8 (SPARC and x86) build environments.
>
> --------------
>
> System:
>
> Solaris 8 (Generic_117350-02 (ultrasparc), Generic_117351-03 (x86))
>
> GCC 3.4.1, QT 3.3.2, arts/kdelibs-3.3.1
>
> ---------------
> /opt/csw/kde-gcc/bin/moc ./memory.h -o memory.moc
> if /bin/bash ../../libtool --silent --mode=compile --tag=CXX g++
> -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/csw/kde-gcc/include  
> -I/opt/csw/include  -DQT_THREAD_SU PPORT -I/opt/csw/gcc3/include
> -I/opt/csw/kde-gcc/include -I/opt/csw/include -D_R EENTRANT
> -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4
> -D_FILE_OFFSET_BITS=64 -Wnon-virtual-dtor -Wno-long-long -Wundef
> -Wall -W -Wpointer-arith -Wwrite-stri ngs -O2 -O3 -march=i486
> -mfpmath=387 -fPIC -fno-exceptions -fno-check-new -fno-c ommon
> -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
> -DQT_NO _TRANSLATION -D_GNU_SOURCE  -MT memory.lo -MD -MP -MF
> ".deps/memory.Tpo" -c -o m emory.lo memory.cpp; \
> then mv -f ".deps/memory.Tpo" ".deps/memory.Plo"; else rm -f
> ".deps/memory.Tpo"; exit 1; fi
> mkdir: Failed to make directory ".libs"; File exists
> In file included from memory_solaris.cpp:11,
>                  from memory.cpp:460:
> /usr/include/sys/swap.h:47:2: #error "Cannot use swapctl in the
> large files comp ilation environment"
> In file included from memory.cpp:460:
> memory_solaris.cpp: In member function `void
> KMemoryWidget::update()': memory_solaris.cpp:32: warning:
> deprecated conversion from string constant to `c har*'
> memory_solaris.cpp:32: warning: deprecated conversion from string
> constant to `c har*'
> memory_solaris.cpp:49: warning: deprecated conversion from string
> constant to `c har*'
> In file included from memory.cpp:460:
> memory_solaris.cpp:53:2: warning: #warning "FIXME:
> Memory_Info[CACHED_MEM]" In file included from main.cpp:31:
> info.cpp:472:7: warning: "__FreeBSD__" is not defined
> info.cpp:474:7: warning: "hpux" is not defined
> info.cpp:476:7: warning: "__NetBSD__" is not defined
> info.cpp:478:7: warning: "__OpenBSD__" is not defined
> In file included from info.cpp:481,
>                  from main.cpp:31:
> info_solaris.cpp: In function `bool GetInfo_CPU(QListView*)':
> info_solaris.cpp:64: warning: deprecated conversion from string
> constant to `cha r*'
> info_solaris.cpp:64: warning: deprecated conversion from string
> constant to `cha r*'
> info_solaris.cpp:70: warning: deprecated conversion from string
> constant to `cha r*'
> info_solaris.cpp:88: warning: deprecated conversion from string
> constant to `cha r*'
> info_solaris.cpp:97: warning: deprecated conversion from string
> constant to `cha r*'
> info_solaris.cpp:103: warning: deprecated conversion from string
> constant to `ch ar*'
> info_solaris.cpp:109: warning: deprecated conversion from string
> constant to `ch ar*'
> info_solaris.cpp:115: warning: deprecated conversion from string
> constant to `ch ar*'
> info_solaris.cpp:121: warning: deprecated conversion from string
> constant to `ch ar*'
> info_solaris.cpp: In function `char* prop_type_str(di_prop*)':
> info_solaris.cpp:387: warning: deprecated conversion from string
> constant to `ch ar*'
> info_solaris.cpp:389: warning: deprecated conversion from string
> constant to `ch ar*'
> info_solaris.cpp:391: warning: deprecated conversion from string
> constant to `ch ar*'
> info_solaris.cpp:393: warning: deprecated conversion from string
> constant to `ch ar*'
> info_solaris.cpp:395: warning: deprecated conversion from string
> constant to `ch ar*'
> info_solaris.cpp:397: warning: deprecated conversion from string
> constant to `ch ar*'
> gmake[3]: *** [memory.lo] Error 1
> gmake[3]: *** Waiting for unfinished jobs....
> info.cpp: At global scope:
> info.cpp:438: warning: 'int GetInfo_ReadfromPipe(QListView*, const
> char*, bool)' defined but not used
> gmake[3]: Leaving directory
> `/export/medusa/kenmays/build/i_kdebase/kdebase-3.3.
> 1/kcontrol/info'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory
> `/export/medusa/kenmays/build/i_kdebase/kdebase-3.3. 1/kcontrol'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/export/medusa/kenmays/build/i_kdebase/kdebase-3.3. 1'
> gmake: *** [all] Error 2
>
> --------------
>
> Anyone know how to fix?
>
> ~Ken
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> vote.yahoo.com - Register online to vote today!

-- 
Stefan Teleman          'Nobody Expects the Spanish Inquisition'
steleman at nyc.rr.com                          -Monty Python



More information about the kde-solaris mailing list