Bugs item #1516068, was opened at 2006-07-02 17:42 Message generated for change (Comment added) made by narzola72 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1516068&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Platform-specific Status: Open Resolution: None Priority: 5 Submitted By: Nelson Arzola (narzola72) Assigned to: Nobody/Anonymous (nobody) Summary: Under OS X, compiling against local readline fails Initial Comment: I've installed a version of the GNU Readline (5.1) in a local directory (/Volumes/DATA/dev/toolset/{include,lib}. I'm compiling Python with: CFLAGS=-I/Volumes/DATA/dev/toolset/include \ LDFLAGS=-L/Volumes/DATA/dev/toolset/lib \ ./configure \ --prefix=/Volues/DATA/dev/toolset/inst/python \ --with-libs="-lexpat -lncurses -lreadline" make I get the following error: ./Modules/readline.c:885: error: 'HISTORY_STATE' undeclared (first use in this function) ./Modules/readline.c:885: error: 'state' undeclared (first use in this function) ./Modules/readline.c:887: warning: assignment discards qualifiers from pointer target type When I look at the gcc command that was used to compile Modules/readline.c, I see that my CFLAGS is not passed to gcc and so the (broken) system readline is being used. I can temporarily solve this problem with: echo "readline readline.c ${CFLAGS} ${LDFLAGS} -lreadline -l termcap" >> Modules/Setup.local before I call make. What I can't understand is why the build process correctly uses the local version of expat (2.0.0) that is installed in the directories with readline, but not readline? ---------------------------------------------------------------------- >Comment By: Nelson Arzola (narzola72) Date: 2006-07-02 17:44 Message: Logged In: YES user_id=1478788 Sorry, I forgot to mention that I'm using the latest verion of Python 2.4.3 from python.org. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1516068&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com