Menu

#1 Kpdfimport-0.5: Compilation fails on Slackware

open
nobody
None
5
2014-10-06
2003-08-30
Anonymous
No

Compilation fails On a fully configured
slackware 8.1 with kde 3.0.1.
If more questions, mail to
ggeorgiev@videotron.ca

------------- Compilation log ----------

/bin/sh ../libtool --silent --mode=compile --tag=CXX
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./xpdf/goo
-I./xpdf/xpdf -I/opt/kde/include
-I/usr/lib/qt-3.0.4/include -I/usr/X11R6/include
-DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor
-Wno-long-long -Wundef -Wall -pedantic -W
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings
-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
-Wconversion -O2 -fno-exceptions -fno-check-new -c
-o data.lo `test -f 'data.cpp' || echo './'`data.cpp
source='fstring.cpp' object='fstring.lo' libtool=yes
\
depfile='.deps/fstring.Plo'
tmpdepfile='.deps/fstring.TPlo' \
depmode=gcc /bin/sh ../admin/depcomp \
/bin/sh ../libtool --silent --mode=compile --tag=CXX
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./xpdf/goo
-I./xpdf/xpdf -I/opt/kde/include
-I/usr/lib/qt-3.0.4/include -I/usr/X11R6/include
-DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor
-Wno-long-long -Wundef -Wall -pedantic -W
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings
-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
-Wconversion -O2 -fno-exceptions -fno-check-new -c
-o fstring.lo `test -f 'fstring.cpp' || echo
'./'`fstring.cpp
In file included from fstring.cpp:25:
transform.h: warning: 1 trigraph(s) encountered
In file included from fstring.cpp:19:
fstring.h:58: warning: ANSI C++ forbids declaration
`QValueList' with no type
fstring.h:58: template-id `QValueList<TextLine *>'
used as a declarator
fstring.h:58: parse error before `('
fstring.h:59: semicolon missing after declaration of
`PDFImport::Paragraph'
fstring.h: In method `const class PDFImport::DRect &
PDFImport::Paragraph::rect() const':
fstring.h:55: `_rect' undeclared (first use this
function)
fstring.h:55: (Each undeclared identifier is reported
only once
fstring.h:55: for each function it appears in.)
fstring.h:55: warning: control reaches end of
non-void function `PDFImport::Paragraph::rect()
const'
fstring.h: In method `bool
PDFImport::Paragraph::hasOneLine() const':
fstring.h:57: `_lines' undeclared (first use this
function)
fstring.h:57: warning: control reaches end of
non-void function `PDFImport::Paragraph::hasOneLine()
const'
fstring.h: At top level:
fstring.h:59: `bool' is now a keyword
fstring.h:59: non-member function
`PDFImport::isFirst(const TextLine *)' cannot have
`const' method qualifier
fstring.h:59: semicolon missing after declaration of
`class PDFImport::Paragraph'
fstring.h: In function `int PDFImport::isFirst(const
TextLine *)':
fstring.h:59: warning: control reaches end of
non-void function `PDFImport::isFirst(const TextLine
*)'
fstring.h: At top level:
fstring.h:61: non-member function
`PDFImport::isSecond(const TextLine *)' cannot have
`const' method qualifier
fstring.h: In function `bool
PDFImport::isSecond(const TextLine *)':
fstring.h:61: warning: control reaches end of
non-void function `PDFImport::isSecond(const TextLine
*)'
fstring.h: At top level:
fstring.h:62: non-member function
`PDFImport::isLast(const TextLine *)' cannot have
`const' method qualifier
fstring.h: In function `bool PDFImport::isLast(const
TextLine *)':
fstring.h:62: warning: control reaches end of
non-void function `PDFImport::isLast(const TextLine
*)'
fstring.h: At top level:
fstring.h:64: non-member function
`PDFImport::findTab(double, const TextLine *)' cannot
have `const' method qualifier
fstring.h:65: non-member function
`PDFImport::findNbTabs(unsigned int, double)' cannot
have `const' method qualifier
fstring.h:66: non-member function
`PDFImport::charFromEnd(unsigned int, uint &)' cannot
have `const' method qualifier
fstring.h:68: parse error before `public'
fstring.h:74: syntax error before `;'
fstring.h:78: `class PDFImport::DRect
PDFImport::_rect' used prior to declaration
fstring.h:89: warning: ANSI C++ forbids declaration
`Font' with no type
fstring.h:89: parse error before `&'
fstring.h: In method `uint String::frameIndex()
const':
fstring.h:88: `_frameIndex' undeclared (first use
this function)
fstring.h:88: warning: control reaches end of
non-void function `String::frameIndex() const'
fstring.h: At top level:
fstring.h:90: syntax error before `('
fstring.h:93: parse error before `public'
fstring.h:102: `uint _frameIndex' used prior to
declaration
fstring.h:103: parse error before `}'
fstring.cpp: In method
`PDFImport::Paragraph::Paragraph()':
fstring.cpp:33: class `PDFImport::Paragraph' does not
have any field named `type'
fstring.cpp:33: class `PDFImport::Paragraph' does not
have any field named `firstIndent'
fstring.cpp:33: class `PDFImport::Paragraph' does not
have any field named `leftIndent'
fstring.cpp:33: class `PDFImport::Paragraph' does not
have any field named `align'
fstring.cpp: In method
`PDFImport::Paragraph::Paragraph(TextLine *, unsigned
int)':
fstring.cpp:37: class `PDFImport::Paragraph' does not
have any field named `type'
fstring.cpp:37: class `PDFImport::Paragraph' does not
have any field named `firstIndent'
fstring.cpp:37: class `PDFImport::Paragraph' does not
have any field named `leftIndent'
fstring.cpp:37: class `PDFImport::Paragraph' does not
have any field named `align'
fstring.cpp:48: parse error before `*'
fstring.cpp:49: `it' undeclared (first use this
function)
fstring.cpp: At top level:
fstring.cpp:57: no `int
PDFImport::Paragraph::findTab(double, const TextLine
*) const' member function declared in class
`PDFImport::Paragraph'
fstring.cpp:67: no `uint
PDFImport::Paragraph::findNbTabs(unsigned int,
double) const' member function declared in class
`PDFImport::Paragraph'
fstring.cpp:76: no `int
PDFImport::Paragraph::charFromEnd(unsigned int, uint
&) const' member function declared in class
`PDFImport::Paragraph'
fstring.cpp: In method `int
PDFImport::Paragraph::charFromEnd(unsigned int, uint
&) const':
fstring.cpp:78: `blocks' undeclared (first use this
function)
fstring.cpp: At top level:
fstring.cpp:93: invalid use of undefined type `class
PDFImport::String'
xpdf/xpdf/TextOutputDev.h:39: forward declaration of
`class PDFImport::String'
fstring.cpp: In method
`PDFImport::String::String(GfxState *, double,
double, double, unsigned int)':
fstring.cpp:93: type `TextString' is not an immediate
basetype for `PDFImport::String'
fstring.cpp:93: class `PDFImport::String' does not
have any field named `link'
fstring.cpp:93: class `PDFImport::String' does not
have any field named `_frameIndex'
fstring.cpp:95: `_font' undeclared (first use this
function)
fstring.cpp: At top level:
fstring.cpp💯 invalid use of undefined type `class
PDFImport::String'
xpdf/xpdf/TextOutputDev.h:39: forward declaration of
`class PDFImport::String'
fstring.cpp: In method `void
PDFImport::String::addChar(GfxState *, double,
double, double, double, unsigned int)':
fstring.cpp:105: cannot call member function
`TextString::addChar(GfxState *, double, double,
double, double, unsigned int)' without object
fstring.cpp:106: cannot call member function
`TextString::addChar(GfxState *, double, double,
double, double, unsigned int)' without object
fstring.cpp:108: cannot call member function
`TextString::addChar(GfxState *, double, double,
double, double, unsigned int)' without object
fstring.cpp:109: type `TextString' is not a base type
for type `PDFImport::String'
fstring.cpp: At top level:
fstring.cpp:114: invalid use of undefined type `class
PDFImport::String'
xpdf/xpdf/TextOutputDev.h:39: forward declaration of
`class PDFImport::String'
fstring.cpp: In method `bool
PDFImport::String::checkCombination(TextString *)':
fstring.cpp:115: `len' undeclared (first use this
function)
fstring.cpp:116: warning: comparison of distinct
pointer types `TextString *' and `PDFImport::String
*' lacks a cast
fstring.cpp:124: warning: comparison of distinct
pointer types `TextString *' and `PDFImport::String
*' lacks a cast
fstring.cpp:126: warning: comparison of distinct
pointer types `TextString *' and `PDFImport::String
*' lacks a cast
fstring.cpp:127: `text' undeclared (first use this
function)
fstring.cpp:135: `xMin' undeclared (first use this
function)
fstring.cpp:135: `xRight' undeclared (first use this
function)
fstring.cpp:137: `yMin' undeclared (first use this
function)
fstring.cpp:138: `yMax' undeclared (first use this
function)
fstring.cpp:162: `xMax' undeclared (first use this
function)
fstring.cpp:169: warning: comparison of distinct
pointer types `TextString *' and `PDFImport::String
*' lacks a cast
fstring.cpp:179: cannot call member function
`TextString::addChar(GfxState *, double, double,
double, double, unsigned int)' without object
make[3]: *** [fstring.lo] Error 1
make[3]: Leaving directory
`/home/dev/tmp/kpdfimport-0.5/kpdfimport'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/dev/tmp/kpdfimport-0.5/kpdfimport'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/dev/tmp/kpdfimport-0.5'
make: *** [all] Error 2

------- Configure log ------------

dev@dev:~/tmp/kpdfimport-0.5$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install...
/usr/bin/ginstall -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 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 dependency style of gcc... gcc
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++... gcc
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 -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -frepo... yes
not using lib directory suffix
checking for ld used by GCC...
/usr/i386-slackware-linux/bin/ld
checking if the linker
(/usr/i386-slackware-linux/bin/ld) is GNU ld... yes
checking for /usr/i386-slackware-linux/bin/ld option
to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output...
checking whether ln -s works... yes
checking how to recognise dependant 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... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line
arguments... 32768
checking command to parse /usr/bin/nm -B output from
gcc object... ok
checking for objdir... .libs
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... no
checking if gcc supports -fno-rtti -fno-exceptions...
yes
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
(/usr/i386-slackware-linux/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked
in... no
checking how to hardcode library paths into
programs... immediate
checking whether stripping libraries is possible...
yes
checking dynamic linker characteristics... GNU/Linux
ld.so
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 whether the g++ linker
(/usr/i386-slackware-linux/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
(/usr/i386-slackware-linux/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked
in... yes
checking how to hardcode library paths into
programs... immediate
checking whether stripping libraries is possible...
yes
checking dynamic linker characteristics... GNU/Linux
ld.so
appending configuration tag "GCJ" to libtool
checking if gcj supports -fno-rtti -fno-exceptions...
(cached) yes
checking for gcj option to produce PIC... -fPIC
checking if gcj PIC flag -fPIC works... no
checking if gcj supports -c -o file.o... no
checking whether the gcj linker
(/usr/i386-slackware-linux/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked
in... yes
checking how to hardcode library paths into
programs... immediate
checking whether stripping libraries is possible...
yes
checking dynamic linker characteristics... GNU/Linux
ld.so
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for strlcat... no
checking if strlcat needs custom prototype... yes -
in libkdefakes
checking for strlcpy... no
checking if strlcpy needs custom prototype... yes -
in libkdefakes
checking for main in -lutil... yes
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... yes
checking for connect... yes
checking for remove... yes
checking for shmat... 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 sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
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 for res_init... yes
checking if res_init needs custom prototype... no
checking for killpg in -lucb... no
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for char *... yes
checking size of char *... 4
checking for dlopen in -ldl... yes
checking for shl_unload in -ldld... no
checking for size_t... yes
checking size of size_t... 4
checking for unsigned int... yes
checking size of unsigned int... 4
checking sizeof size_t == sizeof unsigned int... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for X... libraries /usr/X11R6/lib, headers
/usr/X11R6/include
checking for IceConnectionNumber in -lICE... yes
checking for libXext... yes
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for Qt... libraries /usr/lib/qt-3.0.4/lib,
headers /usr/lib/qt-3.0.4/include using -mt
checking if Qt compiles without flags... no
checking for moc... /usr/lib/qt-3.0.4/bin/moc
checking for uic... /usr/lib/qt-3.0.4/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... libraries /opt/kde/lib, headers
/opt/kde/include
checking if UIC has KDE plugins available... yes
checking for KDE paths... defaults
checking for dcopidl... /opt/kde/bin/dcopidl
checking for dcopidl2cpp... /opt/kde/bin/dcopidl2cpp
checking for mcopidl... /opt/kde/bin/mcopidl
checking for artsc-config...
/opt/kde/bin/artsc-config
checking for kde-config... /opt/kde/bin/kde-config
checking for meinproc... /opt/kde/bin/meinproc
checking koGlobal.h usability... yes
checking koGlobal.h presence... yes
checking for koGlobal.h... yes
checking for main in -lkofficecore... 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 for rewinddir... yes
checking for popen... yes
checking for mkstemp... yes
checking for special C compiler options needed for
large files... no
checking for _FILE_OFFSET_BITS value needed for large
files... 64
checking for _LARGE_FILES value needed for large
files... no
checking for _LARGEFILE_SOURCE value needed for large
files... no
checking for fseeko... yes
checking for fseek64... no
checking for ftell64... no
checking paper.h usability... no
checking paper.h presence... no
checking for paper.h... no
checking for paperinit in -llibpaper... no
checking if kpdfimport should be compiled... yes
configure: creating ./config.status
fast creating Makefile
fast creating kpdfimport/Makefile
fast creating kpdfimport/xpdf/Makefile
fast creating kpdfimport/xpdf/goo/Makefile
fast creating kpdfimport/xpdf/xpdf/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

Good - your configure finished. Start make now

Discussion


Log in to post a comment.

MongoDB Logo MongoDB