Re: [Harbour] Error with 14333

2010-04-16 Thread Rossine

Hi,

Work´s fine now :)

Many thank´s,

Rossine.

-- 
View this message in context: 
http://old.nabble.com/Error-with-14333-tp28244200p28266074.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


Re: [Harbour] Error with 14333

2010-04-15 Thread Przemysław Czerpak
On Wed, 14 Apr 2010, Szak�ts Viktor wrote:

Hi,

 I hope someone can fix these. These were so far 
 hidden because of turned off warnings for exotic 
 compilers like bcc/pocc/xcc when building 
 external libs. Now they are visible.

This bug exists with _ALL_ C compilers we are using.
Just simply your recent modifications enabled warnings only
for few compilers but many others like all GCC based ones
still does not report any warnings so such bugs are invisible.

Missing prototypes means that C compiler may incorrectly create
function call frame so final code will GPF or fail in other way
depending on used ABI and type of parameters.

 If the problems won't be resolved, I will simply 
 disable failing libs for these targets.

To fix such problems it's necessary to know about them
and this library is yet another example that disabled
warnings may cause that we are creating wrong binaries
without any knowledge about it.
The problem is that nearly all of these libraries uses
autoconf to generate configuration header files but we
not and we are using in all builds only some statically
defined for chosen platform files without real system
dependent configuration so such definition can be wrong
and broken code is generated. With fully disabled warnings
we do not know about it.
In this particular case (JPEG library) HAVE_PROTOTYPES
definition is missing and it's the reason of above errors
in _all_ builds (we do not support any old C compiler which
does not support prototypes).

best regards,
Przemek
___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


Re: [Harbour] Error with 14333

2010-04-15 Thread Viktor Szakáts
 I hope someone can fix these. These were so far 
 hidden because of turned off warnings for exotic 
 compilers like bcc/pocc/xcc when building 
 external libs. Now they are visible.
 
 This bug exists with _ALL_ C compilers we are using.
 Just simply your recent modifications enabled warnings only
 for few compilers but many others like all GCC based ones
 still does not report any warnings so such bugs are invisible.

I reached the point where I can't do more with the 
issue. If a warning is not reported in default warning 
mode I have to assume it's not grave, or the compiler 
is just plain careless, but anyhow it's not something 
I'm willing to tweak forever.

 Missing prototypes means that C compiler may incorrectly create
 function call frame so final code will GPF or fail in other way
 depending on used ABI and type of parameters.
 
 If the problems won't be resolved, I will simply 
 disable failing libs for these targets.
 
 To fix such problems it's necessary to know about them
 and this library is yet another example that disabled
 warnings may cause that we are creating wrong binaries
 without any knowledge about it.

There is no _disabled_ warnings in Harbour now. There 
are two modes: 1) default warning level 2) Harbour high 
level warnings.

If someone wishes to deal with the issue, one can up 
the default warning level explicitly to some higher one, 
but in this case we can easily come back to the initial 
issue with lots of required local patches to external code, 
which in turn nobody likes to create in the first place 
(besides you), nobody manages throughout updates (besides 
you and me), nobody submits upstream (besides me), and 
which I need maintain .dif files for (BTW I'm stopping 
doing that from today).

 The problem is that nearly all of these libraries uses
 autoconf to generate configuration header files but we
 not and we are using in all builds only some statically
 defined for chosen platform files without real system
 dependent configuration so such definition can be wrong
 and broken code is generated. With fully disabled warnings
 we do not know about it.

Harbour doesn't explicitly select fully disabled 
warnings. (if it still does because I missed some, 
pls report it)

To repeat, if someone would like to deal with it, 
it's enough to start upping the default level 
explicitly to have a good balance between catching 
real problems and leaving uninteresting warnings 
turned off. It's not solution however to use our 
highest level, because it generates so much warnings, 
that we won't readily notice the important ones 
among them, and it would be just unmaintainable to 
have huge local patches to reach our own level of 
code quality.

 In this particular case (JPEG library) HAVE_PROTOTYPES
 definition is missing and it's the reason of above errors
 in _all_ builds (we do not support any old C compiler which
 does not support prototypes).

Thank you.

Brgds,
Viktor

___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


Re: [Harbour] Error with 14333

2010-04-14 Thread Jacek Kubica
Hello Rossine,

Wednesday, April 14, 2010, 5:27:42 PM, you wrote:

R Hello,
R I see this error with last version:
R [ERROR]
R Error E2228 ../../../jdmarker.c 946: Too many error or warning messages in
R function next_marker
R *** 1 errors in Compile ***
R mingw32-make[3]: *** [jdmarker.obj] Error 1
R mingw32-make[2]: *** [descend] Error 2
R mingw32-make[1]: *** [jpeg.inst] Error 2
R mingw32-make: *** [external.inst] Error 2

R [/ERROR]
R I use BCCC 551.
R Regards,
R Rossine.


I see it too ;-(  (BCC5.5/Vista)

! Building Harbour 2.1.0dev from source - http://www.harbour-project.org
! MAKE: win-make 3.81 sh.exe   
! HB_INSTALL_PREFIX: C:\harbour
! HB_HOST_PLAT: win (x86)  HB_SHELL: nt
! HB_PLATFORM: win (x86) (autodetected)
! HB_COMPILER: bcc 
! Component: 'zlib' found in c:/Harbour/external/zlib (local)
! Component: 'pcre' found in c:/Harbour/external/pcre (local)
! Component: 'openssl' not found. Configure with HB_WITH_OPENSSL.
! Component: 'gpm' not supported on win platform
! Component: 'slang' not found. Configure with HB_WITH_SLANG.
! Component: 'curses' not found. Configure with HB_WITH_CURSES.
! Component: 'x11' not found. Configure with HB_WITH_X11.
! Component: 'wattcp/watt-32' not supported on win platform
win-make[2]: Nothing to be done for `all'.
win-make[1]: Nothing to be done for `all'.
win-make[3]: `../../../../../lib/win/bcc/sqlite3.lib' is up to date.
win-make[3]: `../../../../../lib/win/bcc/bz2.lib' is up to date.
win-make[3]: `../../../../../lib/win/bcc/libhpdf.lib' is up to date.
win-make[3]: `../../../../../lib/win/bcc/libpng.lib' is up to date.
bcc32.exe   -I. -I../../../../../include -q -tWM -CP437 -d -6 -O2 -OS -Ov -Oi 
-Oc -DHB_LEGACY_TYPES_OFF  -DHAVE_STDLIB_H -IC:\Borland\BCC55\bin\..\Include 
-DUNICODE  -ojdmarker.obj -c ../../../jdmarker.c
../../../jdmarker.c:
Warning W8064 ../../../jdmarker.c 203: Call to function with no prototype in 
function get_soi
Warning W8064 ../../../jdmarker.c 206: Call to function with no prototype in 
function get_soi
Warning W8064 ../../../jdmarker.c 251: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 251: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 253: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 254: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 254: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 255: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 255: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 256: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 262: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 265: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 272: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 275: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 280: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 285: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 286: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 289: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 293: Call to function with no prototype in 
function get_sof
Warning W8064 ../../../jdmarker.c 313: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 315: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 315: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 317: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 319: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 324: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 331: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 332: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 340: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 349: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 353: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 355: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 357: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 362: Call to function with no prototype in 
function get_sos
Warning W8064 ../../../jdmarker.c 385: Call