This looks like a real error to me !!!

You can cast a short to an int, an the conversion in ok, but to cast a 
short* to an int* will bring in 2 extra bytes and an INVALID POINTER...

Alain

Aitor SantamarĂ­a escreveu:
> Sending over here too, as this list is more popular, and in case
> someone is not reading there and can contribute.
> 
> Aitor
> 
> 
> ---------- Forwarded message ----------
> From: Hans <han...@ht-lab.com>
> Date: 2009/2/15
> Subject: Re: [Freedos-kernel] Error compiling ...
> To: freedos-ker...@lists.sourceforge.net
> 
> 
> The easy fix to this is use Watcom 1.2.
> 
> Hans
> www.ht-lab.com
> 
> 
> ----- Original Message -----
> From: George Petculescu
> To: freedos-ker...@lists.sourceforge.net
> Sent: Sunday, February 15, 2009 4:07 PM
> Subject: [Freedos-kernel] Error compiling ...
> Hello,
> 
> I have a problem while compiling FreeDOS Kernel.
> I use latest version of Open Watcom and NASM 0.98. I recive the next error:
> ....
> Process BOOT +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> 
> Process SYS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> wcc -Ic:\watcom\H -I..\hdr -DFORSYS -DWITHFAT32 -zq-zp1-os-s-we-e3-wx sys.c
> sys.c(1050): Warning! E1176: Parameter 2, pointer type mismatch
> sys.c(1050): Note! I2003: source conversion type is 'unsigned short *'
> sys.c(1050): Note! I2004: target conversion type is 'unsigned int *'
> sys.c(1050): Note! I2002: '_dos_allocmem' defined in: c:\watcom\H\dos.h(161)
> sys.c(1079): Warning! E1176: Parameter 2, pointer type mismatch
> sys.c(1079): Note! I2003: source conversion type is 'unsigned short *'
> sys.c(1079): Note! I2004: target conversion type is 'unsigned int *'
> sys.c(1079): Warning! E1176: Parameter 3, pointer type mismatch
> sys.c(1079): Note! I2003: source conversion type is 'unsigned short *'
> sys.c(1079): Note! I2004: target conversion type is 'unsigned int *'
> sys.c(1079): Note! I2002: '_dos_getftime' defined in: c:\watcom\H\dos.h(188)
> Error(E42): Last command making (sys.obj) returned a bad status
> Error(E02): Make execution terminated
> Compilation was aborted!
> 
> What is the problem ? Should I wrong something in config.bat file ?
> Thanks,
> George.
> 
> ________________________________
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> 
> ________________________________
> 
> _______________________________________________
> Freedos-kernel mailing list
> freedos-ker...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-kernel
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Freedos-kernel mailing list
> freedos-ker...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-kernel
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel
> 
> 

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to