<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Problems building 3.4 SVN with mingw</title>
		<link>http://www.allegro.cc/forums/view/591110</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 21 Apr 2007 18:43:35 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I am trying to get allegro 4.3 SVN to build, so that I can try and make a patch to fix a possible bug <a href="http://www.allegro.cc/forums/thread/591107">http://www.allegro.cc/forums/thread/591107</a>. I have sed (&#39;GNU sed version 3.02&#39;) and sort (&#39;sort (GNU textutils) 2.0&#39;) from <a href="http://unxutils.sourceforge.net/">http://unxutils.sourceforge.net/</a> installed</p><p>I installed mingw using the following packages</p><p>binutils-2.15.91-20040904-1.tar.gz<br />gcc-core-3.4.2-20040916-1.tar.gz<br />gcc-g++-3.4.2-20040916-1.tar.gz<br />mingw-runtime-3.9.tar.gz<br />mingw-utils-0.3.tar.gz<br />w32api-3.5.tar.gz<br />dx70_mgw.zip</p><p>I used SVN to get the newest WiP and did the following</p><p>fix mingw<br />make depend<br />misc\fixdll.bat<br />make</p><p>It gets all the way up to the dlltool part, then it goes bad.</p><p>My errors are:</p><p>dlltool: Syntax error in def file lib/mingw32/allegro.def:2<br />dlltool: Syntax error in def file lib/mingw32/allegro.def:2<br />gcc -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll-loops <s>ffast</s><br />math  -fomit-frame-pointer -I. -I./include -o obj/mingw32/alleg/dibgrab.o -c tes<br />ts/win/dibgrab.c<br />gcc -s  -Wl,--subsystem,windows -o tests/win/dibgrab.exe obj/mingw32/alleg/dibgr<br />ab.o lib/mingw32/liballeg.a -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldin<br />put -lddraw -ldxguid -lwinmm -ldsound<br />obj/mingw32/alleg/dibgrab.o(.text+0x194):dibgrab.c: undefined reference to `save<br />_bitmap&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x1ec):dibgrab.c: undefined reference to `_imp<br />__default_palette&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x1f5):dibgrab.c: undefined reference to `set_<br />palette_to_hdc&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x276):dibgrab.c: undefined reference to `blit<br />_from_hdc&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x2b7):dibgrab.c: undefined reference to `stre<br />tch_blit_to_hdc&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x36d):dibgrab.c: undefined reference to `_ins<br />tall_allegro_version_check&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x37d):dibgrab.c: undefined reference to `set_<br />gdi_color_format&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x389):dibgrab.c: undefined reference to `crea<br />te_bitmap_ex&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x3dc):dibgrab.c: undefined reference to `dest<br />roy_bitmap&#39;<br />collect2: ld returned 1 exit status<br />make: *** [tests/win/dibgrab.exe] Error 1</p><p>I have attached my lib/mingw32/allegro.def file just in case it will be useful.</p><p>I can&#39;t find anything recent that explains how to solve the problem, and it seems everyone who has had this problem was with much earlier versions of allegro.</p><p>I&#39;m not sure what to try next
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Timorg)</author>
		<pubDate>Sat, 21 Apr 2007 15:12:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi, I made 4.3.1 just today.  However, it will probably be easier for you just to make a patch against the 4.2 branch.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Wang)</author>
		<pubDate>Sat, 21 Apr 2007 18:41:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I have created a patch that will work with both with 4.2 and 4.3 and its in this post  <a href="http://www.allegro.cc/forums/thread/591107/667363#target">http://www.allegro.cc/forums/thread/591107/667363#target</a> <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Edit:</p><p>I tried compiling 4.2 SVN in the same way, and got exactly the same errors. Still not sure of the problem. <img src="http://www.allegro.cc/forums/smileys/sad.gif" alt=":(" /></p><p>dlltool: Syntax error in def file lib/mingw32/allegro.def:2<br />dlltool: Syntax error in def file lib/mingw32/allegro.def:2<br />gcc -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll-loops -ffast-math  -fomit-frame-pointer -I. -I./include -o obj/mingw32/alleg/dibgrab.o -c tests/win/dibgrab.c<br />gcc -s  -Wl,--subsystem,windows -o tests/win/dibgrab.exe obj/mingw32/alleg/dibgrab.o lib/mingw32/liballeg.a -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound<br />obj/mingw32/alleg/dibgrab.o(.text+0x194):dibgrab.c: undefined reference to `save_bitmap&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x1ec):dibgrab.c: undefined reference to `_imp__default_palette&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x1f5):dibgrab.c: undefined reference to `set_palette_to_hdc&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x276):dibgrab.c: undefined reference to `blit_from_hdc&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x2b7):dibgrab.c: undefined reference to `stretch_blit_to_hdc&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x36d):dibgrab.c: undefined reference to `_install_allegro_version_check&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x37d):dibgrab.c: undefined reference to `set_gdi_color_format&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x389):dibgrab.c: undefined reference to `create_bitmap_ex&#39;<br />obj/mingw32/alleg/dibgrab.o(.text+0x3dc):dibgrab.c: undefined reference to `destroy_bitmap&#39;<br />collect2: ld returned 1 exit status<br />make: *** [tests/win/dibgrab.exe] Error 1
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Timorg)</author>
		<pubDate>Sat, 21 Apr 2007 18:43:35 +0000</pubDate>
	</item>
</rss>
