New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building python 2.7/3.3 on Ubuntu using readline 6.3 #126

Closed
ghost opened this Issue Mar 9, 2014 · 10 comments

Comments

Projects
None yet
3 participants
@ghost

ghost commented Mar 9, 2014

I have the lastest pyenv version installed on my system and I already had built python 2.7.6 and python 3.3.4, but when I was trying to build python 3.2.5 I got this error:

Installing Python-3.2.5...

BUILD FAILED

Inspect or clean up the working tree at /tmp/python-build.20140309191454.12907
Results logged to /tmp/python-build.20140309191454.12907.log

Last 10 log lines:
(cd /home/thiago/.pyenv/versions/3.2.5/share/man/man1; ln -s python3.2.1 python3.1)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named readline

The Python readline extension was not compiled. Missing the GNU readline lib?

I manually checked for any missing dependency and double checked with pyenv-doctor and all dependencies were installed. So after seek a lot on google, I built 3.2.5 with an old version of readline: 5.2 and after I tested with readline 6.2 and it was ok, I could build 3.2.5 with theses readline versions, but not with 6.3.

Does anyone knows why this happen? Why can't I build CPython 2.X/3.X with readline 6.2 and 5.2 but not with 6.3?

@yyuu

This comment has been minimized.

Show comment
Hide comment
@yyuu

yyuu Mar 10, 2014

Collaborator

Please let me know further information for the investigation.

  1. What is your platform and distro?
  2. How did you install GNU Readline 6.3? Just doing like ./configure && make && make install?
  3. Can you build CPython 2.7.6 and 3.3.4 with linking against GNU Readline 6.3?
  4. Please gist the output from pyenv install -v 3.2.5
Collaborator

yyuu commented Mar 10, 2014

Please let me know further information for the investigation.

  1. What is your platform and distro?
  2. How did you install GNU Readline 6.3? Just doing like ./configure && make && make install?
  3. Can you build CPython 2.7.6 and 3.3.4 with linking against GNU Readline 6.3?
  4. Please gist the output from pyenv install -v 3.2.5
@yyuu

This comment has been minimized.

Show comment
Hide comment
@yyuu

yyuu Mar 10, 2014

Collaborator

I found some of CPython+Readline issues might affect this. Linking libreadline.so against libtinfo.so (./configure && make SHLIB_LIBS="-ltinfo" && make install && ldconfig) might help if you are on Linux or FreeBSD.

Collaborator

yyuu commented Mar 10, 2014

I found some of CPython+Readline issues might affect this. Linking libreadline.so against libtinfo.so (./configure && make SHLIB_LIBS="-ltinfo" && make install && ldconfig) might help if you are on Linux or FreeBSD.

@yyuu yyuu added the question label Mar 10, 2014

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Mar 11, 2014

I have a desktop running Ubuntu 14.04 LTS x86_64 (Beta release) and a laptop running Ubuntu 13.10 x86_64. On Ubuntu 13.10, GNU Readline default version is 6.2 and on Ubuntu 14.04, Readline 6.3 is default version. I have installed Readline from official Ubuntu repositories on both machines (libreadline6-dev package).

On Ubuntu 13.10 with Readline 6.2, the installation was ok. I downgraded Readline 6.3 on Ubuntu 14.04 to Readline 6.2 and the installation was ok to.

I found this Readline 6.3 bug report on GNU list:

I think the problem really is 6.3 version. I got the same error that was reported.

Here is the output of 3.2.5:

ghost commented Mar 11, 2014

I have a desktop running Ubuntu 14.04 LTS x86_64 (Beta release) and a laptop running Ubuntu 13.10 x86_64. On Ubuntu 13.10, GNU Readline default version is 6.2 and on Ubuntu 14.04, Readline 6.3 is default version. I have installed Readline from official Ubuntu repositories on both machines (libreadline6-dev package).

On Ubuntu 13.10 with Readline 6.2, the installation was ok. I downgraded Readline 6.3 on Ubuntu 14.04 to Readline 6.2 and the installation was ok to.

I found this Readline 6.3 bug report on GNU list:

I think the problem really is 6.3 version. I got the same error that was reported.

Here is the output of 3.2.5:

@lyman

This comment has been minimized.

Show comment
Hide comment
@lyman

lyman Mar 19, 2014

It is because readline 6.3 removed Function and CPPFunction from rltypedefs.h, which caused a compilation error:

building 'readline' extension
/usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/h
ome/lyman/.pyenv/versions/2.7.6/include -I/usr/local/include -I/tmp/python-build.20140319161731.960/Python-2.7.6/Include -I/tmp/python-b
uild.20140319161731.960/Python-2.7.6 -c /tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c -o build/temp.linux-x86_64-
2.7/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.o
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c: In function ‘setup_readline’:
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c:914:24: error: ‘Function’ undeclared (first use in this function)
     rl_startup_hook = (Function *)on_startup_hook;
                        ^
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c:914:24: note: each undeclared identifier is reported only once for 
each function it appears in
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c:914:34: error: expected expression before ‘)’ token
     rl_startup_hook = (Function *)on_startup_hook;
                                  ^
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c:916:36: error: expected expression before ‘)’ token
     rl_pre_input_hook = (Function *)on_pre_input_hook;
                                    ^
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c:919:41: error: ‘CPPFunction’ undeclared (first use in this function
)
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                         ^
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c:919:54: error: expected expression before ‘)’ token
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                                      ^

I've diffed rltypedefs.h between 6.3 and 6.2 and found that the only difference is so-called "old-style" typedef is removed. So it is safe to patch missing code back to rltypedefs.h as a workaround.

lyman commented Mar 19, 2014

It is because readline 6.3 removed Function and CPPFunction from rltypedefs.h, which caused a compilation error:

building 'readline' extension
/usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/h
ome/lyman/.pyenv/versions/2.7.6/include -I/usr/local/include -I/tmp/python-build.20140319161731.960/Python-2.7.6/Include -I/tmp/python-b
uild.20140319161731.960/Python-2.7.6 -c /tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c -o build/temp.linux-x86_64-
2.7/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.o
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c: In function ‘setup_readline’:
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c:914:24: error: ‘Function’ undeclared (first use in this function)
     rl_startup_hook = (Function *)on_startup_hook;
                        ^
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c:914:24: note: each undeclared identifier is reported only once for 
each function it appears in
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c:914:34: error: expected expression before ‘)’ token
     rl_startup_hook = (Function *)on_startup_hook;
                                  ^
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c:916:36: error: expected expression before ‘)’ token
     rl_pre_input_hook = (Function *)on_pre_input_hook;
                                    ^
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c:919:41: error: ‘CPPFunction’ undeclared (first use in this function
)
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                         ^
/tmp/python-build.20140319161731.960/Python-2.7.6/Modules/readline.c:919:54: error: expected expression before ‘)’ token
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                                      ^

I've diffed rltypedefs.h between 6.3 and 6.2 and found that the only difference is so-called "old-style" typedef is removed. So it is safe to patch missing code back to rltypedefs.h as a workaround.

@cloudforrest

This comment has been minimized.

Show comment
Hide comment
@cloudforrest

cloudforrest Mar 28, 2014

After several unsucessful attempts last night (3/27/14) to compile python 2.7.6 with pyenv, I went searching here in the issues tree. At first I was stuck at the developer's blithe response on issue #40, so I went back and made sure I had all dependencies. My system: Ubuntu 14.04, and all dependencies, including libreadline-dev, are installed. Python 2.7.6 installs but readline support failed to build. Here are the relevant lines in my build.log:

/usr/bin/gcc -pthread -shared -L/home/techpraxis/.pyenv/versions/2.7.6/lib -L/home/techpraxis/.pyenv/versions/2.7.6/lib
building 'readline' extension
/usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c: In function ‘setup_readline’:
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:914:24: error: ‘Function’ undeclared (first use
     rl_startup_hook = (Function *)on_startup_hook;
                        ^
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:914:24: note: each undeclared identifier is repo
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:914:34: error: expected expression before ‘)’ to
     rl_startup_hook = (Function *)on_startup_hook;
                                  ^
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:916:36: error: expected expression before ‘)’ to
     rl_pre_input_hook = (Function *)on_pre_input_hook;
                                    ^
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:919:41: error: ‘CPPFunction’ undeclared (first u
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                         ^
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:919:54: error: expected expression before ‘)’ to
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                                      ^
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c: At top level:
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:753:1: warning: ‘on_startup_hook’ defined but no
 on_startup_hook(void)
 ^
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:760:1: warning: ‘on_pre_input_hook’ defined but
 on_pre_input_hook(void)
 ^

after reading this thread, I went and checked my version of libreadline-dev (installed last night, 3/27/14, from ubuntu repositories for 14.04). Here is the output of 'apt-cache show libreadline-dev':

apt-cache show libreadline-dev
Package: libreadline-dev
Priority: optional
Section: libdevel
Installed-Size: 21
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Matthias Klose <doko@debian.org>
Architecture: i386
Source: readline6
Version: 6.3-4ubuntu1
Depends: libreadline6-dev (= 6.3-4ubuntu1)
Conflicts: libreadline-gplv2-dev
Filename: pool/main/r/readline6/libreadline-dev_6.3-4ubuntu1_i386.deb
Size: 990
MD5sum: c05664a41b67a71f5e17c4c410c5d524
SHA1: 0133a903899481a59f67d9081732e07184955c4b
SHA256: 8e081a2425ad78ed0da93b296f37fcf0cda9cdd9356c4d5acadf71816c52674c
Description-en: GNU readline and history libraries, development files
 The GNU readline library aids in the consistency of user interface
 across discrete programs that need to provide a command line
 interface.
 .
 The GNU history library provides a consistent user interface for
 recalling lines of previously typed input.
 .
 This package is a dependency package depending on libreadline6-dev.
Description-md5: 3502d626cf8e22133354357eb1e0631f
Multi-Arch: same
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m

So I do have the '6.3' version, and as lyman and geekrrr have documented here, the rltypedefs.h difference means that on my machine, pyenv cannot build python 2.7.6 with readline support when using unmodified system standard libraries, on Ubuntu 14.04, at least as of 10:02 am (PDT) 3/28/14.

cloudforrest commented Mar 28, 2014

After several unsucessful attempts last night (3/27/14) to compile python 2.7.6 with pyenv, I went searching here in the issues tree. At first I was stuck at the developer's blithe response on issue #40, so I went back and made sure I had all dependencies. My system: Ubuntu 14.04, and all dependencies, including libreadline-dev, are installed. Python 2.7.6 installs but readline support failed to build. Here are the relevant lines in my build.log:

/usr/bin/gcc -pthread -shared -L/home/techpraxis/.pyenv/versions/2.7.6/lib -L/home/techpraxis/.pyenv/versions/2.7.6/lib
building 'readline' extension
/usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c: In function ‘setup_readline’:
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:914:24: error: ‘Function’ undeclared (first use
     rl_startup_hook = (Function *)on_startup_hook;
                        ^
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:914:24: note: each undeclared identifier is repo
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:914:34: error: expected expression before ‘)’ to
     rl_startup_hook = (Function *)on_startup_hook;
                                  ^
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:916:36: error: expected expression before ‘)’ to
     rl_pre_input_hook = (Function *)on_pre_input_hook;
                                    ^
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:919:41: error: ‘CPPFunction’ undeclared (first u
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                         ^
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:919:54: error: expected expression before ‘)’ to
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                                      ^
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c: At top level:
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:753:1: warning: ‘on_startup_hook’ defined but no
 on_startup_hook(void)
 ^
/tmp/python-build.20140328010909.30997/Python-2.7.6/Modules/readline.c:760:1: warning: ‘on_pre_input_hook’ defined but
 on_pre_input_hook(void)
 ^

after reading this thread, I went and checked my version of libreadline-dev (installed last night, 3/27/14, from ubuntu repositories for 14.04). Here is the output of 'apt-cache show libreadline-dev':

apt-cache show libreadline-dev
Package: libreadline-dev
Priority: optional
Section: libdevel
Installed-Size: 21
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Matthias Klose <doko@debian.org>
Architecture: i386
Source: readline6
Version: 6.3-4ubuntu1
Depends: libreadline6-dev (= 6.3-4ubuntu1)
Conflicts: libreadline-gplv2-dev
Filename: pool/main/r/readline6/libreadline-dev_6.3-4ubuntu1_i386.deb
Size: 990
MD5sum: c05664a41b67a71f5e17c4c410c5d524
SHA1: 0133a903899481a59f67d9081732e07184955c4b
SHA256: 8e081a2425ad78ed0da93b296f37fcf0cda9cdd9356c4d5acadf71816c52674c
Description-en: GNU readline and history libraries, development files
 The GNU readline library aids in the consistency of user interface
 across discrete programs that need to provide a command line
 interface.
 .
 The GNU history library provides a consistent user interface for
 recalling lines of previously typed input.
 .
 This package is a dependency package depending on libreadline6-dev.
Description-md5: 3502d626cf8e22133354357eb1e0631f
Multi-Arch: same
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m

So I do have the '6.3' version, and as lyman and geekrrr have documented here, the rltypedefs.h difference means that on my machine, pyenv cannot build python 2.7.6 with readline support when using unmodified system standard libraries, on Ubuntu 14.04, at least as of 10:02 am (PDT) 3/28/14.

@cloudforrest

This comment has been minimized.

Show comment
Hide comment
@cloudforrest

cloudforrest commented Mar 28, 2014

I found the same error apparently as geekrrr: http://osdir.com/ml/bug-readline-gnu/2014-03/msg00004.html

@cloudforrest

This comment has been minimized.

Show comment
Hide comment
@cloudforrest

cloudforrest Mar 28, 2014

This python bug report also mentions this problem: http://bugs.python.org/issue20374

cloudforrest commented Mar 28, 2014

This python bug report also mentions this problem: http://bugs.python.org/issue20374

@cloudforrest

This comment has been minimized.

Show comment
Hide comment
@cloudforrest

cloudforrest Mar 28, 2014

This problem is widespread. NetBSD list also reports failure of python and samba to compile with latest readline 6.3, bug report here: http://mail-index.netbsd.org/pkgsrc-bugs/2014/03/13/msg053682.html.

This issue needs to have its status changed from 'question' to 'bug'. If no update by original questioner, I will open bug issue ASAP.

cloudforrest commented Mar 28, 2014

This problem is widespread. NetBSD list also reports failure of python and samba to compile with latest readline 6.3, bug report here: http://mail-index.netbsd.org/pkgsrc-bugs/2014/03/13/msg053682.html.

This issue needs to have its status changed from 'question' to 'bug'. If no update by original questioner, I will open bug issue ASAP.

@cloudforrest

This comment has been minimized.

Show comment
Hide comment
@cloudforrest

cloudforrest Mar 28, 2014

I just attempted another build of python 2.7.6, with pyenv, this time using pyenv's patch function and a patch from the python mailing list. No improvment. Here is the section of the build log that reveals the failure:

building 'readline' extension
/usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/home/techpraxis/.pyenv/versions/2.7.6/include -I/usr/include/i386-linux-gnu -I/usr/local/include -I/tmp/python-build.20140328104347.15697/Python-2.7.6/Include -I/tmp/python-build.20140328104347.15697/Python-2.7.6 -c /tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c -o build/temp.linux-i686-2.7/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.o
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c: In function ‘setup_readline’:
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:914:24: error: ‘Function’ undeclared (first use in this function)
     rl_startup_hook = (Function *)on_startup_hook;
                        ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:914:24: note: each undeclared identifier is reported only once for each function it appears in
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:914:34: error: expected expression before ‘)’ token
     rl_startup_hook = (Function *)on_startup_hook;
                                  ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:916:36: error: expected expression before ‘)’ token
     rl_pre_input_hook = (Function *)on_pre_input_hook;
                                    ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:919:41: error: ‘CPPFunction’ undeclared (first use in this function)
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                         ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:919:54: error: expected expression before ‘)’ token
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                                      ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c: At top level:
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:753:1: warning: ‘on_startup_hook’ defined but not used [-Wunused-function]
 on_startup_hook(void)
 ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:760:1: warning: ‘on_pre_input_hook’ defined but not used [-Wunused-function]
 on_pre_input_hook(void)
 ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:855:1: warning: ‘flex_complete’ defined but not used [-Wunused-function]
 flex_complete(char *text, int start, int end)
 ^

Python build finished, but the necessary bits to build these modules were not found:
_bsddb             _curses            _curses_panel   
_tkinter           bsddb185           sunaudiodev     
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
readline        

cloudforrest commented Mar 28, 2014

I just attempted another build of python 2.7.6, with pyenv, this time using pyenv's patch function and a patch from the python mailing list. No improvment. Here is the section of the build log that reveals the failure:

building 'readline' extension
/usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/home/techpraxis/.pyenv/versions/2.7.6/include -I/usr/include/i386-linux-gnu -I/usr/local/include -I/tmp/python-build.20140328104347.15697/Python-2.7.6/Include -I/tmp/python-build.20140328104347.15697/Python-2.7.6 -c /tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c -o build/temp.linux-i686-2.7/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.o
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c: In function ‘setup_readline’:
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:914:24: error: ‘Function’ undeclared (first use in this function)
     rl_startup_hook = (Function *)on_startup_hook;
                        ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:914:24: note: each undeclared identifier is reported only once for each function it appears in
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:914:34: error: expected expression before ‘)’ token
     rl_startup_hook = (Function *)on_startup_hook;
                                  ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:916:36: error: expected expression before ‘)’ token
     rl_pre_input_hook = (Function *)on_pre_input_hook;
                                    ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:919:41: error: ‘CPPFunction’ undeclared (first use in this function)
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                         ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:919:54: error: expected expression before ‘)’ token
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                                      ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c: At top level:
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:753:1: warning: ‘on_startup_hook’ defined but not used [-Wunused-function]
 on_startup_hook(void)
 ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:760:1: warning: ‘on_pre_input_hook’ defined but not used [-Wunused-function]
 on_pre_input_hook(void)
 ^
/tmp/python-build.20140328104347.15697/Python-2.7.6/Modules/readline.c:855:1: warning: ‘flex_complete’ defined but not used [-Wunused-function]
 flex_complete(char *text, int start, int end)
 ^

Python build finished, but the necessary bits to build these modules were not found:
_bsddb             _curses            _curses_panel   
_tkinter           bsddb185           sunaudiodev     
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
readline        
@yyuu

This comment has been minimized.

Show comment
Hide comment
@yyuu

yyuu Mar 29, 2014

Collaborator

I opened #152 to fix the issue with Readline 6.3. Please try it out.

Collaborator

yyuu commented Mar 29, 2014

I opened #152 to fix the issue with Readline 6.3. Please try it out.

@yyuu yyuu closed this in a841f42 Apr 3, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment