[Scribus] Problem compiling...

Jeff Morton jmorton
Mon Mar 17 18:20:40 CET 2003


I'm having a problem running 'configure' with scribus 0.9.7 on a RedHat 
box, mostly RH7.2 but with a few upgrades.  When attempting to detect 
Qt, it fails based on what appear to be syntax errors.  I've just 
compiled and installed Qt from scratch, but it hasn't changed the error 
messages.

Any ideas?

uname -a provides
Linux (snip) 2.4.18-24.7.x #1 Fri Jan 31 07:06:03 EST 2003 i686 unknown

The config.log.  The errors are in the last chunk.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:627: checking host system type
configure:648: checking target system type
configure:666: checking build system type
configure:725: checking for a BSD compatible install
configure:782: checking for -p flag to install
configure:805: checking whether build environment is sane
configure:843: checking whether make sets ${MAKE}
configure:889: checking for working aclocal
configure:902: checking for working autoconf
configure:915: checking for working automake
configure:928: checking for working autoheader
configure:941: checking for working makeinfo
configure:962: checking for socket in -lsocket
configure:1006: checking for gethostbyaddr in -lnsl
configure:1052: checking for httpConnect in -lcups
configure:1100: checking for _cmsChannelsOf in -llcms
configure:1150: checking for TIFFOpen in -ltiff
configure:1199: checking for dlopen in -lc
configure:1331: checking for gcc
configure:1444: checking whether the C compiler (gcc   ) works
configure:1460: gcc -o conftest     conftest.c -lnsl  1>&5
configure:1486: checking whether the C compiler (gcc   ) is a cross-compiler
configure:1491: checking whether we are using GNU C
configure:1519: checking whether gcc accepts -g
configure:1552: checking how to run the C preprocessor
configure:1665: checking for c++
configure:1697: checking whether the C++ compiler (c++   ) works
configure:1718: rm -rf SunWS_cache; c++ -o conftest     conftest.C -lnsl 
  1>&5
configure:1744: checking whether the C++ compiler (c++   ) is a 
cross-compiler
configure:1749: checking whether we are using GNU C++
configure:1777: checking whether c++ accepts -g
configure:2266: checking whether c++ supports -fno-exceptions
configure:2324: checking whether c++ supports -fno-check-new
configure:2382: checking whether c++ supports -fexceptions
configure:2899: checking how to run the C++ preprocessor
configure:3002: checking whether c++ supports -frepo
configure:3254: checking for ld used by GCC
configure:3322: checking if the linker (/usr/bin/ld) is GNU ld
configure:3339: checking for /usr/bin/ld option to reload object files
configure:3351: checking for BSD-compatible nm
configure:3389: checking whether ln -s works
configure:3410: checking how to recognise dependant libraries
configure:3731: checking for ranlib
configure:3798: checking for strip
configure:3970: checking for Cygwin environment
configure:4003: checking for mingw32 environment
ltconfig:678:checking for gcc option to produce PIC
ltconfig:687:checking that gcc PIC flag  -fPIC -DPIC works.
ltconfig:749: checking if gcc static flag -static works
ltconfig:780: finding the maximum length of command line arguments
ltconfig:@lineno@: result: 73729
ltconfig:883: checking if gcc supports -fno-rtti -fno-exceptions
ltconfig:884: gcc -c -O2   -fno-rtti -fno-exceptions -c conftest.c 
conftest.c 1>&5
ltconfig:1423: checking if global_symbol_pipe works
ltconfig:1424: gcc -c -O2    conftest.c 1>&5
ltconfig:1427: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ 
]\([ABCDGISTW]\)[ 	][ 	]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > 
conftest.nm"
ltconfig:1479: gcc -o conftest -O2   -fno-builtin -fno-rtti 
-fno-exceptions   conftest.c conftstm.o 1>&5
ltconfig:1863: checking for dlfcn.h
ltconfig:1902: checking whether a program can dlopen itself
ltconfig:1976: checking whether a statically linked program can dlopen 
itself
c++ -E conftest.cc
ltconfig:678:checking for c++ option to produce PIC
ltconfig:687:checking that c++ PIC flag -fPIC -DPIC works.
ltconfig:697: c++ -c -O2 -fno-exceptions -fno-check-new -fPIC -DPIC 
-DPIC  conftest.cc 1>&5
ltconfig:749: checking if c++ static flag -static works
ltconfig:758: c++ -o conftest -O2 -fno-exceptions -fno-check-new 
-static conftest.cc -lnsl  1>&5
ltconfig:780: finding the maximum length of command line arguments
ltconfig:@lineno@: result: 73729
ltconfig:883: checking if c++ supports -fno-rtti -fno-exceptions
ltconfig:884: c++ -c -O2 -fno-exceptions -fno-check-new -fno-rtti 
-fno-exceptions -c conftest.cc  conftest.cc 1>&5
ltconfig:1423: checking if global_symbol_pipe works
ltconfig:1424: c++ -c -O2 -fno-exceptions -fno-check-new  conftest.cc 1>&5
ltconfig:1427: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ 
]\([ABCDGISTW]\)[ 	][ 	]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > 
conftest.nm"
ltconfig:1479: c++ -o conftest -O2 -fno-exceptions -fno-check-new 
-fno-builtin -fno-rtti -fno-exceptions   conftest.cc conftstm.o 1>&5
ltconfig:1863: checking for dlfcn.h
ltconfig:1902: checking whether a program can dlopen itself
ltconfig:1976: checking whether a statically linked program can dlopen 
itself
configure:4150: checking for object suffix
configure:4156: gcc -c -O2    conftest.c 1>&5
configure:4176: checking for executable suffix
configure:4186: gcc -o conftest -O2     conftest.c -lnsl  1>&5
configure:4315: checking for cups/cups.h
configure:4325: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:4321:23: cups/cups.h: No such file or directory
configure: failed program was:
#line 4320 "configure"
#include "confdefs.h"
#include <cups/cups.h>
configure:4362: checking for extra includes
configure:4393: checking for extra libs
configure:4429: checking for msgfmt
configure:4463: checking for gmsgfmt
configure:4508: checking for xgettext
configure:4561: checking for main in -lutil
configure:4576: gcc -o conftest -O2     conftest.c -lutil  -lnsl  1>&5
configure:4597: checking for main in -lcompat
configure:4612: gcc -o conftest -O2     conftest.c -lcompat  -lnsl  1>&5
/usr/bin/ld: cannot find -lcompat
collect2: ld returned 1 exit status
configure: failed program was:
#line 4605 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:4634: checking for crypt in -lcrypt
configure:4653: gcc -o conftest -O2     conftest.c -lcrypt  -lnsl  1>&5
configure:4728: checking for socklen_t
configure:4758: c++ -c -O2 -fno-exceptions -fno-check-new  conftest.C 1>&5
configure:4825: checking for dnet_ntoa in -ldnet
configure:4844: gcc -o conftest -O2     conftest.c -ldnet  -lnsl  1>&5
/usr/bin/ld: cannot find -ldnet
collect2: ld returned 1 exit status
configure: failed program was:
#line 4833 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
configure:4866: checking for dnet_ntoa in -ldnet_stub
configure:4885: gcc -o conftest -O2     conftest.c -ldnet_stub  -lnsl  1>&5
/usr/bin/ld: cannot find -ldnet_stub
collect2: ld returned 1 exit status
configure: failed program was:
#line 4874 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
configure:4907: checking for inet_ntoa
configure:4935: gcc -o conftest -O2     conftest.c -lnsl  1>&5
configure:4997: checking for connect
configure:5025: gcc -o conftest -O2     conftest.c -lnsl  1>&5
configure:5088: checking for remove
configure:5116: gcc -o conftest -O2     conftest.c -lnsl  1>&5
configure:5180: checking for shmat
configure:5208: gcc -o conftest -O2     conftest.c -lnsl  1>&5
configure:5272: checking for res_init
configure:5300: gcc -o conftest -O2     conftest.c -lnsl  1>&5
/tmp/ccoELx0S.o: In function `main':
/tmp/ccoELx0S.o(.text+0x7): undefined reference to `res_init'
collect2: ld returned 1 exit status
configure: failed program was:
#line 5277 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char res_init(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
char res_init();

int main() {

/* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
     something starting with __ and the normal name is an alias.  */
#if defined (__stub_res_init) || defined (__stub___res_init)
choke me
#else
res_init();
#endif

; return 0; }
configure:5335: gcc -o conftest -O2     conftest.c -lnsl   -lresolv 1>&5
configure:5360: checking for killpg in -lucb
configure:5379: gcc -o conftest -O2     conftest.c -lucb  -lnsl  1>&5
/usr/bin/ld: cannot find -lucb
collect2: ld returned 1 exit status
configure: failed program was:
#line 5368 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
char killpg();

int main() {
killpg()
; return 0; }
configure:5448: checking size of int
configure:5467: gcc -o conftest -O2     conftest.c -lnsl  1>&5
configure:5486: checking size of long
configure:5505: gcc -o conftest -O2     conftest.c -lnsl  1>&5
configure:5524: checking size of char *
configure:5543: gcc -o conftest -O2     conftest.c -lnsl  1>&5
configure:5562: checking size of char
configure:5581: gcc -o conftest -O2     conftest.c -lnsl  1>&5
configure:5602: checking for dlopen in -ldl
configure:5646: checking for shl_unload in -ldld
configure:5665: gcc -o conftest -O2     conftest.c -ldld  -lnsl  1>&5
/usr/bin/ld: cannot find -ldld
collect2: ld returned 1 exit status
configure: failed program was:
#line 5654 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
char shl_unload();

int main() {
shl_unload()
; return 0; }
configure:5695: checking for libz
configure:5721: gcc -o conftest -O2        conftest.c    -lz  -lresolv 1>&5
configure:5774: checking for X
configure:5813: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:5889: gcc -o conftest -O2     conftest.c -lXt -lnsl  1>&5
/usr/bin/ld: cannot find -lXt
collect2: ld returned 1 exit status
configure: failed program was:
#line 5882 "configure"
#include "confdefs.h"

int main() {
XtMalloc()
; return 0; }
configure:6063: checking for IceConnectionNumber in -lICE
configure:6082: gcc -o conftest -O2     -L/usr/X11R6/lib conftest.c 
-lICE  -lresolv -lnsl  1>&5
configure:6111: checking for libXext
configure:6137: gcc -o conftest -O2     -L/usr/X11R6/lib  conftest.c 
-lXext -lX11  -lresolv 1>&5
configure:6164: checking for Xinerama
configure:6338: checking for pthread_create in -lpthread
configure:6357: gcc -o conftest -O2     conftest.c -lpthread  -lnsl  1>&5
configure:6633: checking for libpng
configure:6667: gcc -o conftest -O2   -I/usr/X11R6/include 
-D_REENTRANT  conftest.c -lnsl  -L/usr/X11R6/lib  -lpng -lz -lm -lX11 
-lresolv 1>&5
configure:6699: checking for libjpeg6b
configure:6737: gcc -o conftest -O2   -I/usr/X11R6/include 
-D_REENTRANT  conftest.c -L/usr/X11R6/lib  -ljpeg6b -lm 1>&5
/usr/bin/ld: cannot find -ljpeg6b
collect2: ld returned 1 exit status
configure: failed program was:
#line 6716 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
struct jpeg_decompress_struct;
typedef struct jpeg_decompress_struct * j_decompress_ptr;
typedef int size_t;
#ifdef __cplusplus
extern "C" {
#endif
     void jpeg_CreateDecompress(j_decompress_ptr cinfo,
                                     int version, size_t structsize);
#ifdef __cplusplus
}
#endif
/* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */

int main() {
jpeg_CreateDecompress(0L, 0, 0);
; return 0; }
configure:6760: checking for libjpeg
configure:6798: gcc -o conftest -O2   -I/usr/X11R6/include 
-D_REENTRANT  conftest.c -L/usr/X11R6/lib  -ljpeg -lm 1>&5
configure: 6838: /usr/include/jpeglib.h
taking that
configure:7001: checking for Qt
configure: 7065: /usr/lib/qt3/include/qstyle.h
taking that
tried NO
configure:7177: rm -rf SunWS_cache; c++ -o conftest -O2 -fno-exceptions 
-fno-check-new -I/usr/lib/qt3/include -I/usr/X11R6/include 
-DQT_THREAD_SUPPORT  -D_REENTRANT  -L/usr/lib/qt3/lib -L/usr/X11R6/lib 
  conftest.C -lnsl  -lqt-mt -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM 
-lICE  -lresolv -lpthread 1>&5
/tmp/cc8kipCY.o: In function `main':
/tmp/cc8kipCY.o(.text+0x8): undefined reference to `QString::null'
/tmp/cc8kipCY.o(.text+0xd): undefined reference to 
`QStyleFactory::create(QString const &)'
/tmp/cc8kipCY.o(.text+0x1a): undefined reference to `QCursor::QCursor(int)'
/tmp/cc8kipCY.o(.text+0x24): undefined reference to 
`QCursor::~QCursor(void)'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to `_Unwind_GetIP'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to 
`_Unwind_GetRegionStart'
/usr/lib/libXft.so.2: undefined reference to `XRenderCompositeText32'
/usr/lib/libXft.so.2: undefined reference to `XRenderCompositeText16'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to `_Unwind_Resume'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to 
`_Unwind_DeleteException'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to 
`_Unwind_RaiseException'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to `_Unwind_SetIP'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to 
`_Unwind_GetTextRelBase'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to 
`_Unwind_GetLanguageSpecificData'
/usr/lib/libXft.so.2: undefined reference to `XRenderCompositeText8'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to `_Unwind_SetGR'
/usr/lib/qt3/lib/libqt-mt.so: undefined reference to 
`_Unwind_GetDataRelBase'
collect2: ld returned 1 exit status
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qcursor.h>
#include <qstylefactory.h>
#include <private/qucomextra_p.h>
#if ! (QT_VERSION >= 302)
#error 1
#endif

int main() {
     (void)QStyleFactory::create(QString::null);
     QCursor c(Qt::WhatsThisCursor);
     return 0;
}




More information about the scribus mailing list