On Fri, 23 Mar 2007, Dan Nicholson wrote:

>
> You should just be able to look at the log and find the relevant text
> before the "ld: fails ..." part. Did you say you have tk on your
> system? Maybe it's making the crappy assumptions about where to find
Yes, I have tcl and tk (only because they are recommended by other
packages).
> your X libraries.
>
> --
What I did:
        patch -Np1 -i ../Python-2.4.4-gdbm-1.patch
        ./configure --prefix=/usr --enable-shared
        make

Last lines of output of "make":

        building '_tkinter' extension
        gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC 
-fno-strict-aliasing -DWITH_APPINIT=1 -I/usr/X11/include -I. 
-I/local/run/management/packages/python/Python-2.4.4/./Include 
-I/usr/local/include 
-I/local/run/management/packages/python/Python-2.4.4/Include 
-I/local/run/management/packages/python/Python-2.4.4 -c 
/local/run/management/packages/python/Python-2.4.4/Modules/_tkinter.c -o 
build/temp.linux-i686-2.4/_tkinter.o
        gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC 
-fno-strict-aliasing -DWITH_APPINIT=1 -I/usr/X11/include -I. 
-I/local/run/management/packages/python/Python-2.4.4/./Include 
-I/usr/local/include 
-I/local/run/management/packages/python/Python-2.4.4/Include 
-I/local/run/management/packages/python/Python-2.4.4 -c 
/local/run/management/packages/python/Python-2.4.4/Modules/tkappinit.c -o 
build/temp.linux-i686-2.4/tkappinit.o
        gcc -pthread -shared -fno-strict-aliasing -DNDEBUG -g -O3 -Wall 
-Wstrict-prototypes build/temp.linux-i686-2.4/_tkinter.o 
build/temp.linux-i686-2.4/tkappinit.o -L/usr/X11/lib -L/usr/local/lib -ltk8.4 
-ltcl8.4 -lX11 -o build/lib.linux-i686-2.4/_tkinter.so
        /usr/bin/ld: cannot find -lX11
        collect2: ld returned 1 exit status
        running build_scripts
        creating build/scripts-2.4
        copying and adjusting 
/local/run/management/packages/python/Python-2.4.4/Tools/scripts/pydoc -> 
build/scripts-2.4
        copying and adjusting 
/local/run/management/packages/python/Python-2.4.4/Tools/scripts/idle -> 
build/scripts-2.4
        copying and adjusting 
/local/run/management/packages/python/Python-2.4.4/Lib/smtpd.py -> 
build/scripts-2.4
        changing mode of build/scripts-2.4/pydoc from 644 to 755
        changing mode of build/scripts-2.4/idle from 644 to 755
        changing mode of build/scripts-2.4/smtpd.py from 644 to 755

I could post what went to STDERR, but it's only warnings, except for:
        /usr/bin/ld: cannot find -lX11
        collect2: ld returned 1 exit status


> Dan
>

-- 
Jorge
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to