This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build script error (libiconv + custom prefix)


Hi,

Thanks for the replies guys.

The purpose of the build.sh script is to setup a full env under the "arachni" dir which will include all system libs and other dependencies.

It also creates wrappers for the application's executables which setup env variables like PATH and LD_LIBRARY_PATH before running them.

The point of all this is that you'll be able to package up that dir and transfer it between boxes without worrying about dependencies.

It's meant to create a self-contained package, so I don't want to rely on what's already on the system.

I've attached the libiconv logfile and the cygcheck output.

Thanks again.


PS. Please skip any lectures you might be inclined to give, I know that this is a suboptimal solution for packaging and distribution but I've been through support hell in the past due to inconsistent system libs and messed up Ruby environments and problems with Ruby Gem versions.
No-matter the shortcomings, a fully controlled and self-contained environment is necessary.


On 08/28/2012 05:59 PM, Larry Hall (Cygwin) wrote:
On 8/27/2012 8:08 PM, 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?

What's the failure? Following your steps above I found build.sh built libiconv fine for me. If you're still having trouble and want to follow-up, please send along your cygcheck -srv output as an attachment. And of course there's Marco's point that libiconv-1.14 is available already as a package, if that's all you need.


Attachment: libiconv-error.txt
Description: Text document

Cygwin Configuration Diagnostics
Current System Time: Tue Aug 28 16:20:48 2012

Windows 2003 Server Ver 5.2 Build 3790 Service Pack 1

Running under WOW64 on AMD64

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\WINDOWS\system32
	C:\WINDOWS
	C:\WINDOWS\System32\Wbem

Output from C:\cygwin\bin\id.exe
UID: 500(Administrator) GID: 513(None)
513(None)               0(root)                 544(Administrators)
545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'Administrator'
PWD = '/home/Administrator'
HOME = '/home/Administrator'

HOMEPATH = '\Documents and Settings\Administrator'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man:'
APPDATA = 'C:\Documents and Settings\Administrator\Application Data'
ProgramW6432 = 'C:\Program Files'
HOSTNAME = 'tasos-u0lw328yo'
SHELL = '/bin/bash'
TERM = 'xterm'
PROCESSOR_IDENTIFIER = 'EM64T Family 6 Model 45 Stepping 7, GenuineIntel'
WINDIR = 'C:\WINDOWS'
OLDPWD = '/home/Administrator/lib'
USERDOMAIN = 'TASOS-U0LW328YO'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
JRE_HOME = 'C:\Program Files (x86)\Java\jre7'
!:: = '::\'
temp = 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp'
COMMONPROGRAMFILES = 'C:\Program Files (x86)\Common Files'
TMP = '/tmp'
USERNAME = 'Administrator'
PROCESSOR_LEVEL = '6'
ProgramFiles(x86) = 'C:\Program Files (x86)'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
PROCESSOR_ARCHITEW6432 = 'AMD64'
LANG = 'en_US.UTF-8'
USERPROFILE = 'C:\Documents and Settings\Administrator'
CLIENTNAME = 'Console'
TZ = 'Asia/Nicosia'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\TASOS-U0LW328YO'
CommonProgramW6432 = 'C:\Program Files\Common Files'
PROCESSOR_ARCHITECTURE = 'x86'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = 'C:'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
SYSTEMROOT = 'C:\WINDOWS'
PRINTER = 'PSC-2100-Series#:2'
PROCESSOR_REVISION = '2d07'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files (x86)'
NUMBER_OF_PROCESSORS = '4'
SESSIONNAME = 'Console'
COMPUTERNAME = 'TASOS-U0LW328YO'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygwin\setup
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu2\Programs\Cygwin
  (default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'c:\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: c5e39b7a9d22bafb Path: C:\cygwin

a:  fd             N/A    N/A                    
c:  hd  NTFS     40950Mb  21% CP CS UN PA FC     
d:  cd             N/A    N/A                    

C:\cygwin        /          system  binary,auto
C:\cygwin\bin    /usr/bin   system  binary,auto
C:\cygwin\lib    /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,auto

Found: C:\cygwin\bin\awk
 -> C:\cygwin\bin\gawk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
 -> C:\cygwin\etc\alternatives\cpp
 -> C:\cygwin\bin\cpp-3.exe
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Found: C:\WINDOWS\system32\find.exe
Warning: C:\cygwin\bin\find.exe hides C:\WINDOWS\system32\find.exe
Found: C:\cygwin\bin\gcc.exe
 -> C:\cygwin\etc\alternatives\gcc
 -> C:\cygwin\bin\gcc-3.exe
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Not Found: ssh
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Not Found: vim

   14k 2012/05/04 C:\cygwin\bin\cygattr-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygattr-1.dll" v0.0 ts=2012/5/4 12:35
   62k 2011/05/21 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2011/5/21 20:16
    7k 2012/05/07 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2012/5/7 12:18
  929k 2011/11/10 C:\cygwin\bin\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2011/11/10 19:52
   93k 2011/11/10 C:\cygwin\bin\cygdb_cxx-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.5.dll" v0.0 ts=2011/11/10 19:53
   43k 2010/01/02 C:\cygwin\bin\cygform-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-10.dll" v0.0 ts=2010/1/2 14:49
   47k 2010/01/02 C:\cygwin\bin\cygformw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygformw-10.dll" v0.0 ts=2010/1/2 17:31
   79k 2011/10/26 C:\cygwin\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcc_s-1.dll" v0.0 ts=2011/10/23 14:15
  449k 2011/05/20 C:\cygwin\bin\cyggcrypt-11.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcrypt-11.dll" v0.0 ts=2011/5/20 3:29
   19k 2009/02/26 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2009/2/26 7:58
    8k 2009/02/26 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2009/2/26 7:58
  317k 2011/07/31 C:\cygwin\bin\cyggmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmp-3.dll" v0.0 ts=2011/7/31 6:14
  614k 2011/11/15 C:\cygwin\bin\cyggnutls-26.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutls-26.dll" v0.0 ts=2011/11/15 7:02
   21k 2011/11/15 C:\cygwin\bin\cyggnutls-extra-26.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutls-extra-26.dll" v0.0 ts=2011/11/15 7:02
   24k 2011/11/15 C:\cygwin\bin\cyggnutls-openssl-27.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutls-openssl-27.dll" v0.0 ts=2011/11/15 7:03
   52k 2011/11/15 C:\cygwin\bin\cyggnutlsxx-27.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutlsxx-27.dll" v0.0 ts=2011/11/15 7:02
   14k 2011/05/20 C:\cygwin\bin\cyggpg-error-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggpg-error-0.dll" v0.0 ts=2011/5/20 3:04
   25k 2012/05/04 C:\cygwin\bin\cyghistory7.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory7.dll" v0.0 ts=2012/5/4 22:07
  358k 2012/04/14 C:\cygwin\bin\cygicons-0.dll - os=4.0 img=1.4 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2012/4/14 2:48
  985k 2011/10/16 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2011/10/16 18:01
  190k 2011/11/16 C:\cygwin\bin\cygidn-11.dll - os=4.0 img=1.0 sys=4.0
                  "cygidn-11.dll" v0.0 ts=2011/11/16 14:51
   31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2005/11/20 2:04
   35k 2011/10/16 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2011/10/16 6:38
    6k 2012/07/20 C:\cygwin\bin\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=2012/7/20 21:56
    9k 2012/07/20 C:\cygwin\bin\cyglsa64.dll - os=5.2 img=0.0 sys=5.2
  123k 2011/05/19 C:\cygwin\bin\cyglzma-5.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzma-5.dll" v0.0 ts=2011/5/19 3:41
  116k 2011/11/16 C:\cygwin\bin\cyglzo2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzo2-2.dll" v0.0 ts=2011/11/16 22:27
   94k 2012/04/22 C:\cygwin\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2012/4/22 19:09
   25k 2010/01/02 C:\cygwin\bin\cygmenu-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-10.dll" v0.0 ts=2010/1/2 14:48
   25k 2010/01/02 C:\cygwin\bin\cygmenuw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenuw-10.dll" v0.0 ts=2010/1/2 17:30
  213k 2011/07/31 C:\cygwin\bin\cygmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygmp-3.dll" v0.0 ts=2011/7/31 6:12
   63k 2010/01/02 C:\cygwin\bin\cygncurses++-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-10.dll" v0.0 ts=2010/1/2 15:00
   63k 2010/01/02 C:\cygwin\bin\cygncurses++w-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++w-10.dll" v0.0 ts=2010/1/2 17:41
  195k 2010/01/02 C:\cygwin\bin\cygncurses-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-10.dll" v0.0 ts=2010/1/2 14:45
  244k 2010/01/02 C:\cygwin\bin\cygncursesw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncursesw-10.dll" v0.0 ts=2010/1/2 17:28
   13k 2010/01/02 C:\cygwin\bin\cygpanel-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-10.dll" v0.0 ts=2010/1/2 14:47
   13k 2010/01/02 C:\cygwin\bin\cygpanelw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanelw-10.dll" v0.0 ts=2010/1/2 16:30
  255k 2012/02/10 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2012/2/10 10:24
 1628k 2012/07/12 C:\cygwin\bin\cygperl5_14.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_14.dll" v0.0 ts=2012/7/12 20:17
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 6:45
  162k 2012/05/04 C:\cygwin\bin\cygreadline7.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline7.dll" v0.0 ts=2012/5/4 22:07
    8k 2011/05/05 C:\cygwin\bin\cygsigsegv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsigsegv-2.dll" v0.0 ts=2011/5/5 8:33
    8k 2011/10/26 C:\cygwin\bin\cygssp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssp-0.dll" v0.0 ts=2011/10/23 14:33
  780k 2011/10/26 C:\cygwin\bin\cygstdc++-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygstdc++-6.dll" v0.0 ts=2011/10/23 14:58
   57k 2012/03/22 C:\cygwin\bin\cygtasn1-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtasn1-3.dll" v0.0 ts=2012/3/22 6:33
   48k 2010/01/02 C:\cygwin\bin\cygtic-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygtic-10.dll" v0.0 ts=2010/1/2 14:45
   48k 2010/01/02 C:\cygwin\bin\cygticw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygticw-10.dll" v0.0 ts=2010/1/2 17:28
   71k 2012/05/13 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2012/5/13 5:11
 2789k 2012/07/20 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2012/7/20 21:55
    Cygwin DLL version info:
        DLL version: 1.7.16
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 262
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


Can't find the cygrunsrv utility, skipping services check.


Cygwin Package Information
Last downloaded files to: c:\cygwin-packages
Last downloaded files from: ftp://ftp.ntua.gr/pub/pc/cygwin/

Package              Version              Status
_autorebase          000117-1             OK
_update-info-dir     01065-1              OK
alternatives         1.3.30c-10           OK
base-cygwin          3.1-1                OK
base-files           4.1-1                OK
bash                 4.1.10-4             OK
binutils             2.22.51-2            OK
bzip2                1.0.6-2              OK
coreutils            8.15-1               OK
crypt                1.2-1                OK
cygutils             1.4.10-2             OK
cygwin               1.7.16-1             OK
cygwin-doc           1.7-1                OK
dash                 0.5.7-1              OK
diffutils            3.2-1                OK
dos2unix             6.0.1-1              OK
editrights           1.01-2               OK
file                 5.11-1               OK
findutils            4.5.9-2              OK
gawk                 4.0.1-1              OK
Empty package gcc
gcc                  3.4.4-999            OK
gcc-core             3.4.4-999            OK
gcc-g++              3.4.4-999            OK
gcc-mingw-core       20050522-3           OK
gcc-mingw-g++        20050522-3           OK
gettext              0.18.1.1-2           OK
grep                 2.6.3-1              OK
groff                1.21-2               OK
gzip                 1.4-1                OK
ipc-utils            1.0-1                OK
less                 444-1                OK
libattr1             2.4.46-1             OK
libbz2_1             1.0.6-2              OK
libdb4.5             4.5.20.2-3           OK
libgcc1              4.5.3-3              OK
libgcrypt11          1.4.6-1              OK
libgdbm4             1.8.3-20             OK
libgmp3              4.3.2-1              OK
libgnutls26          2.12.14-1            OK
libgpg-error0        1.10-1               OK
libiconv2            1.14-2               OK
libidn11             1.22-1               OK
libintl3             0.14.5-1             OK
libintl8             0.18.1.1-2           OK
liblzma5             5.0.2_20110517-1     OK
liblzo2_2            2.06-1               OK
libncurses10         5.7-18               OK
libncursesw10        5.7-18               OK
libpcre0             8.21-2               OK
libpopt0             1.6.4-4              OK
libreadline7         6.1.2-3              OK
libsigsegv2          2.10-1               OK
libssp0              4.5.3-3              OK
libstdc++6           4.5.3-3              OK
libtasn1_3           2.12-1               OK
login                1.10-10              OK
make                 3.82.90-1            OK
man                  1.6g-1               OK
mingw-runtime        3.20-1               OK
mingw-w32api         3.17-2               OK
mintty               1.1.1-1              OK
perl                 5.14.2-3             OK
rebase               4.3.0-1              OK
run                  1.1.13-1             OK
sed                  4.2.1-2              OK
tar                  1.25-1               OK
terminfo             5.7_20091114-14      OK
texinfo              4.13-4               OK
tzcode               2012b-1              OK
w32api               3.17-2               OK
wget                 1.13.4-1             OK
which                2.20-2               OK
xz                   5.0.2_20110517-1     OK
zlib0                1.2.7-1              OK
Use -h to see help about each section

--
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]