Fix readline & libedit configure options after a slight error slipped in
with the patches done in r400142.
PR: 203988
Submitted by: John Hein <z7dr6ut7gs@snkmail.com>
* json io: add stubs for formatters and printers
* dnsdedupe: implement formatters and parsers
* json io: dnsdedupe don't downcase names when parsing
* Merge pull request #11 from farsightsec/jsonio
Implement format and parse functions for all custom print fields.
Nuke PORTSCOUNT= since it doesn't help. See PR 204135 for the
details about why portscount isn't currently working for this port's
MASTER_SITE.
Sponsored by: Farsight Security, Inc.
make(1) suffix rules discard original extension as used by bsd.*.mk
which leads to unpredictable behavior if more than one candidate is
found under ${.PATH}. So, partially qualify pathname to avoid
accidentally building libcutils/sockets.c despite SRCS=sockets.cpp
$ echo 'void foo() { }' > a.c
$ echo 'int main() { }' > a.cxx
$ make PROG_CXX=test SRCS=a.cxx NO_MAN= -f /usr/share/mk/bsd.prog.mk
cc -O -pipe -std=gnu99 -c a.c
c++ -O -pipe -o test a.o
/usr/lib/crt1.o: In function `_start':
crt1.c:(.text+0x132): undefined reference to `main'
*** Error code 1
which in adb case leads to (since partial C++ conversion in 6.0.0)
adb.o: In function `handle_packet(apacket*, atransport*)':
adb.cpp:(.text+0x2518): undefined reference to `find_local_socket(unsigned int, unsigned int)'
adb.cpp:(.text+0x2613): undefined reference to `find_local_socket(unsigned int, unsigned int)'
adb.cpp:(.text+0x276a): undefined reference to `find_local_socket(unsigned int, unsigned int)'
adb.cpp:(.text+0x2875): undefined reference to `create_local_service_socket(char const*)'
adb.cpp:(.text+0x288c): undefined reference to `create_remote_socket(unsigned int, atransport*)'
adb.cpp:(.text+0x2a41): undefined reference to `create_remote_socket(unsigned int, atransport*)'
adb_listeners.o: In function `listener_event_func(int, unsigned int, void*)':
adb_listeners.cpp:(.text+0xe2): undefined reference to `create_local_socket(int)'
adb_listeners.cpp:(.text+0xfe): undefined reference to `connect_to_remote(asocket*, char const*)'
adb_listeners.o: In function `ss_listener_event_func(int, unsigned int, void*)':
adb_listeners.cpp:(.text+0x1b1): undefined reference to `create_local_socket(int)'
adb_listeners.cpp:(.text+0x1be): undefined reference to `connect_to_smartsocket(asocket*)'
services.o: In function `host_service_to_socket(char const*, char const*)':
services.cpp:(.text+0x64d): undefined reference to `create_local_socket(int)'
services.cpp:(.text+0x6b7): undefined reference to `create_local_socket(int)'
transport.o: In function `input_thread(void*)':
transport.cpp:(.text+0x1931): undefined reference to `close_all_sockets(atransport*)'
*** [adb] Error code 1
make(1) suffix rules discard original extension as used by bsd.*.mk
which leads to unpredictable behavior if more than one candidate is
found under ${.PATH}. So, partially qualify pathname to avoid
accidentally building libcutils/sockets.c despite SRCS=sockets.cpp
$ echo 'void foo() { }' > a.c
$ echo 'int main() { }' > a.cxx
$ make PROG_CXX=test SRCS=a.cxx NO_MAN= -f /usr/share/mk/bsd.prog.mk
cc -O -pipe -std=gnu99 -c a.c
c++ -O -pipe -o test a.o
/usr/lib/crt1.o: In function `_start':
crt1.c:(.text+0x132): undefined reference to `main'
*** Error code 1
which in adb case leads to (since partial C++ conversion in 6.0.0)
adb.o: In function `handle_packet(apacket*, atransport*)':
adb.cpp:(.text+0x2518): undefined reference to `find_local_socket(unsigned int, unsigned int)'
adb.cpp:(.text+0x2613): undefined reference to `find_local_socket(unsigned int, unsigned int)'
adb.cpp:(.text+0x276a): undefined reference to `find_local_socket(unsigned int, unsigned int)'
adb.cpp:(.text+0x2875): undefined reference to `create_local_service_socket(char const*)'
adb.cpp:(.text+0x288c): undefined reference to `create_remote_socket(unsigned int, atransport*)'
adb.cpp:(.text+0x2a41): undefined reference to `create_remote_socket(unsigned int, atransport*)'
adb_listeners.o: In function `listener_event_func(int, unsigned int, void*)':
adb_listeners.cpp:(.text+0xe2): undefined reference to `create_local_socket(int)'
adb_listeners.cpp:(.text+0xfe): undefined reference to `connect_to_remote(asocket*, char const*)'
adb_listeners.o: In function `ss_listener_event_func(int, unsigned int, void*)':
adb_listeners.cpp:(.text+0x1b1): undefined reference to `create_local_socket(int)'
adb_listeners.cpp:(.text+0x1be): undefined reference to `connect_to_smartsocket(asocket*)'
services.o: In function `host_service_to_socket(char const*, char const*)':
services.cpp:(.text+0x64d): undefined reference to `create_local_socket(int)'
services.cpp:(.text+0x6b7): undefined reference to `create_local_socket(int)'
transport.o: In function `input_thread(void*)':
transport.cpp:(.text+0x1931): undefined reference to `close_all_sockets(atransport*)'
*** [adb] Error code 1