Build S-Lang Fail

David Sastre d.sastre.medina@gmail.com
Sat Sep 4 10:09:00 GMT 2010


On Thu, Sep 02, 2010 at 10:20:11AM +0800, Steven Woody wrote:
> On 2 September 2010 10:12, Steven Woody wrote:
> > On 25 August 2010 20:58, Csaba Raduly wrote:
> >> On Sun, Aug 22, 2010 at 8:15 PM, Steven Woody  wrote:
> >>>
> >>> $ ldd /usr/lib/gcc/i686-pc-cygwin/4.3.4/cc1.exe
> >>>        ntdll.dll => /cygdrive/c/WINDOWS/system32/ntdll.dll (0x7c920000)
> >>>        kernel32.dll => /cygdrive/c/WINDOWS/system32/kernel32.dll (0x7c800000)
> >>>        cyggcc_s-1.dll => /usr/bin/cyggcc_s-1.dll (0x67f00000)
> >>>        cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000)
> >>>        ADVAPI32.DLL => /cygdrive/c/WINDOWS/system32/ADVAPI32.DLL (0x77da0000)
> >>>        RPCRT4.dll => /cygdrive/c/WINDOWS/system32/RPCRT4.dll (0x77e50000)
> >>>        Secur32.dll => /cygdrive/c/WINDOWS/system32/Secur32.dll (0x77fc0000)
> >>>        cyggmp-3.dll => /usr/bin/cyggmp-3.dll (0x63f40000)
> >>>        cygmpfr-1.dll => /usr/bin/cygmpfr-1.dll (0x6cd80000)
> >>>
> >>
> >> You could either run ldd on the DLLs (cyggcc_s-1.dll, cyggmp-3.dll and
> >> cygmpfr-1.dll) or use depends.exe (http://www.dependencywalker.com/)
> >> to try to identify the missing DLL.
> >>
> >
> > I tried on these dll that you mentioned, but still not find anything missed :(
> >
> 
> Opps, I then tried with Dependency Walker on cc-1.exe, it prompted a warning:
> "Warning: At least one module has an unresolved import due to a
> missing export function in a delay-load dependent module."
> 
> But I seems don't give me further information about what is the module
> that cause the problem.   Can you help, thanks!

I built slang a while back because I wanted to use the most pager, and
it was a dependency. I have attached the *.cygport and *.cygwin.patch
files I used to build them, so cygport won't complain about missing
files when packaging (this step is not mandatory for building the
binaries, but I used them for housekeeping, and the might come in
handy?). I have included onig as well. I gave them a try in a win7 box 
today, and they build OK. 
Make sure you build and install onig first, then slang, and finally most 
(in case you want to use it). Use cygport, of course.

Please note this packages are not in the distro, so use them at your 
own risk.

Regards.

-- 
Huella de clave primaria: 0FDA C36F F110 54F4 D42B  D0EB 617D 396C 448B 31EB
-------------- next part --------------
HOMEPAGE="http://www.geocities.jp/kosako3/oniguruma/"
SRC_URI="http://www.geocities.jp/kosako3/oniguruma/archive/onig-5.9.2.tar.gz"
DESCRIPTION="Oniguruma is a regular expressions library"
PKG_NAMES="onig libonig2 libonig2-devel"
PKG_HINTS="setup runtime devel"
libonig2_CONTENTS="usr/lib/"
libonig2_devel_CONTENTS="usr/bin/ usr/include/ usr/share/doc/"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onig-5.9.2-1.cygwin.patch
Type: text/x-diff
Size: 4614 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100904/105782d2/attachment.bin>
-------------- next part --------------
DESCRIPTION="Pager program similar to more and less"
HOMEPAGE="http://www.jedsoft.org/most/"
SRC_URI="ftp://space.mit.edu/pub/davis/most/${P}.tar.bz2"
CYGCONF_ARGS="--with-x --with-slang"

src_compile() {
        cd ${S}
        cygconf
        cygmake
}

src_test() {
        :
}

src_install() {
        cd ${S}
        cyginstall
        make distclean
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: most-5.0.0a-1.cygwin.patch
Type: text/x-diff
Size: 3155 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100904/105782d2/attachment-0001.bin>
-------------- next part --------------
DESCRIPTION="multi-platform programmer's library"
SRC_URI="ftp://space.mit.edu/pub/davis/slang/v2.2/${P}.tar.bz2"
HOMEPAGE="http://www.s-lang.org/"
NO_AUTOHEADER="true"
CYGCONF_ARGS="--with-x --with-pcre --with-onig 
              --with-png --with-z --with-iconv 
              --with-readline=gnu"
MAKEOPTS+=" -j1"
PKG_NAMES="${PN} slsh lib${PN}2 lib${PN}2-devel lib${PN}2-modules"
PKG_HINTS="setup shell runtime devel modules"
DIFF_EXCLUDES="Makefile slang.pc src/sysconf.h"
slsh_CONTENTS="etc/slsh.rc usr/bin/slsh.exe 
               usr/share/doc/slsh/ 
               usr/share/man/man1/ 
               usr/share/slsh/" 
libslang2_CONTENTS="usr/bin/libslang2.dll 
               usr/share/doc/slang/v2/ 
               usr/share/doc/Cygwin/slang.README
               usr/share/doc/slang/CHANGES.txt
               usr/share/doc/slang/COPYING
               usr/share/doc/slang/NEWS
               usr/share/doc/slang/README"
libslang2_devel_CONTENTS="usr/include/ 
               usr/lib/libslang.dll.a 
               usr/lib/pkgconfig/"
libslang2_modules_CONTENTS="usr/lib/slang/v2/modules"

src_compile() {
	cd ${S}
	cygconf
        cygmake
}

src_test() {
        :
}

src_install() {
        cd ${S}
        cyginstall
        make distclean
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slang-2.2.2-1.cygwin.patch
Type: text/x-diff
Size: 5709 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100904/105782d2/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100904/105782d2/attachment.sig>


More information about the Cygwin mailing list