Hi, For some reason your the variable CAIROMM_LIBS is not being set correctly.
Please try the following command:
$ pkg-config cairomm-1.0 --libs
In my machine it outputs:
-lcairomm-1.0 -lcairo -lsigc-2.0
What do you get?
If you just want an workaround to get graph-tool to compile properly,
you could just pass CXXFLAGS="-O3 -lcairomm-1.0 -lcairo -lsigc-2.0" to
the configure script. But it would be interesting to figure out why the
configure script is not working properly on your system.
Cheers,
Tiago
On 06/28/2012 02:30 AM, Sasho Markov wrote:
> Hi
> Tnx for the response . As per the request i have enclosed the config .log
> and config
> Regards
> sasho markov
>
>
>
>
>
> On 27 Jun 2012, at 8:00 PM, [email protected] wrote:
>
>> Send graph-tool mailing list submissions to
>> [email protected]
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.skewed.de/mailman/listinfo/graph-tool
>> or, via email, send a message with subject or body 'help' to
>> [email protected]
>>
>> You can reach the person managing the list at
>> [email protected]
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of graph-tool digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Undefined symbol drawing function (sasho.j.markov)
>> 2. Re: Undefined symbol drawing function (Tiago de Paula Peixoto)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Tue, 26 Jun 2012 10:55:54 -0700 (PDT)
>> From: "sasho.j.markov" <[email protected]>
>> To: [email protected]
>> Subject: [graph-tool] Undefined symbol drawing function
>> Message-ID: <[email protected]>
>> Content-Type: text/plain; charset=us-ascii
>>
>> Hi
>> New to the graph-tool. Build it from src on Fedora 16 (64) . Built with
>> cairomm enabled . Try to run as per the quick start , however when
>> executing
>> graph_draw(g, vertex_text=g.vertex_index, vertex_font_size=18,
>> ... output_size=(200, 200), output="two-nodes.pdf")
>>
>> i get undefined symbol
>> _ZN5Cairo7ContextC1EP6_cairob
>>
>> However the symbol above is defined in : libcairomm-1.0.so see below nm
>> command results
>>
>> nm /usr/local/lib/libcairomm-1.0.so | grep -i _ZN5Cairo7ContextC1EP6_cairob
>>
>> 0000000000014b90 T _ZN5Cairo7ContextC1EP6_cairob
>>
>> Interestingly the library libgraph_tool_draw.so has indeed have the
>> undefined symbol
>> U _ZN5Cairo7ContextC1EP6_cairob
>> but does not depend on the cairomm libarary - see the ldd output . unless
>> the library is dynamically load i do not understand why
>> Any advise appreciated-
>> regards Sasho
>>
>> ldd
>> /usr/local/lib/python2.7/site-packages/graph_tool/draw/libgraph_tool_draw.so
>>
>> linux-vdso.so.1 => (0x00007fffc46da000)
>> libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f99fd6cd000)
>> libpython2.7.so.1.0 => /usr/lib64/libpython2.7.so.1.0
>> (0x00007f99fd30e000)
>> libboost_iostreams.so.1.49.0 =>
>> /usr/local/lib/libboost_iostreams.so.1.49.0
>> (0x00007f99fd0f6000)
>> libboost_python.so.1.49.0 => /usr/local/lib/libboost_python.so.1.49.0
>> (0x00007f99fceaa000)
>> libboost_regex.so.1.49.0 => /usr/local/lib/libboost_regex.so.1.49.0
>> (0x00007f99fcbc8000)
>> libCGAL.so.9 => /usr/local/lib/libCGAL.so.9 (0x00007f99fc9a5000)
>> libexpat.so.0 => /usr/local/lib/libexpat.so.0 (0x00007f99fc77c000)
>> libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f99fc54d000)
>> libm.so.6 => /lib64/libm.so.6 (0x00007f99fc2c9000)
>> libc.so.6 => /lib64/libc.so.6 (0x00007f99fbf11000)
>> libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f99fbcfb000)
>> /lib64/ld-linux-x86-64.so.2 (0x00000030cea00000)
>> libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f99fbadf000)
>> libdl.so.2 => /lib64/libdl.so.2 (0x00007f99fb8db000)
>> libutil.so.1 => /lib64/libutil.so.1 (0x00007f99fb6d7000)
>> libz.so.1 => /lib64/libz.so.1 (0x00007f99fb4c0000)
>> librt.so.1 => /lib64/librt.so.1 (0x00007f99fb2b8000)
>> libgmpxx.so.4 => /usr/lib64/libgmpxx.so.4 (0x00007f99fb0b3000)
>> libboost_thread.so.1.49.0 => /usr/local/lib/libboost_thread.so.1.49.0
>> (0x00007f99fae98000)
>> libgmp.so.3 => /usr/lib64/libgmp.so.3 (0x00007f99fac41000)
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Undefined-symbol-drawing-function-tp4024728.html
>> Sent from the Main discussion list for the graph-tool project mailing list
>> archive at Nabble.com.
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Tue, 26 Jun 2012 20:30:53 +0200
>> From: Tiago de Paula Peixoto <[email protected]>
>> To: Main discussion list for the graph-tool project
>> <[email protected]>
>> Subject: Re: [graph-tool] Undefined symbol drawing function
>> Message-ID: <[email protected]>
>> Content-Type: text/plain; charset="utf-8"
>>
>> On 06/26/2012 07:55 PM, sasho.j.markov wrote:
>>> Hi
>>> New to the graph-tool. Build it from src on Fedora 16 (64) . Built with
>>> cairomm enabled . Try to run as per the quick start , however when
>>> executing
>>> graph_draw(g, vertex_text=g.vertex_index, vertex_font_size=18,
>>> ... output_size=(200, 200), output="two-nodes.pdf")
>>>
>>> i get undefined symbol
>>> _ZN5Cairo7ContextC1EP6_cairob
>>
>> Very strange indeed. Could you please send the entire output of the
>> configure command, as well as the config.log file?
>>
>> Cheers,
>> Tiago
>>
>> --
>> Tiago de Paula Peixoto <[email protected]>
>>
>>
>>
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: signature.asc
>> Type: application/pgp-signature
>> Size: 554 bytes
>> Desc: OpenPGP digital signature
>> URL:
>> <http://lists.skewed.de/pipermail/graph-tool/attachments/20120626/54fbf759/attachment-0001.sig>
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> graph-tool mailing list
>> [email protected]
>> http://lists.skewed.de/mailman/listinfo/graph-tool
>>
>>
>> ------------------------------
>>
>> End of graph-tool Digest, Vol 53, Issue 11
>> ******************************************
>
>
>
> _______________________________________________
> graph-tool mailing list
> [email protected]
> http://lists.skewed.de/mailman/listinfo/graph-tool
>
--
Tiago de Paula Peixoto <[email protected]>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] http://lists.skewed.de/mailman/listinfo/graph-tool
