freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Compiling freetype 2.3.9 with bcc fails


From: Mirco Babin
Subject: Re: [ft] Compiling freetype 2.3.9 with bcc fails
Date: Tue, 14 Jul 2009 14:02:40 +0200

Dear mpsuzuki
 
SUCCESS !
 
I applied this (and the other) patch to bcc.mk and bcc-dev.mk.
I ran mingw32-make again from scratch and it now builds without errors !
 
Thank you very much.
Regards,
Mirco

2009/7/14 <address@hidden>
Dear Mirco,

Great Thank you for finding the option to fix the issue.
If you apply this patch (after my previous patch posted
5 hours before), mingw32-make will add the option /P128
automatically. Please try.

Regards,
mpsuzuki

diff --git a/builds/compiler/bcc-dev.mk b/builds/compiler/bcc-dev.mk
index ba1a88a..5b2d7d4 100644
--- a/builds/compiler/bcc-dev.mk
+++ b/builds/compiler/bcc-dev.mk
@@ -72,7 +73,7 @@ ANSIFLAGS := -A
 # Library linking
 #
 CLEAN_LIBRARY ?= $(DELETE) $(subst /,$(SEP),$(PROJECT_LIBRARY))
-LINK_LIBRARY   = tlib /u $(subst /,$(COMPILER_SEP),$@ $(OBJECTS_LIST:%=+%))
+LINK_LIBRARY   = tlib /u /P128 $(subst /,$(COMPILER_SEP),$@ $(OBJECTS_LIST:%=+%))


 # EOF
diff --git a/builds/compiler/bcc.mk b/builds/compiler/bcc.mk
index 509cb72..54c9e83 100644
--- a/builds/compiler/bcc.mk
+++ b/builds/compiler/bcc.mk
@@ -72,7 +73,7 @@ ANSIFLAGS := -A
 # Library linking
 #
 CLEAN_LIBRARY ?= $(DELETE) $(subst /,$(SEP),$(PROJECT_LIBRARY))
-LINK_LIBRARY   = tlib /u $(subst /,$(COMPILER_SEP),$@ $(OBJECTS_LIST:%=+%))
+LINK_LIBRARY   = tlib /u /P128 $(subst /,$(COMPILER_SEP),$@ $(OBJECTS_LIST:%=+%))


 # EOF

On Tue, 14 Jul 2009 13:21:53 +0200
Mirco Babin <address@hidden> wrote:
>I tried the TLIB /u command manually and it gives the same error.
>I searched the internet about TLIB and with the /P option you can provide
>the page size.
>(see text below from http://cs.nyu.edu/~yap/classes/machineOrg/info/tlib.htm
>)
>
>I tried TLIB /u /P128 ... and this works without warnings. (this would allow
>for a maximum of 8 MB .lib file)
>
>Setting the page size: The /P option
>- - - - - - - - - - - - - - - - -  -
>Every DOS library file contains a dictionary that appears at the end
>of the .LIB file, following all of the object modules. For each module
>in the library, the dictionary contains a 16-bit address of that
>particular module within the .LIB file; this address is given in terms
>of the library page size (it defaults to 16 bytes).
>
>The library page size determines the maximum combined size of all
>object modules in the library, which cannot exceed 65,536 pages. The
>default (and minimum) page size of 16 bytes allows a library of about
>1 MB in size. To create a larger library, use the /P option to
>increase the page size. The page size must be a power of 2, and it
>cannot be smaller than 16 or larger than 32,768.
>
>All modules in the library must start on a page boundary. For example,
>in a library with a page size of 32 (the lowest possible page size
>higher than the default 16), an average of 16 bytes is lost per object
>module in padding. If you attempt to create a library that is too
>large for the given page size, TLIB issues an error message and
>suggests that you use /P with the next available higher page size.
>
>Regards,
>Mirco
>2009/7/14 Mirco Babin <address@hidden>
>
>> Hello mpsuzuki,
>>
>> I started from scratch, unzipping freetype-2.3.9.tar.gz.
>> I applied your patches to bcc.mk, bcc-dev.mk, win32-def.mk and exports.mk
>>
>> Then I ran mingw32-make.
>> The apinames.exe is now build ok.
>> But building the library fails with the continuating error "Warning:
>> invalid page size value ignored". This warning is repeating endlessly and I
>> have to abort the make.
>>
>> I have included the output of the mingw32-make.exe.
>>
>> Regards,
>> Mirco
>>
>>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]