On 20/01/2010 07:37, Marco Atzeri wrote:
*** Info: Removing fltk.spec to be regenerated by configure
/pub/cygports/fltk/fltk-1.1.9-10/src/fltk-1.1.9/configure 
--srcdir=/pub/cygports/fltk/fltk-1.1.9-10/src/fltk-1.1.9 --prefix=/usr 
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib 
--datadir=/usr/share --localstatedir=/var --sysconfdir=/etc 
--datarootdir=/usr/share --docdir=/usr/share/doc/fltk --enable-shared 
--enable-threads --enable-xft LIBS=-lfontconfig --without-links
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables

Confirmed.

See `config.log' for more details.

This is always key, and sure enough, the problem is that gcc (4.3) does not accept -mno-cygwin. But wait a minute, you say, doesn't 1.1.9-not-windows.patch remove -mno-cygwin usage? You're right, but autoconf was run in $B instead of in $S (after lndirs), so $B/configure was correct, but cygconf was still running the unchanged $S/configure. I would guess that there was a behavioural change in the new autoconf which removes configure before generating a new one instead of just overwriting it.

Revised .cygport attached.


Yaakov
Cygwin Ports
DESCRIPTION="Fast Light Toolkit (X11 build)"
HOMEPAGE="http://www.fltk.org/";
SRC_URI="http://ftp.easysw.com/pub/${PN}/${PV}/${P}-source.tar.bz2";
PATCH_URI="
        mirror://portage/x11-libs/${PN}/files/${P}-desktop.patch
        mirror://portage/x11-libs/${PN}/files/${P}-conf-tests.patch
        1.1.9-not-windows.patch
"

PKG_NAMES="${PN} fluid libfltk1.1 lib${PN}-devel"
fluid_CONTENTS="etc/ usr/bin/fluid.exe usr/share/applications/ usr/share/icons/
                usr/share/doc/ usr/share/man/man1/fluid.* usr/share/mimelnk/"
libfltk1_1_CONTENTS="usr/bin/*-1.1.dll"
libfltk_devel_CONTENTS="usr/bin/${PN}-config usr/include/ usr/lib/
                        usr/share/man/man1/${PN}-config.* usr/share/man/man3/"

src_compile() {
        cd ${S}
        autoconf
        lndirs
        cd ${B}

        # bug #19894
        export C_INCLUDE_PATH="${C_INCLUDE_PATH}:/usr/include/freetype2"
        export CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH}:/usr/include/freetype2"

        cygconf \
                --enable-shared \
                --enable-threads \
                --enable-xft LIBS="-lfontconfig" \
                --without-links
        cygmake
}

src_install() {
        cd ${B}
        cyginstall
        cyginstall -C documentation
        cygmake -C fluid install-linux DESTDIR=${D}
}
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to