View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008714 | Scribus | Build System | public | 2010-01-17 05:41 | 2010-03-15 22:43 |
Reporter | davenz | Assigned To | cbradney | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | x64 | OS | OpenSolaris | OS Version | snv_130 |
Product Version | 1.3.5 | ||||
Fixed in Version | 1.3.6svn | ||||
Summary | 0008714: Building Scribus 1.3.5.1 on OpenSolaris snv_130 x64 fails with errors in saxiohelper.o | ||||
Description | I've installed most of the prequisite packages and I am attempting to build the 1.3.5.1 source tarball. This is the output from cmake: user@afterburner:/export/home/user/scribussource/scribus-1.3.5.1/builddir$/usr/bin/cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/export/home/user/scribusinstall... -- Scribus 1.3.5.1 will be built to install into /export/home/user/scribusinstall -- Found target X86 -- Building for target i386-pc-solaris2.11 -- Using standard ApplicationDataDir. You can change it with -DAPPLICATION_DATA_DIR Qt4 Found OK -- Building without Qt3 Support (GOOD) ZLIB Library Found OK Using PNG Library: /usr/lib/libpng.so PNG Library Found OK JPEG Library Found OK TIFF Library Found OK Python Library Found OK -- FreeType2 Library Found OK -- Previously selected rendering system: CAIRO CAIRO Library Found OK -- Found Cups: /usr/lib/libcups.so CUPS Library Found OK -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig LIBXML2 Library Found OK LCMS ReleaseLibrary: /usr/lib/liblcms.so LCMS Debug Library: LCMS_LIBRARY_DEBUG-NOTFOUND LCMS Library: /usr/lib/liblcms.so LittleCMS Library Found OK FontConfig Found OK ASpell Found OK PoDoFo NOT found - Disabling support for PDF embedded in AI RPATH: lib/scribus/plugins/; Boost Library Found OK -- Boost: FOUND, building 2geomtools -- Source header files will be installed -- Configuring done WARNING: Target "x_aspellplugin" requests linking to directory "/opt/foss/lib/aspell-0.60". Targets may link only to libraries. CMake is dropping the item. -- Generating done -- Build files have been written to: /export/home/user/scribussource/scribus-1.3.5.1/builddir A Makefile is successfully generated in my build directory: user@afterburner:/export/home/user/scribussource/scribus-1.3.5.1/builddir$ ls total 103K drwxr-xr-x 7 user staff 22 2010-01-17 15:12 CMakeFiles drwxr-xr-x 22 user staff 24 2010-01-17 14:39 scribus -rw-r--r-- 1 user staff 27K 2010-01-17 14:39 Makefile -rw-r--r-- 1 user staff 47K 2010-01-17 14:39 CMakeCache.txt -r--r--r-- 1 user staff 5.3K 2010-01-17 14:39 CPackSourceConfig.cmake -r--r--r-- 1 user staff 4.6K 2010-01-17 14:39 CPackConfig.cmake -rw-r--r-- 1 user staff 1.1K 2010-01-17 14:39 cmake_uninstall.cmake -rw-r--r-- 1 user staff 772 2010-01-17 14:39 config.h -rw-r--r-- 1 user staff 3.6K 2010-01-17 14:05 cmake_install.cmake drwxr-xr-x 3 user staff 3 2010-01-17 14:05 translations | ||||
Steps To Reproduce | Executing make in the above directory results in the the following console output: user@afterburner:/export/home/user/scribussource/scribus-1.3.5.1/builddir$ make [ 1%] Building CXX object scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.o In file included from /export/home/user/scribussource/scribus-1.3.5.1/scribus/desaxe/saxiohelper.cpp:5: /export/home/user/scribussource/scribus-1.3.5.1/scribus/scclocale.h:37: error: `locale_t' does not name a type make[2]: *** [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.o] Error 1 make[1]: *** [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/all] Error 2 make: *** [all] Error 2 Make then aborts. | ||||
Additional Information | Host system is an OpenSolaris 2009.06 x64 machine updated to snv_130. I've set the severity of this to major only because I can't get it to build, though the eventual issue will most probably not necessarily be. Please let me know if you need precise version numbers for any prerequisite packages or if you wish me to conduct further testing at this end. Thanks. | ||||
Tags | No tags attached. | ||||
Patch | |||||
|
BTW this is an Intel Q8200 system FWIW. |
|
Sorry, severity should have been block, not major. |
|
Hi The offending code is here: #include <clocale> #if defined(Q_OS_MAC) #include <xlocale.h> #endif #if defined(Q_WS_WIN) #define XLocaleType _locale_t #else #define XLocaleType locale_t #endif Can you see what header file offers a locale_t definition on OpenSolaris? Perhaps the xlocale.h include would work on OpenSolaris as well as OSX like it is set for now? Or is there another file? |
|
Any thoughts? I would like to get this into SVN and tested before 1.3.6 release. |
|
Hi cbradney, Thanks for picking this up so quickly - I'll enquire about this on the OpenSolaris developers list, this is outside my immediate area of know-how to find out. |
|
Hi cbradney, An answer as posted at http://opensolaris.org/jive/thread.jspa?threadID=122215&tstart=0 from an OpenSolaris engineer is that a locale_t cannot be found in build 129 of OpenSolaris. Not being a developer I am unsure of where this puts us - but if there is anything I can do to assist with this please let me know and I'll do my best to help. |
|
I have committed a locale.h include now to 1.3.6svn and 1.5.0svn |
|
No luck with this. svn co svn://scribus.info/Scribus/branches/Version135 Checked out revision 14577 user@afterburner:/export/home/user/scribussource/Version135/Scribus/builddir$ /usr/bin/cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/export/home/user/scribusinstall -- Scribus 1.3.6.svn will be built to install into /export/home/user/scribusinstall -- Machine: i386-pc-solaris2.11, void pointer size: 4 -- Found target X86 -- Building for target i386-pc-solaris2.11 -- Using standard ApplicationDataDir. You can change it with -DAPPLICATION_DATA_DIR Qt4 Found OK -- Building without Qt3 Support (GOOD) ZLIB Library Found OK Using PNG Library: /usr/lib/libpng.so PNG Library Found OK JPEG Library Found OK TIFF Library Found OK Python Library Found OK -- FreeType2 Library Found OK -- Previously selected rendering system: CAIRO CAIRO Library Found OK -- Found Cups: /usr/lib/libcups.so CUPS Library Found OK -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig LIBXML2 Library Found OK LCMS ReleaseLibrary: /usr/lib/liblcms.so LCMS Debug Library: LCMS_LIBRARY_DEBUG-NOTFOUND LCMS Library: /usr/lib/liblcms.so LittleCMS Library Found OK FontConfig Found OK ASpell Found OK PoDoFo NOT found - Disabling support for PDF embedded in AI RPATH: lib/scribus/plugins/; Boost Library Found OK -- Boost: FOUND, building 2geomtools -- Source header files will be installed -- Configuring done WARNING: Target "x_aspellplugin" requests linking to directory "/opt/foss/lib/". Targets may link only to libraries. CMake is dropping the item. -- Generating done -- Build files have been written to: /export/home/user/scribussource/Version135/Scribus/builddir user@afterburner:/export/home/user/scribussource/Version135/Scribus/builddir$ make [ 1%] Building CXX object scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.o In file included from /export/home/user/scribussource/Version135/Scribus/scribus/desaxe/saxiohelper.cpp:5: /export/home/user/scribussource/Version135/Scribus/scribus/scclocale.h:41: error: `locale_t' does not name a type make[2]: *** [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/saxiohelper.o] Error 1 make[1]: *** [scribus/desaxe/CMakeFiles/scribus_desaxe_lib.dir/all] Error 2 make: *** [all] Error 2 |
|
A hack has been added to SVN.. scribus is building here now, it gets past this part. We need to see what happens for locale conversion, esp with things like spinboxes etc. |
2010-02-11 09:15
|
|
|
Checked out revision 14675. output of /usr/bin/cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/export/home/user/scribusinstall is in the attached file "scribusmake-snv_130-20100211.txt.Z". In short, this time makes it to here... [ 80%] Building CXX object scribus/CMakeFiles/scribus.dir/main.o Linking CXX executable scribus ...then generates streams of errors: ld: warning: file /opt/foss/qt4/lib/libQtXml.so: attempted multiple inclusion of file ld: warning: file /opt/foss/qt4/lib/libQtNetwork.so: attempted multiple inclusion of file ld: warning: file /opt/foss/qt4/lib/libQtCore.so: attempted multiple inclusion of file Undefined first referenced symbol in file QKeySequence::isEmpty() const CMakeFiles/scribus.dir/tabkeyboardshortcutswidget.o QToolButton::minimumSizeHint() const CMakeFiles/scribus.dir/moc_autoform.o QTreeWidget::QTreeWidget(QWidget*) CMakeFiles/scribus.dir/checkDocument.o QTreeWidget::QTreeWidget(QWidget*) CMakeFiles/scribus.dir/bookmwin.o QString::number(double, char, int) CMakeFiles/scribus.dir/fpointarray.o QAbstractScrollArea::horizontalScrollBar() const CMakeFiles/scribus.dir/scribusview.o QTabWidget::sizeHint() const CMakeFiles/scribus.dir/moc_docinfo.o . . . terminating with: ld: fatal: symbol referencing errors. No output written to scribus collect2: ld returned 1 exit status make[2]: *** [scribus/scribus] Error 1 make[1]: *** [scribus/CMakeFiles/scribus.dir/all] Error 2 make: *** [all] Error 2 |
|
same with SUNWgcc (3.4.3) and gcc-4. packages... :S |
|
I've been able to build this successfully using OpenSolaris snv_133, and building Qt 4.6.2 from source. Perhaps the Bionicmutton repositories offering Qt 4.x.x are missing certain files. The following worked for me - these are quick notes, I'll detail everything later as soon as I can. 1) downloaded the qt-everywhere-opensource-src-4.6.2 source tar, copied and decompressed to /tmp 2) ran ./configure -platform solaris-g++ -no-webkit (Apparently Webkit requires separate patches according to KDE/Qt experts on the OpenSolaris developer forums, without omitting it from the Qt build process the build will fail) This was using gcc version 3.4.3 (csl-sol210-3_4-20050802) Once completed, ran gmake, then, pfexec gmake install (which installed to default location of /usr/local/Trolltech/Qt-4.6.2) 3) set QTDIR=/usr/local/Trolltech/Qt-4.6.2 in my environment 4) navigated to /export/home/user/scribussource/Version135/Scribus/builddir, then ran: /usr/bin/cmake .. -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX:PATH=/export/home/user/scribusinstall followed by make, then pfexec make. 5) Scribus binary successfully created. |
|
Scribus136svnBuild-snv134x64-20100313 (1,828 bytes)
********************************************************************************** ********************************************************************************** BUILDING AND INSTALLING SCRIBUS 1.3.6.svn ON OPENSOLARIS DEVELOPMENT BUILD 134 X64 ********************************************************************************** ********************************************************************************** Saturday 13th March 2010 => INSTALL OPENSOLARIS X64 Download osol-dev-134-x86.iso from http://www.genunix.org/ Test case system is an Intel Q8200 (Gigabyte EG31MF-S2 system board) with 4GB RAM. => INSTALL PREREQUISITE PACKAGES Use the OpenSolaris IPS package manager GUI to install the following: versioning/subversion gcc-3 cmake gettext header-xorg = BUILD AND INSTALL QT 4.6.2 FROM SOURCE Download qt-everywhere-opensource-src-4.6.2.tar.gz from http://qt.nokia.com/downloads Copy and unpack the file to /tmp In /tmp/qt-everywhere-opensource-src-4.6.2/ run the following: $ ./configure -platform solaris-g++ -no-webkit $ gmake $ pfexec gmake install This installs Qt at the default location of /usr/local/Trolltech/Qt-4.6.2 (Note: if you encounter mmap errors when building, increase the swap space following the instructions at http://www.crypticide.com/dropsafe/article/2649 ) Add the following to your ~/.profile (assuming ksh or bash) QTDIR=/usr/local/Trolltech/Qt-4.6.2; export QTDIR => BUILD AND INSTALL SCRIBUS $ mkdir ~/scribusinstall $ mkdir ~/scribussource $ cd ~/scribussource $ svn co svn://scribus.info/Scribus/branches/Version135 $ cd Version135/Scribus $ mkdir builddir $ cd builddir $ /usr/bin/cmake .. -DCMAKE_INSTALL_PREFIX:PATH=~/scribusinstall $ make $ pfexec make install Scribus binary is installed to ~/scribussource/Version135/Scribus/builddir/sfw_stage/bin |
|
Full instructions for building have been attached. There is a show-stopping bug however in that the Scribus build does not permit me to save .SLA files. I'll open another bug report for this. Thanks for your help :) |
Date Modified | Username | Field | Change |
---|---|---|---|
2010-01-17 05:41 | davenz | New Issue | |
2010-01-17 05:45 | davenz | Note Added: 0023088 | |
2010-01-17 10:41 | davenz | Note Added: 0023089 | |
2010-01-18 22:59 | cbradney | Note Added: 0023105 | |
2010-01-19 22:58 | cbradney | Note Added: 0023111 | |
2010-01-20 03:22 | davenz | Note Added: 0023114 | |
2010-01-22 09:50 | davenz | Note Added: 0023132 | |
2010-01-23 20:10 | cbradney | Status | new => assigned |
2010-01-23 20:10 | cbradney | Assigned To | => cbradney |
2010-01-23 20:16 | cbradney | Note Added: 0023136 | |
2010-01-23 20:16 | cbradney | Status | assigned => resolved |
2010-01-23 20:16 | cbradney | Fixed in Version | => 1.3.6svn |
2010-01-23 20:16 | cbradney | Resolution | open => fixed |
2010-01-26 11:09 | davenz | Note Added: 0023146 | |
2010-01-26 11:09 | davenz | Status | resolved => feedback |
2010-01-26 11:09 | davenz | Resolution | fixed => reopened |
2010-02-09 23:30 | cbradney | Note Added: 0023233 | |
2010-02-11 09:15 | davenz | File Added: scribusmake-snv_130-20100211.txt.Z | |
2010-02-11 09:20 | davenz | Note Added: 0023238 | |
2010-02-11 20:27 | cbradney | Note Added: 0023241 | |
2010-03-09 11:01 | davenz | Note Added: 0023474 | |
2010-03-09 11:01 | davenz | Status | feedback => assigned |
2010-03-12 21:26 | davenz | File Added: Scribus136svnBuild-snv134x64-20100313 | |
2010-03-12 21:27 | davenz | Note Added: 0023503 | |
2010-03-12 21:30 | davenz | Note Edited: 0023503 | |
2010-03-15 22:43 | cbradney | Status | assigned => closed |
2010-03-15 22:43 | cbradney | Resolution | reopened => fixed |