[MacPorts] #63371: base port: Adding extra configure options breaks readline build
MacPorts
noreply at macports.org
Sun Aug 15 09:46:03 UTC 2021
#63371: base port: Adding extra configure options breaks readline build
-----------------------+--------------------
Reporter: snowflake | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.7.99
Keywords: | Port:
-----------------------+--------------------
When building the ```port``` command, adding additional configure options
breaks the compilation of readline.
I modified ```standard_configure.sh``` to read:
{{{
env PATH=/usr/bin:/bin:/usr/sbin:/sbin CFLAGS="-pipe -Os" ./configure
--enable-readline --with-curlprefix=/opt/local "$@"
}}}
Now ```make``` comes up with an error when building readline.o:
{{{
clang -std=gnu11 -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED -pipe -Os -std=c99
-Wextra -Wall -pedantic -I/opt/local/include -DHAVE_CONFIG_H
-I/Users/davidevans/macports/sources/github.com/macports/macports-base/src
-I/Users/davidevans/macports/sources/github.com/macports/macports-base/src
-I. -I/Users/davidevans/macports/sources/github.com/macports/macports-
base/vendor/vendor-destroot/opt/local/libexec/macports/include
-I./../compat -fno-common readline.c -o readline.o
readline.c:133: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:54:39: note: expanded from macro 'USERNAME_COMPLETION_FUNCTION'
# define USERNAME_COMPLETION_FUNCTION
username_completion_function
^
/opt/local/include/readline/readline.h:485:14: note:
'rl_username_completion_function' declared here
extern char *rl_username_completion_function PARAMS((const char *, int));
^
1 error generated.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63371>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list