TkAgg init problem in matplotlib-0.53

undefined symbol: XFreePixmap

A quick google groups search revealed among others

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=mailman.1046790065.16698.python-list%40python.org&rnum=4&prev=/groups%3Fq%3Dundefined%2520symbol%253A%2520XFreePixmap%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26sa%3DN%26tab%3Dwg

The solution appeared to be -L/usr/X11R6/lib -lX11 -lXaw for a
standard linux install path. Is your X11 in a weird place; where is
libX11.so? Todd, do you think we need to add X11 libs to the tk build
flags?

JDH

John,

My libX11 seems to be in the right place:

light:gerry> pwd
/usr/X11R6/lib
light:gerry> ls -l libX11.so
lrwxrwxrwx 1 root root 11 Mar 2 10:04 libX11.so -> libX11.so.6
light:gerry> ls -l libX11.so.6
lrwxrwxrwx 1 root root 13 Mar 2 10:04 libX11.so.6 -> libX11.so.6.2
light:gerry> ls -l libX11.so.6.2
-rw-r--r-- 1 root root 888580 Feb 16 02:38 libX11.so.6.2
light:gerry>

Thanks,

--Gerry

John Hunter wrote:

···

"Gerry" == Gerry Wiener <gerry@...157...> writes:
           
   > undefined symbol: XFreePixmap

A quick google groups search revealed among others

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=mailman.1046790065.16698.python-list%40python.org&rnum=4&prev=/groups%3Fq%3Dundefined%2520symbol%253A%2520XFreePixmap%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26sa%3DN%26tab%3Dwg

The solution appeared to be -L/usr/X11R6/lib -lX11 -lXaw for a
standard linux install path. Is your X11 in a weird place; where is
libX11.so? Todd, do you think we need to add X11 libs to the tk build
flags?

JDH

Hi Gerry,

I'm not entirely sure how to trouble shoot this problem but I had a few
questions:

1. What platform are you running on?

2. What does ldd _tkagg.so say? (cd to .../site-packges/matplotlib
first)

3. What's in your /etc/ld.so.conf file?

Regards,
Todd

John,

My libX11 seems to be in the right place:

light:gerry> pwd
/usr/X11R6/lib
light:gerry> ls -l libX11.so
lrwxrwxrwx 1 root root 11 Mar 2 10:04 libX11.so ->
libX11.so.6
light:gerry> ls -l libX11.so.6
lrwxrwxrwx 1 root root 13 Mar 2 10:04 libX11.so.6 ->
libX11.so.6.2
light:gerry> ls -l libX11.so.6.2
-rw-r--r-- 1 root root 888580 Feb 16 02:38 libX11.so.6.2
light:gerry>

Thanks,

--Gerry

John Hunter wrote:

>>>>>>"Gerry" == Gerry Wiener <gerry@...157...> writes:
>>>>>>
>>>>>>
>
> > undefined symbol: XFreePixmap
>
>A quick google groups search revealed among others
>
>http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=mailman.1046790065.16698.python-list%40python.org&rnum=4&prev=/groups%3Fq%3Dundefined%2520symbol%253A%2520XFreePixmap%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26sa%3DN%26tab%3Dwg
>
>The solution appeared to be -L/usr/X11R6/lib -lX11 -lXaw for a
>standard linux install path. Is your X11 in a weird place; where is
>libX11.so? Todd, do you think we need to add X11 libs to the tk build
>flags?

I dunno. I was thinking first we'd figure out how to fix the problem by
hand, then figure out what to do systematically.

···

On Mon, 2004-04-26 at 11:38, Gerry Wiener wrote:

>
>JDH
>
>

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Todd Miller <jmiller@...86...>

Todd,

I'm running on Debian linux. Here's the output from uname -a:

Linux light 2.4.26-dqcd-smp #1 SMP Wed Apr 14 13:15:48 MDT 2004 i686 unknown

Here's the output from ldd _tkagg.so:

light:> ldd _tkagg.so
        libpng.so.2 => /usr/lib/libpng.so.2 (0x40160000)
        libstdc++.so.5 => /usr/local/gcc-3.2.2/lib/libstdc++.so.5 (0x4018b000)
        libfreetype.so.6 => /d2/gerry/local/lib/libfreetype.so.6 (0x4023a000)
        libm.so.6 => /lib/libm.so.6 (0x402b9000)
        libgcc_s.so.1 => /usr/local/gcc-3.2.2/lib/libgcc_s.so.1 (0x402da000)
        libc.so.6 => /lib/libc.so.6 (0x402e2000)
        libz.so.1 => /usr/lib/libz.so.1 (0x403ff000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Here's ld.so.conf:

light:> more /etc/ld.so.conf
/usr/X11R6/lib/Xaw3d
/usr/lib/libc5-compat/Xaw3d
/usr/X11R6/lib
/usr/lib/libc5-compat
/lib/libc5-compat
/usr/local/lib
/usr/i486-linuxlibc1/lib
/opt/lib

Thanks,

Gerry

Todd Miller wrote:

···

Hi Gerry,

I'm not entirely sure how to trouble shoot this problem but I had a few
questions:

1. What platform are you running on?

2. What does ldd _tkagg.so say? (cd to .../site-packges/matplotlib
first)

3. What's in your /etc/ld.so.conf file?

Regards,
Todd

On Mon, 2004-04-26 at 11:38, Gerry Wiener wrote:

John,

My libX11 seems to be in the right place:

light:gerry> pwd
/usr/X11R6/lib
light:gerry> ls -l libX11.so
lrwxrwxrwx 1 root root 11 Mar 2 10:04 libX11.so -> libX11.so.6
light:gerry> ls -l libX11.so.6
lrwxrwxrwx 1 root root 13 Mar 2 10:04 libX11.so.6 -> libX11.so.6.2
light:gerry> ls -l libX11.so.6.2
-rw-r--r-- 1 root root 888580 Feb 16 02:38 libX11.so.6.2
light:gerry>

Thanks,

--Gerry

John Hunter wrote:

"Gerry" == Gerry Wiener <gerry@...157...> writes:
          

  > undefined symbol: XFreePixmap

A quick google groups search revealed among others

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=mailman.1046790065.16698.python-list%40python.org&rnum=4&prev=/groups%3Fq%3Dundefined%2520symbol%253A%2520XFreePixmap%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26sa%3DN%26tab%3Dwg

The solution appeared to be -L/usr/X11R6/lib -lX11 -lXaw for a
standard linux install path. Is your X11 in a weird place; where is
libX11.so? Todd, do you think we need to add X11 libs to the tk build
flags?
     
I dunno. I was thinking first we'd figure out how to fix the problem by
hand, then figure out what to do systematically.

JDH

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
   

Todd,

I'm running on Debian linux. Here's the output from uname -a:

Linux light 2.4.26-dqcd-smp #1 SMP Wed Apr 14 13:15:48 MDT 2004 i686 unknown

Here's the output from ldd _tkagg.so:

light:> ldd _tkagg.so
        libpng.so.2 => /usr/lib/libpng.so.2 (0x40160000)
        libstdc++.so.5 => /usr/local/gcc-3.2.2/lib/libstdc++.so.5
(0x4018b000)
        libfreetype.so.6 => /d2/gerry/local/lib/libfreetype.so.6
(0x4023a000)
        libm.so.6 => /lib/libm.so.6 (0x402b9000)
        libgcc_s.so.1 => /usr/local/gcc-3.2.2/lib/libgcc_s.so.1 (0x402da000)
        libc.so.6 => /lib/libc.so.6 (0x402e2000)
        libz.so.1 => /usr/lib/libz.so.1 (0x403ff000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Here's mine from Red Hat 9 i386 Linux:

backends$ ldd _tkagg.so
        libtk8.3.so => /usr/lib/libtk8.3.so (0x40003000)
        libtcl8.3.so => /usr/lib/libtcl8.3.so (0x400c1000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x4014b000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4016e000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40221000)
        libz.so.1 => /usr/lib/libz.so.1 (0x40272000)
        libm.so.6 => /lib/tls/libm.so.6 (0x40294000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x402b6000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x402be000)
        libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x402cc000)
        libdl.so.2 => /lib/libdl.so.2 (0x403ab000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

As JDH suggested, -L/usr/X11R6/lib -lX11 -lXaw sounds like a good
idea. It's possible that Tk and Tcl will need something similar. Have
you tried anything like this yet?

Todd

···

On Mon, 2004-04-26 at 14:35, Gerry Wiener wrote:

Here's ld.so.conf:

light:> more /etc/ld.so.conf
/usr/X11R6/lib/Xaw3d
/usr/lib/libc5-compat/Xaw3d
/usr/X11R6/lib
/usr/lib/libc5-compat
/lib/libc5-compat
/usr/local/lib
/usr/i486-linuxlibc1/lib
/opt/lib

Thanks,

Gerry

Todd Miller wrote:

>Hi Gerry,
>
>I'm not entirely sure how to trouble shoot this problem but I had a few
>questions:
>
>1. What platform are you running on?
>
>2. What does ldd _tkagg.so say? (cd to .../site-packges/matplotlib
>first)
>
>3. What's in your /etc/ld.so.conf file?
>
>Regards,
>Todd
>
>
>On Mon, 2004-04-26 at 11:38, Gerry Wiener wrote:
>
>
>>John,
>>
>>My libX11 seems to be in the right place:
>>
>>light:gerry> pwd
>>/usr/X11R6/lib
>>light:gerry> ls -l libX11.so
>>lrwxrwxrwx 1 root root 11 Mar 2 10:04 libX11.so ->
>>libX11.so.6
>>light:gerry> ls -l libX11.so.6
>>lrwxrwxrwx 1 root root 13 Mar 2 10:04 libX11.so.6 ->
>>libX11.so.6.2
>>light:gerry> ls -l libX11.so.6.2
>>-rw-r--r-- 1 root root 888580 Feb 16 02:38 libX11.so.6.2
>>light:gerry>
>>
>>Thanks,
>>
>>--Gerry
>>
>>
>>John Hunter wrote:
>>
>>
>>
>>>>>>>>"Gerry" == Gerry Wiener <gerry@...157...> writes:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>> > undefined symbol: XFreePixmap
>>>
>>>A quick google groups search revealed among others
>>>
>>>http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=mailman.1046790065.16698.python-list%40python.org&rnum=4&prev=/groups%3Fq%3Dundefined%2520symbol%253A%2520XFreePixmap%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26sa%3DN%26tab%3Dwg
>>>
>>>The solution appeared to be -L/usr/X11R6/lib -lX11 -lXaw for a
>>>standard linux install path. Is your X11 in a weird place; where is
>>>libX11.so? Todd, do you think we need to add X11 libs to the tk build
>>>flags?
>>>
>>>
>
>I dunno. I was thinking first we'd figure out how to fix the problem by
>hand, then figure out what to do systematically.
>
>
>
>>>JDH
>>>
>>>
>>>
>>>
>>
>>-------------------------------------------------------
>>This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
>>For a limited time only, get FREE Ground shipping on all orders of $35
>>or more. Hurry up and shop folks, this offer expires April 30th!
>>http://www.thinkgeek.com/freeshipping/?cpg=12297
>>_______________________________________________
>>Matplotlib-users mailing list
>>Matplotlib-users@lists.sourceforge.net
>>matplotlib-users List Signup and Options
>>
>>

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Todd Miller <jmiller@...86...>