[Varnish] #1003: Fix libedit (libreadline) support for FreeBSD
Varnish
varnish-bugs at varnish-cache.org
Tue Jun 19 12:10:13 CEST 2012
#1003: Fix libedit (libreadline) support for FreeBSD
-------------------------+--------------------------------------------------
Reporter: anders | Owner: tfheen
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: build | Version: 3.0.1
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Changes (by anders):
* status: closed => reopened
* resolution: fixed =>
Comment:
This does not work well in FreeBSD, varnishadm fails to build with
libedit:
{{{
libtool: link: gcc -std=gnu99 -g -O2 -D_THREAD_SAFE -pthread -g -fno-
inline -DDIAGNOSTICS -Wextra -Wno-missing-field-initializers -Wno-sign-
compare -o .libs/varnishadm varnishadm-varnishadm.o varnishadm-assert.o
varnishadm-tcp.o varnishadm-vss.o
../../lib/libvarnishapi/.libs/libvarnishapi.so -L/usr/local/lib
/usr/local/lib/libpcre.so
../../lib/libvarnishcompat/.libs/libvarnishcompat.so -ledit -lcurses -lm
-pthread -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath
-Wl,/usr/local/lib/varnish
varnishadm-varnishadm.o(.text+0xa3): In function `cli_write':
/root/varnish-cache/bin/varnishadm/varnishadm.c:82: undefined reference to
`rl_callback_handler_remove'
varnishadm-varnishadm.o(.text+0x697): In function `pass':
/root/varnish-cache/bin/varnishadm/varnishadm.c:211: undefined reference
to `rl_already_prompted'
varnishadm-varnishadm.o(.text+0x6b7):/root/varnish-
cache/bin/varnishadm/varnishadm.c:213: undefined reference to
`rl_callback_handler_install'
varnishadm-varnishadm.o(.text+0x816):/root/varnish-
cache/bin/varnishadm/varnishadm.c:248: undefined reference to
`rl_forced_update_display'
varnishadm-varnishadm.o(.text+0x829):/root/varnish-
cache/bin/varnishadm/varnishadm.c:253: undefined reference to
`rl_callback_read_char'
varnishadm-varnishadm.o(.text+0x871):/root/varnish-
cache/bin/varnishadm/varnishadm.c:233: undefined reference to
`rl_callback_handler_remove'
varnishadm-varnishadm.o(.text+0x887):/root/varnish-
cache/bin/varnishadm/varnishadm.c:215: undefined reference to
`rl_callback_handler_install'
varnishadm-varnishadm.o(.text+0x8b1):/root/varnish-
cache/bin/varnishadm/varnishadm.c:236: undefined reference to
`rl_callback_handler_remove'
varnishadm-varnishadm.o(.text+0xa03): In function `send_line':
/root/varnish-cache/bin/varnishadm/varnishadm.c:188: undefined reference
to `rl_callback_handler_remove'
varnishadm-varnishadm.o(.text+0x9fe):/root/varnish-
cache/bin/varnishadm/varnishadm.c:186: undefined reference to
`add_history'
*** Error code 1
Stop in /root/varnish-cache/bin/varnishadm.
*** Error code 1
Stop in /root/varnish-cache/bin.
*** Error code 1
Stop in /root/varnish-cache.
*** Error code 1
Stop in /root/varnish-cache.
}}}
If we build with libreadline (which is installed by default) it will work.
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1003#comment:3>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list