mingw32 build (was Re: slrn 0.9.9 release plans)

"John E. Davis" <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
Marcin Wiśniewski <[email protected]> wrote:
> Yes, it shows prompt, and $(SLSH) win32/subst.sl in makefile.g32 works.

Great.  After some minor modifications, I sucessfully used the
cross-compiler to build a mingw32 version of slrn.  The changes are
available in the repository as pre0.9.9-42.

Here is what I did to build it.  First I created shell-script called
domake.sh containing:

  TOOL_PREFIX="/usr/bin/i586-mingw32msvc-"
  SLANGLIB="/home/john/builds/install/win32/lib"
  SLANGINC="/home/john/builds/install/win32/include"

  make -f Makefile.g32 SLANGLIB=$SLANGLIB \
     SLANGINC=$SLANGINC TOOL_PREFIX=$TOOL_PREFIX

Then I ran the shell script from within the source directory:

  ./domake.sh

This produced the following output:

cp   slrnconf.h config.h
slsh win32/subst.sl win32/slrnfeat.def slrnfeat.hin slrnfeat.h
/usr/bin/i586-mingw32msvc-gcc -c -I/home/john/builds/install/win32/include chkslang.c -o gw32objs/chkslang.o
/usr/bin/i586-mingw32msvc-gcc gw32objs/chkslang.o -o gw32objs/chkslang.exe -L/home/john/builds/install/win32/lib -lslang
echo ./gw32objs/chkslang.exe slrn 20000
./gw32objs/chkslang.exe slrn 20000
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/art.o art.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/art_misc.o art_misc.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/art_sort.o art_sort.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/charset.o charset.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/decode.o decode.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/editscore.o editscore.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include  -DSLRN_LIB_DIR='""' -o gw32objs/group.o group.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/grplens.o grplens.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/hash.o hash.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/hdrutils.o hdrutils.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/help.o help.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/hooks.o hooks.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/interp.o interp.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/menu.o menu.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/mime.o mime.c
mime.c:1821: warning: unused parameter 'from_charset'
mime.c:1940: warning: unused parameter 'from_charset'
mime.c:1892: warning: unused parameter 'from_charset'
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/misc.o misc.c
misc.c:1160: warning: unused parameter 'subject'
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/post.o post.c
post.c:841: warning: unused parameter 'mail'
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/print.o print.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/ranges.o ranges.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/score.o score.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/server.o server.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include  -DSLRN_CONF_DIR='"/specify/a/conf/dir                    "' -o gw32objs/slrn.o slrn.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/slrndir.o slrndir.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/snprintf.o snprintf.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/sortdate.o sortdate.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include  -DSLRN_SLANG_DIR='""' -o gw32objs/startup.o startup.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/strutil.o strutil.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/ttymsg.o ttymsg.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/util.o util.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/version.o version.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/vfile.o vfile.c
/usr/bin/i586-mingw32msvc-gcc -c -O2 -fno-strength-reduce -W -Wall -DSLANG_DLL=1 -I/home/john/builds/install/win32/include   -o gw32objs/xover.o xover.c
/usr/bin/i586-mingw32msvc-gcc gw32objs/art.o gw32objs/art_misc.o gw32objs/art_sort.o gw32objs/charset.o gw32objs/decode.o gw32objs/editscore.o gw32objs/group.o gw32objs/grplens.o gw32objs/hash.o gw32objs/hdrutils.o gw32objs/help.o gw32objs/hooks.o gw32objs/interp.o gw32objs/menu.o gw32objs/mime.o gw32objs/misc.o gw32objs/post.o gw32objs/print.o gw32objs/ranges.o gw32objs/score.o gw32objs/server.o gw32objs/slrn.o gw32objs/slrndir.o gw32objs/snprintf.o gw32objs/sortdate.o gw32objs/startup.o gw32objs/strutil.o gw32objs/ttymsg.o gw32objs/util.o gw32objs/version.o gw32objs/vfile.o gw32objs/xover.o -o slrn.exe -Wl,--subsystem,console -L/home/john/builds/install/win32/lib -lslang -lwsock32 -lwinspool

I hope this helps.
Thanks,
--John

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.