|FAQ about patches|||||More patches|||||Main Page|||||MD5 sum for this patch|
Run Alpine in Cygwin
Patch is available for version: alpine 0.999
Building Alpine in Cygwin is not by any means easy, so you will have to bear with me.
If you just want the recipe and not read any explanations, go directly to the summary.
First the bad news: Alpine does not build out of the box. It needs to be patched in order to be built, or needs to be modified every time the build fails so that it will build. Even then, it will still fail. If you can find ways to make Alpine build only patching Alpine you will be credited with the solution.
The patch you can get in this page will help you solve most problems that exist, so download it and apply it to the source code. This patch assumes that you have already installed the following packages:
* autoconf * automake * libtool * gcc-core * gcc-g++ * make * gettext-devel * libncurses-devel * openssl-devel * openldap-devel * libiconvIn my experience, I have built Alpine without openldap-devel, but then you will need to modify the Makefiles, on which the build fails on, by adding -lcrypto after -lssl. The problem that I've found by installing openldap-devel is that the build adds -lresolv to the linking process, and there is no /lib/libresolv.a in my system, so I solve this problem by executing the command
touch /lib/libresolv.aand after that never had a problem building :).
Now let us build Alpine. In order to do that, execute the command
./configure --without-pthreadand then once this is done execute the command
make IP6=4Here's what's going on. If you just run ./configure without any extra parameters, Alpine will fail to build because cygwin does not define PTHREAD_STACK_MIN, so it is better to avoid this by building without pthread support. That's ok, do not worry about it.
The make IP6=4, builds without support for ipv6, which is also ok in todays world, I think that cygwin is already ipv6 aware, and i have not tried the ipv6 build, so if you try it and think it works fine, please let me know and i will remove that instruction as part of the build.
That's it. Was not that bad, was it?
Last Updated 23:29:55 PDT Fri Aug 31 2007.