[scribus-dev] Scribus on Lion (Was Re: Leopard OSX 10.5)

Martin Costabel costabel at wanadoo.fr
Sat Nov 26 08:25:51 UTC 2011


On 25/11/11 07:06, Craig Bradney wrote:
[]
> $ gcc -v
> Using built-in specs.
> Target: i686-apple-darwin11
> Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable-checking
> --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man
> --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm-
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11
> --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local
> --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11
> --with-gxx-include-dir=/usr/include/c++/4.2.1
> Thread model: posix
> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
>
> thats on my iMac which was upgraded from Snow Leopard.. but it also works on my Air which was Lion
> from the start.

Good for you. It doesn't help me, unfortunately. My llvm version is 
slightly higher:
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 
2336.1.00). It is from xcode-4.2.1.
I wonder if this can be the reason it doesn't work for me.

Concretely, I cannot compile the file scribus/util.cpp with either 
/usr/bin/c++ (which is llvm-g++) or with clang.
With clang, it gives the bogus error message:

In file included from 
/sw/src/fink.build/scribus-x11-1.4.0-2.rc6/scribus-1.4.0.rc6/scribus/desaxe/digester.cpp:20:
/sw/src/fink.build/scribus-x11-1.4.0-2.rc6/scribus-1.4.0.rc6/scribus/desaxe/actions.h:160:45: 
error: 'body' is a private member of 'desaxe::Action'
                 return 
static_cast<Generator_body<Type>*>(body)->eval(dig, tag, attr);
                                                           ^
/sw/src/fink.build/scribus-x11-1.4.0-2.rc6/scribus-1.4.0.rc6/scribus/desaxe/actions.h:101:15: 
note: declared private here
         Action_body* body;

This is a known bug in clang that is fixed upstream but not yet in 
Lion's version. Scribus cannot do anything about it.

With /usr/bin/c++, the compilation goes into an infinite loop: it takes 
100% CPU and does nothing.

I can compile the file OK with g++-fsf-4.6 from Fink, but I cannot build 
scribus with gcc-4.6, because the build process insists on placing the 
flag "-arch x86_64" on the compiler line, which is wrong syntax for 
gcc-4.6. It does this already in the cmake configure phase which 
therefore fails, and I have not yet found a way to prevent cmake from 
doing this.

-- 
Martin








More information about the scribus-dev mailing list