[Bug 70610] New: compile error on Solaris 2.6 - `alloca' undeclared

stevee at zuken.co.uk stevee at zuken.co.uk
Tue Dec 16 15:29:55 GMT 2003

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
           Summary: compile error on Solaris 2.6 - `alloca' undeclared
           Product: arts
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Solaris
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: xine_artsplugin
        AssignedTo: kde-multimedia at kde.org
        ReportedBy: stevee at zuken.co.uk

Version:            (using KDE KDE 3.1.94)
Installed from:    Compiled From Sources
Compiler:          gcc 3.2.3 
OS:          Solaris

When compiling on Solaris 2.6 I get this error:

if /bin/ksh ../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/opt/kde/include/arts -I/opt/kde/include -I/opt/qt/include   -I/gorbag/exta/cad/externals/SOLARIS/include -I/gorbag/exta/cad/externals/SOLARIS/include  -DQT_THREAD_SUPPORT -I/opt/kde/include -I/gorbag/exta/cad/externals/SOLARIS/include -I/opt/qt/include  -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -I/opt/kde/include -I/gorbag/exta/cad/externals/SOLARIS/include -I/opt/qt/include -O2 -fomit-frame-pointer -DNeedVarargsPrototypes=1 -DNeedFunctionPrototypes=1 -pipe -fno-exceptions -mcpu=ultrasparc -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT videoscaler.lo -MD -MP -MF ".deps/vide
 oscaler.Tpo" \
  -c -o videoscaler.lo `test -f 'videoscaler.cpp' || echo './'`videoscaler.cpp; \
then mv -f ".deps/videoscaler.Tpo" ".deps/videoscaler.Plo"; \
else rm -f ".deps/videoscaler.Tpo"; exit 1; \
videoscaler.cpp:36: warning: aggregate has a partly bracketed initializer
videoscaler.cpp: In function `void scaleYuvToRgb32(int, int, unsigned char**, 
   unsigned int*, int, int, unsigned int*, unsigned int)':
videoscaler.cpp:150: `alloca' undeclared (first use this function)
videoscaler.cpp:150: (Each undeclared identifier is reported only once for each 
   function it appears in.)
gmake[4]: *** [videoscaler.lo] Error 1
gmake[4]: Leaving directory `/tmp/kdemultimedia-3.1.94/xine_artsplugin/tools/thumbnail'

It appears that videoscaler.cpp makes use of alloca, but the header file required for that function on Solaris (alloca.h) is only included if HAVE_ALLOCA_H is defined, and the configure process does *not* define it.

More information about the kde-multimedia mailing list