Opened 15 years ago

Closed 14 years ago

#20731 closed defect (fixed)

lftp fails to compile

Reported by: Damien@… Owned by: yunzheng.hu@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc: nerdling (Jeremy Lavergne), ryandesign (Ryan Carsten Schmidt)
Port: lftp

Description

lftp fails to compile.

build_arch: x86_64

Default variants: +ipv6 +quartz +no_x11 -x11 +nls +tls +ssl +with_default_names

port -d install lftp -tls -nls
…

checking for tgetstr... yes
checking for readline... configure: error: need installed readline-devel package

DEBUG: Backtrace: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_lftp/work/lftp-3.7.6" && ./configure --prefix=/opt/local --with-openssl --without-gnutls --disable-nls " returned error 1
Command output: checking for a thread-safe mkdir -p... /opt/local/bin/mkdir -p
checking whether localtime_r is compatible with its POSIX signature... yes
checking for unsetenv... yes
checking for unsetenv() return type... int
checking whether <wchar.h> is standalone... yes
checking whether iswcntrl works... yes
checking whether wcwidth is declared... yes
checking whether wcwidth works reasonably in UTF-8 locales... no
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing dlopen... none required
checking for library containing res_9_search... -lresolv
checking for library containing res_search... none required
checking whether res_search is declared... yes
checking for library containing hstrerror... none required
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking term.h usability... yes
checking term.h presence... yes
checking for term.h... yes
checking ncurses/curses.h usability... yes
checking ncurses/curses.h presence... yes
checking for ncurses/curses.h... yes
checking ncurses/term.h usability... yes
checking ncurses/term.h presence... yes
checking for ncurses/term.h... yes
checking for library containing tigetstr... -lncurses
checking for tgetstr... yes
checking for readline... configure: error: need installed readline-devel package

    while executing
"$procedure $targetname"
Warning: the following items did not execute (for lftp): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.archive org.macports.install
Error: Status 1 encountered during processing.

But the port "readline-devel" doens't exist.

# port installed | grep readline
  readline @6.0.000_1+darwin (active)
  readline-4 @4.3_0+darwin (active)
  readline-5 @5.0.005_0 (active)

Change History (10)

comment:1 Changed 15 years ago by nerdling (Jeremy Lavergne)

Cc: yunzheng.hu@… snc@… added
Keywords: readline compile removed
Milestone: MacPorts 1.8.0

What OS version are you running?

comment:2 in reply to:  1 Changed 15 years ago by Damien@…

Replying to snc@…:

What OS version are you running?

Leopard Server, everything is up to date.

Darwin iMac.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 i386 iMac6,1 Darwin

comment:3 Changed 15 years ago by nerdling (Jeremy Lavergne)

Priority: NormalLow

Setting to low priority since 10.6 is not out yet.

Have you tried doing this (you need autoconf/automake ports installed):

sudo port clean lftp
sudo port patch lftp
cd `port work lftp`/lftp-3.7.6
autoreconf -v
cd
sudo port configure lftp

Please attach the output from autoreconf -v forward.

comment:4 Changed 15 years ago by nerdling (Jeremy Lavergne)

Sorry, forgot sudo: you'll need to run sudo autoreconf -v

comment:5 in reply to:  3 ; Changed 15 years ago by Damien@…

Replying to snc@…:

It does fail.

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_lftp/work/lftp-3.7.6 # autoreconf -v
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
configure.ac:270: warning: macro `AM_PATH_LIBGNUTLS' not found in library
autoreconf: configure.ac: tracing
autoreconf: configure.ac: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION
autoreconf: configure.ac: not running glibtoolize: --install not given
autoreconf: running: /usr/bin/autoconf
configure.ac:26: error: possibly undefined macro: AC_DEFINE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:147: error: possibly undefined macro: AC_DEFINE_UNQUOTED
configure.ac:270: error: possibly undefined macro: AM_PATH_LIBGNUTLS
autoreconf: /usr/bin/autoconf failed with exit status: 1

comment:6 Changed 15 years ago by jmroot (Joshua Root)

Cc: yunzheng.hu@… removed
Owner: changed from macports-tickets@… to yunzheng.hu@…
Priority: LowNormal

Who said anything about 10.6?

comment:7 in reply to:  6 Changed 15 years ago by Damien@…

Replying to jmr@…:

Who said anything about 10.6?

Not me :)

But, yes, the problem is maybe related to 64 bits.

The transition to Snow Leopard is going to be… interesting, because a lot of ports fail to compile when build_arch is x86_64.

comment:8 in reply to:  6 Changed 15 years ago by nerdling (Jeremy Lavergne)

Replying to jmr@…:

Who said anything about 10.6?

I misread "Leopard" as "Snow Leopard". Gotta love it.

comment:9 in reply to:  5 Changed 15 years ago by nerdling (Jeremy Lavergne)

Replying to Damien@…:

It does fail.

It looks like the autoconf files are pretty broken.

configure.ac:270: error: possibly undefined macro: AM_PATH_LIBGNUTLS

It likely won't be able to find TLS, amongst other issues.

comment:10 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed

I don't think this is a problem anymore. I can build lftp 4.0.9 on Mac OS X 10.6.4 just fine.

Note: See TracTickets for help on using tickets.