discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cannot build with libobjc2


From: Larry Campbell
Subject: Cannot build with libobjc2
Date: Mon, 1 Nov 2010 17:14:25 -0400

I was able to build and install libobjc2 1.0 itself just fine, but when I try 
to build base (1.20.1), configure fails at this step:

        checking whether objc really works... no 

because the test program includes objc-common.g, which contains this snippet:

        #include <objc/Object.h>

        #ifndef NeXT_RUNTIME
        #include <objc/NXConstStr.h>

which includes the NXConstStr.h from my gcc 4.1 installation 
(/usr/lib/gcc/i486-linux-gnu/4.1.2/include/objc/NXConstStr.h); this file 
includes its own objc/Object.h, which conflicts with libobjc2's objc/Object.h, 
and I get:

In file included from 
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/objc/NXConstStr.h:31,
                 from ./config/objc-common.g:9,
                 from ./config/config.objc.m:2,
                 from conftest.c:87:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/objc/Object.h:44: error: redefinition 
of 'struct Object'

etc.

Am I missing something obvious? I did do a 'make install' in my libobjc2 dir.

- lc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]