In module_list.py you need

        Extension("sage.graphs.bliss",
                  ["sage/graphs/bliss.pyx"],
                  language="c++"),
                  libraries=['bliss'])


On Wednesday, December 24, 2014 4:25:34 PM UTC+1, Jernej Azarija wrote:
>
> Volker,
>
> thank you for your help. I ended up updating & re-compiling Sage and it 
> now works. As for the linkage issue, do you happen to know how to properly 
> link against bliss in this case?
>
> Best,
>
> Jernej
>
> On Tue, Dec 23, 2014 at 7:12 PM, Volker Braun <vbrau...@gmail.com 
> <javascript:>> wrote:
>
>> Compiles fine for me (after changing the path to my graph.hh):
>>
>> gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC 
>> -I/home/vbraun/Sage/git-temp/local/include 
>> -I/home/vbraun/Sage/git-temp/local/include/csage 
>> -I/home/vbraun/Sage/git-temp/src -I/home/vbraun/Sage/git-temp/src/sage/ext 
>> -I/home/vbraun/Sage/git-temp/local/include/python2.7 -c 
>> build/cythonized/sage/graphs/bliss.cpp -o 
>> build/temp.linux-x86_64-2.7/build/cythonized/sage/graphs/bliss.o 
>> -fno-strict-aliasing -w -fno-tree-dominator-opts
>>
>> I can't import the resulting module because it doesn't link against bliss:
>>
>> sage: import sage.graphs.bliss
>>
>> ---------------------------------------------------------------------------
>> ImportError                               Traceback (most recent call 
>> last)
>> <ipython-input-1-75682df38474> in <module>()
>> ----> 1 import sage.graphs.bliss
>>
>> ImportError: 
>> /home/vbraun/Sage/git-temp/local/lib/python2.7/site-packages/sage/graphs/bliss.so:
>>  
>> undefined symbol: _ZN5bliss5GraphC1Ej
>>
>> But compilation is fine. You either aren't using the "gcc" that you think 
>> you are using, or maybe have a clashing header somewhere.
>>
>>
>> On Tuesday, December 23, 2014 1:18:55 PM UTC+1, Jernej Azarija wrote:
>>>
>>> Volker,
>>>
>>> the branch should be accessible here http://git.sagemath.org/sage.
>>> git/log/?h=u/azi/CythonWrap 
>>>
>>> Best,
>>>
>>> Jernej
>>>
>>> On Mon, Dec 22, 2014 at 10:37 PM, Volker Braun <vbrau...@gmail.com> 
>>> wrote:
>>>
>>>> I don't see anything wrong, its somewhere in the stuff that you haven't 
>>>> posted. Inspect the generated cpp file or post a branch.
>>>>
>>>>
>>>>
>>>> On Sunday, December 21, 2014 4:24:38 PM UTC+1, Jernej Azarija wrote:
>>>>>
>>>>> Volker,
>>>>>
>>>>> I am using  gcc version 4.8.2 and the git version of sage that I 
>>>>> myself compiled. I am also attaching the graph.hh file in case I trimmed 
>>>>> it 
>>>>> too much. Could you please check what is going on?
>>>>>
>>>>> Thanks for your help,
>>>>>
>>>>> Jernej
>>>>>
>>>>> On Saturday, 20 December 2014 17:27:03 UTC+1, Volker Braun wrote:
>>>>>>
>>>>>> Also, which gcc version do you have? Did you compile Sage from source?
>>>>>>
>>>>>  -- 
>>>> You received this message because you are subscribed to a topic in the 
>>>> Google Groups "sage-devel" group.
>>>> To unsubscribe from this topic, visit https://groups.google.com/d/
>>>> topic/sage-devel/NiWMTGsU54M/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to 
>>>> sage-devel+...@googlegroups.com.
>>>> To post to this group, send email to sage-...@googlegroups.com.
>>>> Visit this group at http://groups.google.com/group/sage-devel.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "sage-devel" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/sage-devel/NiWMTGsU54M/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> sage-devel+...@googlegroups.com <javascript:>.
>> To post to this group, send email to sage-...@googlegroups.com 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/sage-devel.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to