public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* buliding lftp fails
@ 2013-11-17 20:36 Andrew Schulman
  2013-11-17 20:43 ` Yaakov (Cygwin/X)
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Schulman @ 2013-11-17 20:36 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]

I used to be able to build lftp, but now I can't.  I'd appreciate it if
someone could help me get it done.

I'm attaching my cygport file, and the one patch I use.  This build used to
work fine in i686, but it never has in x86_64.  Now as of lftp 4.4.11, the
build fails in i686 too, with a syntax error:

$ cygport lftp-4.4.11 compile
<snip>
checking for ncurses/term.h... no
checking for library containing tigetstr... no
checking for library containing tgetstr... no
configure: WARNING: No terminfo
checking for readline... yes
/home/andrex/dev/cygwin/lftp/lftp-4.4.11-1/src/lftp-4.4.11/configure: line
48102: syntax error near unexpected token `LIBGNUTLS,'
/home/andrex/dev/cygwin/lftp/lftp-4.4.11-1/src/lftp-4.4.11/configure: line
48102: `   PKG_CHECK_MODULES(LIBGNUTLS, gnutls >= 1.0.0,'
*** ERROR: configure failed

My understanding of autotools is weak, so I have no idea why LIBGNUTLS
would be an unexpected token.  I have automake*, autoconf*, libgnutls26,
libgnutls28, and gnutls-devel installed.

I've also tried to use the apparently new-style build from cygports
(http://cygwin-ports.git.sourceforge.net/git/gitweb.cgi?p=cygwin-ports/lftp;a=commit;h=29a70d86838031f076643ecedf2ded683719f237),
as Yaakov recommended.  Yaakov says it works for him, but all I get is:

$ cygport lftp prep
>>> Preparing lftp
>>> Unpacking source lftp-4.4.10.tar.xz
*** ERROR: SRC_DIR is not correctly defined

At this point I'm out of ideas, and would greatly appreciate any help.

Thanks,
Andrew.

[-- Attachment #2: lftp-4.4.11-1.cygport --]
[-- Type: application/octet-stream, Size: 670 bytes --]

#
# cygport script for lftp
# by Andrew E. Schulman, 2009-09-16
#

DESCRIPTION="Sophisticated file transfer program"
SRC_URI="http://lftp.yar.ru/ftp/lftp-${PV}.tar.bz2"

CYGCONF_ARGS=--without-openssl

src_compile ()
{
	cd "${S}"
	# autoreconf fails the 1st time, and succeeds the 2nd.  Hence the following.
	# No doubt there's a better way, but I'm not autoconf-savvy enough to know
	# what it is.
	autoreconf || autoreconf
	cd "${B}"
	cygconf
	cygmake
}

src_install ()
{
	dodir /usr/share/doc/${PN}

	cd "${B}"
	cyginstall

	make_etc_defaults /etc/lftp.conf

	dosym ../Cygwin/${PN}.README /usr/share/doc/${PN}/README.Cygwin

	cd "${D}"
	rm -f usr/lib/charset.alias
}

[-- Attachment #3: noexamples.patch --]
[-- Type: application/octet-stream, Size: 1175 bytes --]

diff -urN lftp-4.4.8.orig/src/Makefile.am lftp-4.4.8/src/Makefile.am
--- lftp-4.4.8.orig/src/Makefile.am	2013-05-28 01:42:43.000000000 -0400
+++ lftp-4.4.8/src/Makefile.am	2013-07-02 00:11:23.237421200 -0400
@@ -9,14 +9,6 @@
 
 lftp_SOURCES = lftp.cc complete.h complete.cc lftp_rl.c lftp_rl.h attach.cc attach.h
 
-noinst_PROGRAMS = example1 example2 example1-cmd
-noinst_LTLIBRARIES = example-module1.la
-example1_SOURCES = example1.cc
-example1_cmd_SOURCES = example1-cmd.cc
-example2_SOURCES = example2.cc
-example_module1_la_SOURCES = example-module1.cc
-example_module1_la_LDFLAGS  = -module -avoid-version -rpath $(pkgverlibdir)
-
 TASK_MODULES = liblftp-pty.la liblftp-network.la proto-ftp.la proto-http.la proto-file.la proto-fish.la proto-sftp.la
 JOB_MODULES = cmd-mirror.la cmd-sleep.la cmd-torrent.la
 if WITH_MODULES
@@ -101,10 +93,6 @@
 lftp_LDADD = liblftp-jobs.la $(READLINE)
 lftp_DEPENDENCIES = liblftp-jobs.la $(READLINE_DEPEND)
 
-example1_LDADD = liblftp-tasks.la
-example1_cmd_LDADD = liblftp-jobs.la
-example2_LDADD = liblftp-tasks.la
-
 CLEANFILES = *.la
 
 INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/trio $(OPENSSL_CPPFLAGS) $(LIBGNUTLS_CFLAGS)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-17 21:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-17 20:36 buliding lftp fails Andrew Schulman
2013-11-17 20:43 ` Yaakov (Cygwin/X)
2013-11-17 21:02   ` Andrew Schulman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).