This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: link path probs on OSX re: Tcl, Tk & fink's /sw
Type: Stage:
Components: Build Versions: Python 2.4
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: blakers, loewis, sf-robot
Priority: normal Keywords:

Created on 2005-07-13 17:06 by blakers, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg25803 - (view) Author: OpenMacNews (blakers) Date: 2005-07-13 17:06
hi all,

i'm bldg Python 2.4.1 on OSX 10.4.1 ...

i've installed a late version of Tcl/Tk framework in:

   /Library/Frameworks/Tcl.framework
   /Library/Frameworks/Tk.framework

iiuc, these frameworks/libs are SUPPOSED to be searched PRIOR to /
System/Library/Frameworks ...

i've installed the Fink dev env in "/sw"

the Fink ev is 'disabled' o my box ... i.e., "/sw" is NOT in my path ...



that said, the Python build 'insists' on building against:

(1) the /System/... Tcl & Tk frameworks
(2) libs/includes in /sw/... (e.g., ndbm.h ...)

correcting the problem is INSENSITIVE to discreet inclusion of /Library/
Frameworks in LD_LIBRARY_PATH/DYLD_LIBRARY_PATH

only the build time spec'n of:

   setenv LDFLAGS "-L/Library/Frameworks -framework Tcl -framework 
Tk"

seems to do the trick ...

as for /sw, only a:

mv /sw /swTMP
( ... build ...)
mv /swTMP /sw

seems to work.

cheers,

richard
msg25804 - (view) Author: OpenMacNews (blakers) Date: 2005-07-13 17:56
Logged In: YES 
user_id=564069

1st, i "lied" earlier ... i'm building on OSX 10.4.2, not 10.4.1.

AND, apparently, i still have a problem ... the WRONG HEADERS.

even with:

	setenv CPPFLAGS "-I/Library/Frameworks/Tcl.framework/Headers -I/
Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders -I/
Library/Frameworks/Tk.framework/Headers -I/Library/Frameworks/
Tk.framework/Versions/Current/PrivateHeaders"

set prior to configure, the build 'make' STILL complains abt:

building '_tkinter' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wno-
long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -
DWITH_APPINIT=1 -I/System/Library/Frameworks/Tcl.framework/Headers -I/
System/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders -
I/System/Library/Frameworks/Tk.framework/Headers -I/System/Library/
Frameworks/Tk.framework/Versions/Current/PrivateHeaders -I/usr/X11R6/
include -I. -I/usr/ports/Python-2.4.1/./Include -I/usr/ports/Python-2.4.1/./Mac/
Include -I/usr/local/include -I/usr/ports/Python-2.4.1/Include -I/usr/ports/
Python-2.4.1 -c /usr/ports/Python-2.4.1/Modules/_tkinter.c -o build/
temp.darwin-8.2.0-Power_Macintosh-2.4/_tkinter.o -framework Tcl -
framework Tk
In file included from /System/Library/Frameworks/Tk.framework/Headers/tk.h:
96,
                 from /usr/ports/Python-2.4.1/Modules/_tkinter.c:67:
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:140: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:343: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:462: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:480: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:505: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:506: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:518: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:531: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:1065: 
warning: function declaration isn't a prototype
powerpc-apple-darwin8-gcc-4.0.0: -framework: linker input file unused 
because linking not done
powerpc-apple-darwin8-gcc-4.0.0: Tcl: linker input file unused because 
linking not done
powerpc-apple-darwin8-gcc-4.0.0: -framework: linker input file unused 
because linking not done
powerpc-apple-darwin8-gcc-4.0.0: Tk: linker input file unused because 
linking not done
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wno-
long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -
DWITH_APPINIT=1 -I/System/Library/Frameworks/Tcl.framework/Headers -I/
System/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders -
I/System/Library/Frameworks/Tk.framework/Headers -I/System/Library/
Frameworks/Tk.framework/Versions/Current/PrivateHeaders -I/usr/X11R6/
include -I. -I/usr/ports/Python-2.4.1/./Include -I/usr/ports/Python-2.4.1/./Mac/
Include -I/usr/local/include -I/usr/ports/Python-2.4.1/Include -I/usr/ports/
Python-2.4.1 -c /usr/ports/Python-2.4.1/Modules/tkappinit.c -o build/
temp.darwin-8.2.0-Power_Macintosh-2.4/tkappinit.o -framework Tcl -
framework Tk
In file included from /System/Library/Frameworks/Tk.framework/Headers/tk.h:
96,
                 from /usr/ports/Python-2.4.1/Modules/tkappinit.c:17:
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:140: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:343: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:462: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:480: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:505: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:506: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:518: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:531: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:1065: 
warning: function declaration isn't a prototype
powerpc-apple-darwin8-gcc-4.0.0: -framework: linker input file unused 
because linking not done
powerpc-apple-darwin8-gcc-4.0.0: Tcl: linker input file unused because 
linking not done
powerpc-apple-darwin8-gcc-4.0.0: -framework: linker input file unused 
because linking not done
powerpc-apple-darwin8-gcc-4.0.0: Tk: linker input file unused because 
linking not done
gcc -L/Library/Frameworks -framework Tcl -framework Tk -bundle -undefined 
dynamic_lookup -L/Library/Frameworks -framework Tcl -framework Tk -I. -I./
Include build/temp.darwin-8.2.0-Power_Macintosh-2.4/_tkinter.o build/
temp.darwin-8.2.0-Power_Macintosh-2.4/tkappinit.o -L/usr/local/lib -o build/
lib.darwin-8.2.0-Power_Macintosh-2.4/_tkinter.so -framework Tcl -framework 
Tk
running build_scripts
creating build/scripts-2.4
copying and adjusting /usr/ports/Python-2.4.1/Tools/scripts/pydoc -> build/
scripts-2.4
copying and adjusting /usr/ports/Python-2.4.1/Tools/scripts/idle -> build/
scripts-2.4
copying and adjusting /usr/ports/Python-2.4.1/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

cheers,

richard

msg25805 - (view) Author: OpenMacNews (blakers) Date: 2005-07-13 18:32
Logged In: YES 
user_id=564069

1st, i "lied" earlier ... i'm building on OSX 10.4.2, not 10.4.1.

AND, apparently, i still have a problem ... the WRONG HEADERS.

even with:

	setenv CPPFLAGS "-I/Library/Frameworks/Tcl.framework/Headers -I/
Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders -I/
Library/Frameworks/Tk.framework/Headers -I/Library/Frameworks/
Tk.framework/Versions/Current/PrivateHeaders"

set prior to configure, the build 'make' STILL complains abt:

building '_tkinter' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wno-
long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -
DWITH_APPINIT=1 -I/System/Library/Frameworks/Tcl.framework/Headers -I/
System/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders -
I/System/Library/Frameworks/Tk.framework/Headers -I/System/Library/
Frameworks/Tk.framework/Versions/Current/PrivateHeaders -I/usr/X11R6/
include -I. -I/usr/ports/Python-2.4.1/./Include -I/usr/ports/Python-2.4.1/./Mac/
Include -I/usr/local/include -I/usr/ports/Python-2.4.1/Include -I/usr/ports/
Python-2.4.1 -c /usr/ports/Python-2.4.1/Modules/_tkinter.c -o build/
temp.darwin-8.2.0-Power_Macintosh-2.4/_tkinter.o -framework Tcl -
framework Tk
In file included from /System/Library/Frameworks/Tk.framework/Headers/tk.h:
96,
                 from /usr/ports/Python-2.4.1/Modules/_tkinter.c:67:
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:140: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:343: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:462: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:480: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:505: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:506: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:518: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:531: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:1065: 
warning: function declaration isn't a prototype
powerpc-apple-darwin8-gcc-4.0.0: -framework: linker input file unused 
because linking not done
powerpc-apple-darwin8-gcc-4.0.0: Tcl: linker input file unused because 
linking not done
powerpc-apple-darwin8-gcc-4.0.0: -framework: linker input file unused 
because linking not done
powerpc-apple-darwin8-gcc-4.0.0: Tk: linker input file unused because 
linking not done
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wno-
long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -
DWITH_APPINIT=1 -I/System/Library/Frameworks/Tcl.framework/Headers -I/
System/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders -
I/System/Library/Frameworks/Tk.framework/Headers -I/System/Library/
Frameworks/Tk.framework/Versions/Current/PrivateHeaders -I/usr/X11R6/
include -I. -I/usr/ports/Python-2.4.1/./Include -I/usr/ports/Python-2.4.1/./Mac/
Include -I/usr/local/include -I/usr/ports/Python-2.4.1/Include -I/usr/ports/
Python-2.4.1 -c /usr/ports/Python-2.4.1/Modules/tkappinit.c -o build/
temp.darwin-8.2.0-Power_Macintosh-2.4/tkappinit.o -framework Tcl -
framework Tk
In file included from /System/Library/Frameworks/Tk.framework/Headers/tk.h:
96,
                 from /usr/ports/Python-2.4.1/Modules/tkappinit.c:17:
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:140: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:343: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:462: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:480: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:505: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:506: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:518: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:531: warning: 
function declaration isn't a prototype
/System/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:1065: 
warning: function declaration isn't a prototype
powerpc-apple-darwin8-gcc-4.0.0: -framework: linker input file unused 
because linking not done
powerpc-apple-darwin8-gcc-4.0.0: Tcl: linker input file unused because 
linking not done
powerpc-apple-darwin8-gcc-4.0.0: -framework: linker input file unused 
because linking not done
powerpc-apple-darwin8-gcc-4.0.0: Tk: linker input file unused because 
linking not done
gcc -L/Library/Frameworks -framework Tcl -framework Tk -bundle -undefined 
dynamic_lookup -L/Library/Frameworks -framework Tcl -framework Tk -I. -I./
Include build/temp.darwin-8.2.0-Power_Macintosh-2.4/_tkinter.o build/
temp.darwin-8.2.0-Power_Macintosh-2.4/tkappinit.o -L/usr/local/lib -o build/
lib.darwin-8.2.0-Power_Macintosh-2.4/_tkinter.so -framework Tcl -framework 
Tk
running build_scripts
creating build/scripts-2.4
copying and adjusting /usr/ports/Python-2.4.1/Tools/scripts/pydoc -> build/
scripts-2.4
copying and adjusting /usr/ports/Python-2.4.1/Tools/scripts/idle -> build/
scripts-2.4
copying and adjusting /usr/ports/Python-2.4.1/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

cheers,

richard

msg25806 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-07-03 12:36
Logged In: YES 
user_id=21627

It's not clear to me what the problem is that is being
reported here; it looks like a messed-up setup on the build
machine to me. Lowering the priority to "normal".

blakers, if the problem persists, it would be good if you
could start all over:
1) close this report
2) create a new report, indicating
   a) what you did
   b) what happened (stop your report at the first error,
      later errors might be follow-up)
   c) what you expected to happen instead.
msg25807 - (view) Author: SourceForge Robot (sf-robot) Date: 2006-07-18 02:21
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42187
2005-07-13 17:06:02blakerscreate