delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/28/02:54:24

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <503C6AFD.6080005@gmail.com>
Date: Tue, 28 Aug 2012 08:53:49 +0200
From: marco atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Build script error (libiconv + custom prefix)
References: <503C0C1A DOT 9040608 AT gmail DOT com>
In-Reply-To: <503C0C1A.9040608@gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 8/28/2012 2:08 AM, Tasos Laskos wrote:
> Hi folks,
>
> I'm trying to port my project's [1] build/package script to Cygwin but
> I'm facing some difficulties during runtime.
>
> It runs fine under Linux and OSX but I'm not sure if that's because
> these environments fulfil a dependency I'm unaware of, while Cygwin
> being a stripped down system does not, or something else.
>
> Here's how to go about reproducing it.
>
> To setup the Cygwin environment:
> ----------------------------
> setup.exe -q -R c:\cygwin -l c:\cygwin-packages -P make,gcc,g++,perl,wget
> ----------------------------
>
> To reproduce the issue open up the Cygwin shell:
> ----------------------------
> mkdir lib
> cd lib
> wget --no-check-certificate
> https://raw.github.com/Arachni/arachni/experimental/external/scripts/lib/readlink_f.sh
>
> cd ..
> wget --no-check-certificate
> https://raw.github.com/Arachni/arachni/experimental/external/scripts/build.sh
>
> bash build.sh
> ----------------------------
>
> It fails when it tries to build the first dependency, libiconv, but I'm
> not sure why.
> For some reason it looks for a /usr/lib/libiconv.la while it has been
> configured with a different prefix.
>
> Anyone have any ideas?
>
> Regards,
> Tasos L.
>
> [1] Arachni - http://arachni-scanner.com
>

what about using the cygwin libiconv ?

$ cygcheck -f /usr/lib/libiconv.la
libiconv-1.14-2

To successfully port a software to multiple platforms, I suggest you
to use Autoconf/Automake and use standard test to verify your dependency

     http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
     http://zlib.net/zlib-1.2.7.tar.gz
     http://www.openssl.org/source/openssl-1.0.1c.tar.gz
     http://www.sqlite.org/sqlite-autoconf-3071300.tar.gz
     ftp://xmlsoft.org/libxml2/libxml2-2.8.0.tar.gz
     ftp://xmlsoft.org/libxslt/libxslt-1.1.26.tar.gz
     http://curl.haxx.se/download/curl-7.26.0.tar.gz
     https://rvm.io/src/yaml-0.1.4.tar.gz
     http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz

Please also look on existing cygwin packages at
http://cygwin.com/packages/
and install the relative devel packages

Regards
Marco


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019