Rugxulo wrote:
>> Since there is no binary included, but it relies on the GNU AutoTools
>> to build (presuming a native POSIX toolset and Sh that is not fully
>> working together on native DOS with DJGPP), can you please compile
>> this for us? (I think even GNU Make used to come with a .BAT to
>> bootstrap it.)
>>
[..]
>>
>> At risk of stating the obvious, a simple .BAT will be slower for
>> rebuilds, but anything is better than a broken, unportable makefile.

Wolf wrote:
>
> I managed to build this with a combination of running configure on linux like 
> so:
>
> ./configure --prefix=/gmake CC=gcc CPP=cpp CXX=cxx DEPDIR=deps.tmp
>
> and then using DJGPP and a Makefile I built (attached) I managed to compile 
> it with
> make -f makefile.dos make
>
> However the resulting make.exe program simply aborts to various errors like
>
> String too long
> Abort!
>
> And then dumps a stack trace which is entirely unhelpful.
>
> I didn't pursue it further than that since it can't even handle this simple 
> makefile I created :/
> So I can't write a make file which would make this make 0.0 happy. Some 
> example files would be nice and maybe more helpful error messages.
> I tried looking at the code but gave up very quickly as it is basically 
> completely undocumented and uses a tonne of macros to do some macro magic.
>

I tried to compile as-is on FreeDOS, but since I didn't start with the
'configure' step, it fails to compile. But I figured I'd try it
anyway. I started with:

DIR /b/l *.c > BUILD.BAT


And then I edited this BUILD.BAT file:

WCC -q defines.c
WCC -q dynstr.c
WCC -q getopt.c
WCC -q getopt~1.c
WCC -q make.c
WCC -q malloc.c
WCC -q realloc.c
WCC -q utime.c



Adding some PAUSE statements between each WCC command so I could
copy/paste the compile messages from my QEMU session, I get this
output:

D:\SRC\MAKE-0.0>WCC -q defines.c
defines.c(25): Error! E1055: Unable to open 'config.h'

D:\SRC\MAKE-0.0>WCC -q dynstr.c
dynstr.c(12): Error! E1055: Unable to open 'config.h'
dynstr.c(71): Warning! W137: Extern function 'memchr' redeclared as static
dynstr.c(71): Note! I2002: 'memchr' defined in: C:\DEVEL\WATCOMC\H\string.h(144)

dynstr.c(159): Warning! W137: Extern function 'memmove' redeclared as static
dynstr.c(159): Note! I2002: 'memmove' defined in: C:\DEVEL\WATCOMC\H\string.h(14
7)
dynstr.c(243): Warning! W137: Extern function 'memset' redeclared as static
dynstr.c(243): Note! I2002: 'memset' defined in: C:\DEVEL\WATCOMC\H\string.h(153
)

D:\SRC\MAKE-0.0>WCC -q getopt.c

[no messages]

D:\SRC\MAKE-0.0>WCC -q getopt~1.c

[no messages]

D:\SRC\MAKE-0.0>WCC -q make.c
[.. couldn't copy/paste all of the output from QEMU..]
make.c(606): Error! E1063: Missing operand
make.c(606): Warning! W111: Meaningless use of an expression
make.c(606): Error! E1009: Expecting ';' but found 'int'
make.c(606): Error! E1063: Missing operand
make.c(606): Error! E1009: Expecting ';' but found 'int'
make.c(606): Error! E1063: Missing operand
make.c(606): Warning! W111: Meaningless use of an expression
make.c(606): Error! E1009: Expecting ')' but found 'int'
make.c(606): Warning! W111: Meaningless use of an expression
make.c(606): Error! E1009: Expecting ';' but found ')'
make.c(609): Error! E1031: Name 'st_mtime' not found in struct/union stat
make.c(609): Error! E1031: Name 'st_mtime' not found in struct/union stat
make.c(589): Error! E1044: Variable 'target_stat' has incomplete type
make.c(589): Error! E1044: Variable 'dep_stat' has incomplete type
make.c(1407): Warning! W131: No prototype found for function 'fork'
make.c(1410): Warning! W131: No prototype found for function 'execlp'
make.c(1417): Warning! W131: No prototype found for function 'waitpid'
make.c(1418): Warning! W131: No prototype found for function 'WIFEXITED'
make.c(1418): Warning! W131: No prototype found for function 'WEXITSTATUS'
make.c(1632): Warning! W131: No prototype found for function 'strtok'
make.c(1632): Warning! W102: Type mismatch (warning)
make.c(1632): Note! I2003: source conversion type is 'int '
make.c(1632): Note! I2004: target conversion type is 'char *'

D:\SRC\MAKE-0.0>WCC -q malloc.c

[no messages]

D:\SRC\MAKE-0.0>WCC -q realloc.c

[no messages]

D:\SRC\MAKE-0.0>WCC -q utime.c
utime.c(48): Error! E1031: Name 'ft_tsec' not found in struct/union ftime
utime.c(49): Error! E1031: Name 'ft_min' not found in struct/union ftime
utime.c(50): Error! E1031: Name 'ft_hour' not found in struct/union ftime
utime.c(51): Error! E1031: Name 'ft_day' not found in struct/union ftime
utime.c(52): Error! E1031: Name 'ft_month' not found in struct/union ftime
utime.c(53): Error! E1031: Name 'ft_year' not found in struct/union ftime
utime.c(56): Warning! W131: No prototype found for function 'setftime'
utime.c(25): Error! E1044: Variable 'ftime' has incomplete type


_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to