Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling impossible #1936

Closed
michaelrsweet opened this issue Aug 27, 2006 · 4 comments
Closed

Compiling impossible #1936

michaelrsweet opened this issue Aug 27, 2006 · 4 comments

Comments

@michaelrsweet
Copy link
Collaborator

Version: 8.15-current
CUPS.org User: tombork

Compiling 8.15.2 (pre3 from trunk) from trunk is not possible.

Configured with:

export CFLAGS='-O2 -march=i486 -fomit-frame-pointer'
./configure
--target=i486-pc-linux-gnu
--prefix=/usr/local
--enable-compile-inits
--with-fontpath=/usr/local/share/ghostscript/fonts
--with-ijs
--with-gimp-print
--without-omni
--with-libiconv=gnu
--without-x

make ends with:

./obj/echogs -a ./obj/devs.tr - ./obj/libcore
gcc -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wcast-qual -Wwrite-strings -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -O2 -march=i486 -fomit-frame-pointer -I./src -o ./obj/genarch ./src/genarch.c
./src/genarch.c:33:26: gsfix-setjmp.h: No such file or directory
./src/genarch.c: In function main': ./src/genarch.c:118: error: syntax error before "jmp_buf" ./src/genarch.c:118: warning: no semicolon at end of struct or union ./src/genarch.c:89: warning: unused variablefname'
./src/genarch.c:90: warning: unused variable one' ./src/genarch.c:94: warning: unused variabless'
./src/genarch.c:98: warning: unused variable si' ./src/genarch.c:102: warning: unused variablesl'
./src/genarch.c:106: warning: unused variable sp' ./src/genarch.c:110: warning: unused variablesf'
./src/genarch.c:114: warning: unused variable sd' ./src/genarch.c: At top level: ./src/genarch.c:119: warning: type defaults toint' in declaration of sj' ./src/genarch.c:119: warning: data definition has no type or storage class ./src/genarch.c:121: error: initializer element is not constant ./src/genarch.c:121: error: initializer element is not constant ./src/genarch.c:124: error: initializer element is not constant ./src/genarch.c:124: error: initializer element is not constant ./src/genarch.c:137: error:fname' undeclared here (not in a function)
./src/genarch.c:137: error: initializer element is not constant
./src/genarch.c:139: error: syntax error before "if"
./src/genarch.c:143: error: syntax error before string constant
./src/genarch.c:143: warning: type defaults to int' in declaration offprintf'
./src/genarch.c:143: warning: function declaration isn't a prototype
./src/genarch.c:143: error: conflicting types for 'fprintf'
./src/genarch.c:143: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
/usr/include/stdio.h:274: error: previous declaration of 'fprintf' was here
./src/genarch.c:143: error: conflicting types for 'fprintf'
./src/genarch.c:143: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
/usr/include/stdio.h:274: error: previous declaration of 'fprintf' was here
./src/genarch.c:143: warning: data definition has no type or storage class
./src/genarch.c:144: error: syntax error before string constant
./src/genarch.c:144: warning: type defaults to int' in declaration offprintf'
./src/genarch.c:144: warning: function declaration isn't a prototype
./src/genarch.c:144: warning: data definition has no type or storage class
./src/genarch.c:148: error: syntax error before '.' token
./src/genarch.c:149: warning: type defaults to int' in declaration offloats_are_IEEE'
./src/genarch.c:152: error: initializer element is not constant
./src/genarch.c:152: warning: data definition has no type or storage class
./src/genarch.c:154: error: syntax error before string constant
./src/genarch.c:154: warning: type defaults to int' in declaration ofsection'
./src/genarch.c:154: warning: function declaration isn't a prototype
./src/genarch.c:154: error: conflicting types for 'section'
./src/genarch.c:40: error: previous definition of 'section' was here
./src/genarch.c:154: warning: data definition has no type or storage class
./src/genarch.c:157: error: syntax error before string constant
./src/genarch.c:158: error: syntax error before string constant
./src/genarch.c:159: error: syntax error before string constant
./src/genarch.c:160: error: syntax error before string constant
./src/genarch.c:161: error: syntax error before string constant
./src/genarch.c:162: error: syntax error before string constant
./src/genarch.c:163: error: syntax error before string constant
./src/genarch.c:166: error: syntax error before string constant
./src/genarch.c:166: warning: type defaults to int' in declaration ofsection'
./src/genarch.c:166: warning: function declaration isn't a prototype
./src/genarch.c:166: warning: data definition has no type or storage class
./src/genarch.c:168: error: syntax error before string constant
./src/genarch.c:169: error: syntax error before string constant
./src/genarch.c:170: error: syntax error before string constant
./src/genarch.c:171: error: syntax error before string constant
./src/genarch.c:172: error: syntax error before string constant
./src/genarch.c:173: error: syntax error before string constant
./src/genarch.c:174: error: syntax error before string constant
./src/genarch.c:177: error: syntax error before string constant
./src/genarch.c:177: warning: type defaults to int' in declaration ofdefine_int'
./src/genarch.c:177: warning: function declaration isn't a prototype
./src/genarch.c:177: error: conflicting types for 'define_int'
./src/genarch.c:63: error: previous definition of 'define_int' was here
./src/genarch.c:177: warning: data definition has no type or storage class
./src/genarch.c:186: error: syntax error before string constant
./src/genarch.c:189: error: syntax error before string constant
./src/genarch.c:189: warning: type defaults to int' in declaration ofsection'
./src/genarch.c:189: warning: function declaration isn't a prototype
./src/genarch.c:189: warning: data definition has no type or storage class
./src/genarch.c:203: error: syntax error before string constant
./src/genarch.c:203: warning: type defaults to int' in declaration offprintf'
./src/genarch.c:203: warning: function declaration isn't a prototype
./src/genarch.c:203: warning: data definition has no type or storage class
./src/genarch.c:203: error: syntax error before "sizeof"
./src/genarch.c:203: error: syntax error before string constant
./src/genarch.c:203: warning: type defaults to int' in declaration offprintf'
./src/genarch.c:203: warning: function declaration isn't a prototype
./src/genarch.c:203: warning: data definition has no type or storage class
./src/genarch.c:204: error: syntax error before string constant
./src/genarch.c:204: warning: type defaults to int' in declaration offprintf'
./src/genarch.c:204: warning: function declaration isn't a prototype
./src/genarch.c:204: warning: data definition has no type or storage class
./src/genarch.c:204: error: syntax error before "sizeof"
./src/genarch.c:204: error: syntax error before string constant
./src/genarch.c:204: warning: type defaults to int' in declaration offprintf'
./src/genarch.c:204: warning: function declaration isn't a prototype
./src/genarch.c:204: warning: data definition has no type or storage class
./src/genarch.c:209: error: syntax error before string constant
./src/genarch.c:209: warning: type defaults to int' in declaration ofdefine'
./src/genarch.c:209: warning: function declaration isn't a prototype
./src/genarch.c:209: error: conflicting types for 'define'
./src/genarch.c:57: error: previous definition of 'define' was here
./src/genarch.c:209: warning: data definition has no type or storage class
./src/genarch.c:210: error: syntax error before string constant
./src/genarch.c:210: warning: type defaults to int' in declaration offprintf'
./src/genarch.c:210: warning: function declaration isn't a prototype
./src/genarch.c:210: warning: data definition has no type or storage class
./src/genarch.c:211: error: syntax error before string constant
./src/genarch.c:211: warning: type defaults to int' in declaration ofdefine'
./src/genarch.c:211: warning: function declaration isn't a prototype
./src/genarch.c:211: warning: data definition has no type or storage class
./src/genarch.c:212: error: syntax error before string constant
./src/genarch.c:212: warning: type defaults to int' in declaration offprintf'
./src/genarch.c:212: warning: function declaration isn't a prototype
./src/genarch.c:212: warning: data definition has no type or storage class
./src/genarch.c:215: error: syntax error before string constant
./src/genarch.c:215: warning: type defaults to int' in declaration ofsection'
./src/genarch.c:215: warning: function declaration isn't a prototype
./src/genarch.c:215: warning: data definition has no type or storage class
./src/genarch.c:235: error: syntax error before "while"
./src/genarch.c:237: warning: type defaults to int' in declaration oft_eps'
./src/genarch.c:237: error: conflicting types for 't_eps'
./src/genarch.c:228: error: previous declaration of 't_eps' was here
./src/genarch.c:237: error: initializer element is not constant
./src/genarch.c:237: warning: data definition has no type or storage class
./src/genarch.c:238: error: syntax error before "while"
./src/genarch.c:256: error: syntax error before string constant
./src/genarch.c:256: warning: type defaults to int' in declaration ofdefine_int'
./src/genarch.c:256: warning: function declaration isn't a prototype
./src/genarch.c:256: warning: data definition has no type or storage class
./src/genarch.c:274: error: syntax error before string constant
./src/genarch.c:274: warning: type defaults to int' in declaration ofdefine_int'
./src/genarch.c:274: warning: function declaration isn't a prototype
./src/genarch.c:274: warning: data definition has no type or storage class
./src/genarch.c:277: error: syntax error before string constant
./src/genarch.c:277: warning: type defaults to int' in declaration ofsection'
./src/genarch.c:277: warning: function declaration isn't a prototype
./src/genarch.c:277: warning: data definition has no type or storage class
./src/genarch.c:279: error: syntax error before string constant
./src/genarch.c:282: error: syntax error before string constant
./src/genarch.c:283: error: syntax error before string constant
./src/genarch.c:291: warning: type defaults to int' in declaration ofars'
./src/genarch.c:293: error: initializer element is not constant
./src/genarch.c:293: warning: data definition has no type or storage class
./src/genarch.c:294: error: syntax error before string constant
./src/genarch.c:294: warning: type defaults to int' in declaration ofdefine_int'
./src/genarch.c:294: warning: function declaration isn't a prototype
./src/genarch.c:294: warning: data definition has no type or storage class
./src/genarch.c:299: error: syntax error before string constant
./src/genarch.c:299: warning: type defaults to int' in declaration ofdefine_int'
./src/genarch.c:299: warning: function declaration isn't a prototype
./src/genarch.c:299: warning: data definition has no type or storage class
./src/genarch.c:304: error: syntax error before string constant
./src/genarch.c:304: warning: type defaults to int' in declaration ofdefine_int'
./src/genarch.c:304: warning: function declaration isn't a prototype
./src/genarch.c:304: warning: data definition has no type or storage class
./src/genarch.c:308: warning: type defaults to int' in declaration offclose'
./src/genarch.c:308: warning: parameter names (without types) in function declaration
./src/genarch.c:308: warning: data definition has no type or storage class
./src/genarch.c:309: error: syntax error before "return"
./src/genarch.c:40: warning: 'section' defined but not used
./src/genarch.c:46: warning: 'time_clear' defined but not used
./src/genarch.c:57: warning: 'define' defined but not used
./src/genarch.c:63: warning: 'define_int' defined but not used
./src/genarch.c:69: warning: 'print_ffs' defined but not used
./src/genarch.c:78: warning: 'ilog2' defined but not used
make: *** [obj/genarch] Error 1

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

What operating system?

What compiler?

Have you tried updating to the latest sources? Current trunk does not use gsfix-stdjmp.h...

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

(Fixing software version to match report...)

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: tombork

What operating system?

www.eisfair.org

Linux deveis 2.4.26-1 #15 Sun Oct 24 22:54:01 CEST 2004 i686 pentium4 i386 GNU/Linux

What compiler?

deveis 1.3.1 # gcc --version
gcc (GCC) 3.4.5

Have you tried updating to the latest sources? Current trunk does not use
gsfix-stdjmp.h...

With revision 182:

gcc -DHAVE_MKSTEMP -DHAVE_HYPOT -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wcast-qual -Wwrite-strings -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -O2 -march=i486 -fomit-frame-pointer -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_ST_BLOCKS=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_LONG_INT=4 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_LIBM=1 -DUSE_LIBICONV_GNU=1 -DHAVE_LIBDL=1 -DHAVE_JPEGLIB_H=1 -DDONT_HAVE_JMEMSYS_H=1 -DHAVE_ZLIB_H=1 -DHAVE_PNG_H=1 -DHAVE_FREETYPE=1 -DX_DISPLAY_MISSING=1 -DHAVE_MKSTEMP=1 -DHAVE_HYPOT=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_BZERO=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MKFIFO=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1 -DHAVE_RINT=1 -DHAVE_SETENV=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -I./obj -I./src -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wcast-qual -Wwrite-strings -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -O2 -march=i486 -fomit-frame-pointer -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_ST_BLOCKS=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_UNSIGNED_LONG_INT=4 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DHAVE_LIBM=1 -DUSE_LIBICONV_GNU=1 -DHAVE_LIBDL=1 -DHAVE_JPEGLIB_H=1 -DDONT_HAVE_JMEMSYS_H=1 -DHAVE_ZLIB_H=1 -DHAVE_PNG_H=1 -DHAVE_FREETYPE=1 -DX_DISPLAY_MISSING=1 -DHAVE_MKSTEMP=1 -DHAVE_HYPOT=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DRETSIGTYPE=void -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_BZERO=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MKFIFO=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1 -DHAVE_RINT=1 -DHAVE_SETENV=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -o ./obj/sdctc.o -c ./src/sdctc.c
In file included from ./src/sdctc.c:24:
./src/sdct.h:24:45: gsfix-setjmp.h: No such file or directory
In file included from ./src/sdctc.c:24:
./src/sdct.h:61: error: syntax error before "jmp_buf"
./src/sdct.h:61: warning: no semicolon at end of struct or union
./src/sdct.h:62: error: syntax error before '}' token
./src/sdct.h:62: warning: type defaults to int' in declaration ofjpeg_stream_data'
./src/sdct.h:62: warning: data definition has no type or storage class
./src/sdct.h:73: error: syntax error before "jmp_buf"
./src/sdct.h:73: warning: no semicolon at end of struct or union
./src/sdct.h:79: error: syntax error before '}' token
./src/sdct.h:79: warning: type defaults to int' in declaration ofjpeg_compress_data'
./src/sdct.h:79: warning: data definition has no type or storage class
./src/sdct.h:87: error: syntax error before "jmp_buf"
./src/sdct.h:87: warning: no semicolon at end of struct or union
./src/sdct.h:97: error: syntax error before '}' token
./src/sdct.h:97: warning: type defaults to int' in declaration ofjpeg_decompress_data'
./src/sdct.h:97: warning: data definition has no type or storage class
./src/sdct.h:117: error: syntax error before "jpeg_stream_data"
./src/sdct.h:117: warning: no semicolon at end of struct or union
./src/sdct.h:117: warning: no semicolon at end of struct or union
./src/sdct.h:118: warning: type defaults to int' in declaration ofcompress'
./src/sdct.h:118: warning: data definition has no type or storage class
./src/sdct.h:119: error: syntax error before '' token
./src/sdct.h:119: warning: type defaults to int' in declaration ofdecompress'
./src/sdct.h:119: warning: data definition has no type or storage class
./src/sdct.h:120: error: syntax error before '}' token
./src/sdct.h:120: warning: type defaults to int' in declaration ofdata'
./src/sdct.h:120: warning: data definition has no type or storage class
./src/sdct.h:127: error: syntax error before '}' token
./src/sdct.h:127: warning: type defaults to int' in declaration ofstream_DCT_state'
./src/sdct.h:127: warning: data definition has no type or storage class
./src/sdctc.c:26: error: syntax error before ')' token
./src/sdctc.c:26: error: syntax error before ')' token
./src/sdctc.c:26: error: initializer element is not constant
./src/sdctc.c:26: error: (near initialization for dct_enum_ptrs[0].offset') ./src/sdctc.c:26: error: initializer element is not constant ./src/sdctc.c:26: error: (near initialization fordct_enum_ptrs[0]')
./src/sdctc.c:26: error: syntax error before ')' token
./src/sdctc.c:26: error: syntax error before ')' token
./src/sdctc.c:26: error: initializer element is not constant
./src/sdctc.c:26: error: (near initialization for dct_enum_ptrs[1].offset') ./src/sdctc.c:26: error: initializer element is not constant ./src/sdctc.c:26: error: (near initialization fordct_enum_ptrs[1]')
./src/sdctc.c: In function s_DCT_set_defaults': ./src/sdctc.c:32: error: syntax error before "const" ./src/sdctc.c:34: error:ss' undeclared (first use in this function)
./src/sdctc.c:34: error: (Each undeclared identifier is reported only once
./src/sdctc.c:34: error: for each function it appears in.)
make: *
* [obj/sdctc.o] Error 1

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: till.kamppeter

Fixed in subversion repository, rev 183.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant