#169 error: 'EOVERFLOW' undeclared

0.68
closed-fixed
nobody
None
5
2013-02-24
2012-03-16
Josh
No

I'm trying to compile a static mpg123 lib for MPlayer in MinGW 4.6.1 & MSYS in Windows 7 64-bit; with 1.13 and 1.14-beta1 I get this error, I am not a programmer and am unsure how to resolve it, but experience with other libs my compiler doesn't make an ASS out of U and ME like the Linux GCC/G++ compilers do, or maybe I am missing a dependency?

/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I..
/../src/libmpg123 -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_I386 -DOPT_I586 -DOPT_I586_D
ITHER -DOPT_MMX -DOPT_3DNOW -DOPT_3DNOWEXT -DOPT_SSE -DREAL_IS_FLOAT -DNOXFERMEM -DNEWOLD_WRITE_SAMP
LE -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -g -O2 -MT lfs_wrap
.lo -MD -MP -MF .deps/lfs_wrap.Tpo -c -o lfs_wrap.lo lfs_wrap.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I../../src/libmpg123 -DOPT_MULTI
-DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_I386 -DOPT_I586 -DOPT_I586_DITHER -DOPT_MMX -DOPT_3DNOW -D
OPT_3DNOWEXT -DOPT_SSE -DREAL_IS_FLOAT -DNOXFERMEM -DNEWOLD_WRITE_SAMPLE -O2 -fomit-frame-pointer -f
unroll-all-loops -finline-functions -ffast-math -g -O2 -MT lfs_wrap.lo -MD -MP -MF .deps/lfs_wrap.Tp
o -c lfs_wrap.c -o lfs_wrap.o
lfs_wrap.c: In function 'wrap_lseek':
lfs_wrap.c:543:11: error: 'EOVERFLOW' undeclared (first use in this function)
lfs_wrap.c:543:11: note: each undeclared identifier is reported only once for each function it appea
rs in
lfs_wrap.c: In function 'fallback_lseek':
lfs_wrap.c:578:11: error: 'EOVERFLOW' undeclared (first use in this function)
make[3]: *** [lfs_wrap.lo] Error 1
make[3]: Leaving directory `/home/Joshua/mpg123-1.14-beta1/src/libmpg123'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Joshua/mpg123-1.14-beta1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/Joshua/mpg123-1.14-beta1/src'
make: *** [all-recursive] Error 1

Discussion

  • Thomas Orgis
    Thomas Orgis
    2012-03-16

    I hope our Win32/win64 guys will show up here soon. The gist is that this is a simple issue about an error constant not being defined in Windows. Mingw used to define it in its headers, but doesn't anymore.

    You can do a quick fix by editing src/config.h (after running configure) and placing

    #define EOVERFLOW E2BIG

    in there. Then re-run make. Something like that will probably appear in mpg123 in future.

     
  • Thomas Orgis
    Thomas Orgis
    2012-03-16

    Damn, it seems like

    #define EOVERFLOW EFBIG

    would be more correct, but the build will go through in any case. EINVAL is also a possibility. Either we or mingw folks will settle on something; the exact value doesn't really matter much to you as user, especially since this error code won't occur in mpg123 usage from MPlayer.

     
  • Josh
    Josh
    2012-03-16

    That worked thank you. Many other libs and MPlayer itself have/had problems compiling in MinGW.
    I'm trying to get into programming, I guess this is some practice.

     
  • Thomas Orgis
    Thomas Orgis
    2012-05-01

    Poke windows folks: Do we have that handled now?

     
  • Thomas Orgis
    Thomas Orgis
    2013-02-24

    • status: open --> closed-fixed
    • milestone: --> 0.68
     
  • Thomas Orgis
    Thomas Orgis
    2013-02-24

    Should be gone now ...