[Poppler-bugs] [Bug 28537] poppler can't be built with SunStudio Compiler (Patch inside)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jun 19 08:36:38 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=28537

--- Comment #3 from Daniel Flinkmann <dflinkmann at gmx.de> 2010-06-19 08:36:38 PDT ---
Excuse my long delay, but I had to work overhours this week and just found the
time to power up my sun today. 

Here is the compile try without any patches:

cd poppler-0.14.0 LIBS="-lrt -lsocket -lnsl -lm" LDFLAGS="-
L`pwd`/../install/lib -R/opt/myapps/libgraphics/current/lib -
R/usr/openwin/sfw/lib " \
               CFLAGS="$CFLAGS -D_XPG6 -xc99 -xO5 -m32 -xarch=sparcvis --
features=extensions -I`pwd`/../install/include -
I`pwd`/../install/include/glib-2.0 -I`pwd`/../install/lib/glib-2.0/include "\
               CPPFLAGS="$CPPFLAGS -D_XPG6 -I`pwd`/../install/include -
I`pwd`/../install/include/glib-2.0 -I`pwd`/../install/lib/glib-2.0/include "\
               ./configure --prefix="/opt/myapps/libgraphics/0.01-a"  --
disable-gtk-test
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking dependency style of cc... none
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking for fgrep... /usr/xpg4/bin/grep -F
checking for non-GNU ld... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/local/bin/nm -B
checking the name lister (/usr/local/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/local/bin/nm -B output from cc object... ok
checking how to run the C preprocessor... cc -E
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... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking for cc option to produce PIC... -KPIC -DPIC
checking if cc PIC flag -KPIC -DPIC works... yes
checking if cc static flag -Bstatic works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/ccs/bin/ld) supports shared libraries... 
yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether we are using the GNU C compiler... (cached) no
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking dependency style of cc... (cached) none
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... CC
checking whether we are using the GNU C++ compiler... no
checking whether CC accepts -g... yes
checking dependency style of CC... none
checking whether we are using the GNU C++ compiler... (cached) no
checking whether CC accepts -g... (cached) yes
checking dependency style of CC... (cached) none
checking how to run the C++ preprocessor... CC -E
checking whether the CC linker (/usr/ccs/bin/ld) supports shared libraries... 
yes
checking for CC option to produce PIC... -KPIC -DPIC
checking if CC PIC flag -KPIC -DPIC works... yes
checking if CC static flag -Bstatic works... no
checking if CC supports -c -o file.o... yes
checking if CC supports -c -o file.o... (cached) yes
checking whether the CC linker (/usr/ccs/bin/ld) supports shared libraries... 
yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking for library containing strerror... none required
checking for cc option to accept ISO C99... none needed
checking for cc option to accept ISO Standard C... (cached) none needed
checking whether we are using the GNU C++ compiler... (cached) no
checking whether CC accepts -g... (cached) yes
checking dependency style of CC... (cached) none
checking for gettimeofday... yes
checking for localtime_r... yes
checking for gmtime_r... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether pthreads work with -pthreads... no
checking for the pthreads library -lpthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_REENTRANT
checking for xlc_r... no
checking for cc_r... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for gethostbyname... (cached) yes
checking for nanosleep... yes
checking for opj_cio_open in -lopenjpeg... no
checking openjpeg.h usability... no
checking openjpeg.h presence... no
checking for openjpeg.h... no
checking for popen... yes
checking for mkstemp... yes
checking for mkstemps... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseek64... no
checking for ftell64... no
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for LIBPNG... yes
checking for FREETYPE... yes
checking which font configuration to use... fontconfig
checking for FONTCONFIG... yes
checking for CAIRO... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/stat.h... (cached) yes
checking for POPPLER_GLIB... yes
checking for glib-mkenums... 
/opt/home/daniel/poppler-0.14.0/../install/bin/glib-mkenums
checking for gtkdoc-check... no
checking for gtkdoc-rebase... no
checking for gtkdoc-mkpdf... no
checking whether to build gtk-doc documentation... no
checking for GDK... sh: gnome-config: not found
no
checking for libqt3... sh: gnome-config: not found
no
checking for POPPLER_QT4... sh: gnome-config: not found
sh: gnome-config: not found
sh: gnome-config: not found
no
checking for iconv... yes
checking for working iconv... yes
checking how to link with libiconv... -liconv
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, 
const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t 
*outbytesleft);
checking for ABIWORD... sh: gnome-config: not found
no
checking for LCMS... sh: gnome-config: not found
no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating goo/Makefile
config.status: creating fofi/Makefile
config.status: creating splash/Makefile
config.status: creating poppler/Makefile
config.status: creating utils/Makefile
config.status: creating glib/Makefile
config.status: creating glib/poppler-features.h
config.status: creating glib/reference/Makefile
config.status: creating glib/demo/Makefile
config.status: creating test/Makefile
config.status: creating qt/Makefile
config.status: creating qt4/Makefile
config.status: creating qt4/src/Makefile
config.status: creating qt4/tests/Makefile
config.status: creating qt4/demos/Makefile
config.status: creating cpp/Makefile
config.status: creating cpp/poppler-version.h
config.status: creating cpp/tests/Makefile
config.status: creating poppler.pc
config.status: creating poppler-cairo.pc
config.status: creating poppler-splash.pc
config.status: creating poppler-glib.pc
config.status: creating poppler-qt.pc
config.status: creating poppler-qt4.pc
config.status: creating poppler-cpp.pc
config.status: creating config.h
config.status: creating poppler/poppler-config.h
config.status: poppler/poppler-config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

Building poppler with support for:
 font configuration: fontconfig
 splash output:      yes
 cairo output:       yes
 abiword output:     no
 qt wrapper:         no
 qt4 wrapper:        no
 glib wrapper:       yes
   use GDK:          no
 cpp wrapper:        yes
 use gtk-doc:        no
 use libjpeg:        yes
 use libpng:         yes
 use zlib:           no
 use libcurl:        no
 use libopenjpeg:    no
 use cms:            no
 command line utils: yes

 Warning: Using libopenjpeg is recommended
PATH=/usr/local/bin:/usr/local/bin:`pwd`/install/bin:$PATH make -C 
poppler-0.14.0 all
make[1]: Entering directory `/opt/home/daniel/poppler-0.14.0'
make  all-recursive
make[2]: Entering directory `/opt/home/daniel/poppler-0.14.0'
Making all in goo
make[3]: Entering directory `/opt/home/daniel/poppler-0.14.0/goo'
 CXX    gfile.lo
 CXX    gmempp.lo
 CXX    GooHash.lo
 CXX    GooList.lo
 CXX    GooTimer.lo
 CXX    GooString.lo
 CXX    gmem.lo
 CXX    FixedPoint.lo
 CXX    PNGWriter.lo
"PNGWriter.cc", line 36: Warning: String literal converted to char* in formal 
argument msg in call to error(int, char*, ...).
"PNGWriter.cc", line 42: Warning: String literal converted to char* in formal 
argument msg in call to error(int, char*, ...).
"PNGWriter.cc", line 47: Warning: String literal converted to char* in formal 
argument msg in call to error(int, char*, ...).
"PNGWriter.cc", line 54: Warning: String literal converted to char* in formal 
argument msg in call to error(int, char*, ...).
"PNGWriter.cc", line 72: Warning: String literal converted to char* in formal 
argument msg in call to error(int, char*, ...).
"PNGWriter.cc", line 84: Warning: String literal converted to char* in formal 
argument msg in call to error(int, char*, ...).
"PNGWriter.cc", line 96: Warning: String literal converted to char* in formal 
argument msg in call to error(int, char*, ...).
"PNGWriter.cc", line 108: Warning: String literal converted to char* in formal 
argument msg in call to error(int, char*, ...).
8 Warning(s) detected.
 CXX    JpegWriter.lo
"ImgWriter.h", line 23: Error: FILE is not defined.
"ImgWriter.h", line 23: Error: A member cannot be initialized except in a 
constructor.
"ImgWriter.h", line 25: Error: Use ";" to terminate declarations.
"/opt/home/daniel/poppler-0.14.0/../install/include/jpeglib.h", line 752: 
Error: Type name expected instead of "size_t".
"/opt/home/daniel/poppler-0.14.0/../install/include/jpeglib.h", line 764: 
Error: Type name expected instead of "size_t".
"/opt/home/daniel/poppler-0.14.0/../install/include/jpeglib.h", line 796: 
Error: size_t is not defined.
"/opt/home/daniel/poppler-0.14.0/../install/include/jpeglib.h", line 798: 
Error: size_t is not defined.
"/opt/home/daniel/poppler-0.14.0/../install/include/jpeglib.h", line 943: 
Error: size_t is not defined.
"/opt/home/daniel/poppler-0.14.0/../install/include/jpeglib.h", line 945: 
Error: size_t is not defined.
"/opt/home/daniel/poppler-0.14.0/../install/include/jpeglib.h", line 952: 
Error: FILE is not defined.
"/opt/home/daniel/poppler-0.14.0/../install/include/jpeglib.h", line 953: 
Error: FILE is not defined.
"JpegWriter.h", line 35: Error: FILE is not defined.
"JpegWriter.cc", line 27: Warning: String literal converted to char* in formal 
argument msg in call to error(int, char*, ...).
"JpegWriter.cc", line 46: Error: FILE is not defined.
"JpegWriter.cc", line 50: Warning (Anachronism): Assigning void(*)
(jpeg_common_struct*) to extern "C" void(*)(jpeg_common_struct*).
"JpegWriter.cc", line 53: Error: size_t is not defined.
"JpegWriter.cc", line 53: Error: Badly formed expression.
"JpegWriter.cc", line 56: Error: f is not defined.
"JpegWriter.cc", line 59: Error: width is not defined.
"JpegWriter.cc", line 60: Error: height is not defined.
"JpegWriter.cc", line 62: Error: hDPI is not defined.
"JpegWriter.cc", line 63: Error: vDPI is not defined.
20 Error(s) and 2 Warning(s) detected.
make[3]: *** [JpegWriter.lo] Error 1
make[3]: Leaving directory `/opt/home/daniel/poppler-0.14.0/goo'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/home/daniel/poppler-0.14.0'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/home/daniel/poppler-0.14.0'
make: *** [prep-poppler] Error 2

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list