[MacPorts] #51969: building mp from source with readline fails (uses files from existing installation)

MacPorts noreply at macports.org
Fri Aug 5 06:30:32 PDT 2016


#51969: building mp from source with readline fails (uses files from existing
installation)
---------------------+--------------------------------
 Reporter:  mojca@…  |      Owner:  macports-tickets@…
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  base     |    Version:  2.3.4
 Keywords:           |       Port:
---------------------+--------------------------------
 On a machine with an existing MP installation I tried to set up a parallel
 test installation with
 {{{
 ./configure --prefix="$PREFIX" --with-frameworks-
 dir="$PREFIX/Library/Frameworks" --with-applications-
 dir="$PREFIX/Applications" --enable-readline
 }}}
 but the build failed with:
 {{{
 clang -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -g -O2 -std=c99 -Wextra -Wall
 -pedantic  -I/opt/local/include   -DHAVE_CONFIG_H
 -I/path/to/MacPorts-2.3.4/src -I/path/to/MacPorts-2.3.4/src -I.
 -I/path/to/MacPorts-2.3.4/vendor/vendor-destroot//opt/test-
 local/libexec/macports/include -fno-common readline.c -o readline.o
 readline.c:130:23: error: use of undeclared identifier
 'username_completion_function'; did you mean
 'rl_username_completion_function'?
                                         generator_func =
 USERNAME_COMPLETION_FUNCTION;
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 rl_username_completion_function
 readline.c:51:39: note: expanded from macro 'USERNAME_COMPLETION_FUNCTION'
 #       define USERNAME_COMPLETION_FUNCTION
 username_completion_function
                                                 ^
 /opt/local/include/readline/readline.h:457:14: note:
 'rl_username_completion_function' declared here
 extern char *rl_username_completion_function PARAMS((const char *, int));
              ^
 1 error generated.
 make[2]: *** [readline.o] Error 1
 make[1]: *** [all] Error 1
 make: *** [all] Error 1
 }}}

 I have no time to debug this right now, so I wanted to note it down before
 I forget.

-- 
Ticket URL: <https://trac.macports.org/ticket/51969>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list