Re: can't install xfig 3.2.4



moma wrote:

>> u_fonts.c
>> u_fonts.c:24: error: conflicting types for 'x_fontinfo'
>> u_fonts.h:35: error: previous declaration of 'x_fontinfo' was here
>> u_fonts.c:69: error: conflicting types for 'x_backup_fontinfo'
>> u_fonts.h:36: error: previous declaration of 'x_backup_fontinfo' was here
>> u_fonts.c:109: error: conflicting types for 'ps_fontinfo'
>> u_fonts.h:37: error: previous declaration of 'ps_fontinfo' was here
>> u_fonts.c:150: error: conflicting types for 'latex_fontinfo'
>> u_fonts.h:38: error: previous declaration of 'latex_fontinfo' was here
>> make: *** [u_fonts.o] Error 1
>> mos@ubuntu:~/apps/xfig.3.2.4$
>>
>
> Yes I agree. The changes will not help much and it will fail. Sorry.
>
> ROLLBACK the changes in u_fonts.h and w_i18*
>
> And move the external definitions at bottom of the u_fonts.h like this.
> (trust me ;)
>
> .....
> .....
> int x_fontnum(); <-- between this
>
> extern struct _xfstruct x_fontinfo[], x_backup_fontinfo[];
> extern struct _fstruct ps_fontinfo[];
> extern struct _fstruct latex_fontinfo[];
>
>
> #endif /* U_FONTS_H */ <-- and this
> ----------------------
>
> and run
> $ make clean
> $ make


ok did what you instructed and now I get:



D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE
-DFUNCPROTO=15 -DNARROWPROTO
-DUSE_JPEG -DI18N -DSETLOCALE -c -o f_readpng.o
f_readpng.c
f_readpng.c:23:17: error: png.h: No such file or directory
f_readpng.c: In function ‘read_png’:
f_readpng.c:33: error: ‘png_structp’ undeclared (first use in this function)
f_readpng.c:33: error: (Each undeclared identifier is reported only once
f_readpng.c:33: error: for each function it appears in.)
f_readpng.c:33: error: syntax error before ‘png_ptr’
f_readpng.c:34: error: ‘png_infop’ undeclared (first use in this function)
f_readpng.c:36: error: ‘png_uint_32’ undeclared (first use in this function)
f_readpng.c:39: error: ‘png_bytep’ undeclared (first use in this function)
f_readpng.c:39: error: ‘row_pointers’ undeclared (first use in this
function)
f_readpng.c:42: error: ‘png_colorp’ undeclared (first use in this function)
f_readpng.c:42: error: syntax error before ‘palette’
f_readpng.c:43: error: ‘png_color_16’ undeclared (first use in this
function)
f_readpng.c:51: error: ‘png_ptr’ undeclared (first use in this function)
f_readpng.c:51: error: ‘PNG_LIBPNG_VER_STRING’ undeclared (first use in this
function)
f_readpng.c:52: error: ‘png_voidp’ undeclared (first use in this function)
f_readpng.c:58: error: ‘info_ptr’ undeclared (first use in this function)
f_readpng.c:60: error: ‘png_infopp’ undeclared (first use in this function)
f_readpng.c:65: error: ‘end_info’ undeclared (first use in this function)
f_readpng.c:87: error: ‘w’ undeclared (first use in this function)
f_readpng.c:87: error: ‘h’ undeclared (first use in this function)
f_readpng.c:90: error: ‘PNG_INFO_gAMA’ undeclared (first use in this
function)
f_readpng.c:95: error: ‘PNG_INFO_bKGD’ undeclared (first use in this
function)
f_readpng.c:98: error: ‘PNG_BACKGROUND_GAMMA_FILE’ undeclared (first use in
this function)
f_readpng.c:101: error: ‘background’ undeclared (first use in this function)
f_readpng.c:105: error: ‘PNG_BACKGROUND_GAMMA_SCREEN’ undeclared (first use
in this function)
f_readpng.c:109: error: ‘PNG_COLOR_TYPE_RGB’ undeclared (first use in this
function)
f_readpng.c:109: error: ‘PNG_COLOR_TYPE_RGB_ALPHA’ undeclared (first use in
this function)
f_readpng.c:123: error: ‘PNG_COLOR_MASK_COLOR’ undeclared (first use in this
function)
f_readpng.c:124: error: ‘png_uint_16p’ undeclared (first use in this
function)
f_readpng.c:124: error: syntax error before ‘histogram’
f_readpng.c:134: error: ‘palette’ undeclared (first use in this function)
f_readpng.c:135: error: ‘histogram’ undeclared (first use in this function)
f_readpng.c:139: error: ‘PNG_COLOR_TYPE_GRAY’ undeclared (first use in this
function)
f_readpng.c:139: error: ‘PNG_COLOR_TYPE_GRAY_ALPHA’ undeclared (first use in
this function)
f_readpng.c:154: error: ‘rowsize’ undeclared (first use in this function)
f_readpng.c:160: error: syntax error before ‘)’ token
make: *** [f_readpng.o] Error 1
mos@ubuntu:~/apps/xfig.3.2.4$ make
gcc -m32 -g -O2 -fno-strict-aliasing -I/usr/include/X11
-I/usr/local/include -I/usr/X11R6/include -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE
-D_BSD_SOURCE -D_SVID_SOURCE
-DFUNCPROTO=15 -DNARROWPROTO
-DUSE_JPEG -DI18N -DSETLOCALE -c -o f_readpng.o
f_readpng.c
f_readpng.c:23:17: error: png.h: No such file or directory
f_readpng.c: In function ‘read_png’:
f_readpng.c:33: error: ‘png_structp’ undeclared (first use in this function)
f_readpng.c:33: error: (Each undeclared identifier is reported only once
f_readpng.c:33: error: for each function it appears in.)
f_readpng.c:33: error: syntax error before ‘png_ptr’
f_readpng.c:34: error: ‘png_infop’ undeclared (first use in this function)
f_readpng.c:36: error: ‘png_uint_32’ undeclared (first use in this function)
f_readpng.c:39: error: ‘png_bytep’ undeclared (first use in this function)
f_readpng.c:39: error: ‘row_pointers’ undeclared (first use in this
function)
f_readpng.c:42: error: ‘png_colorp’ undeclared (first use in this function)
f_readpng.c:42: error: syntax error before ‘palette’
f_readpng.c:43: error: ‘png_color_16’ undeclared (first use in this
function)
f_readpng.c:51: error: ‘png_ptr’ undeclared (first use in this function)
f_readpng.c:51: error: ‘PNG_LIBPNG_VER_STRING’ undeclared (first use in this
function)
f_readpng.c:52: error: ‘png_voidp’ undeclared (first use in this function)
f_readpng.c:58: error: ‘info_ptr’ undeclared (first use in this function)
f_readpng.c:60: error: ‘png_infopp’ undeclared (first use in this function)
f_readpng.c:65: error: ‘end_info’ undeclared (first use in this function)
f_readpng.c:87: error: ‘w’ undeclared (first use in this function)
f_readpng.c:87: error: ‘h’ undeclared (first use in this function)
f_readpng.c:90: error: ‘PNG_INFO_gAMA’ undeclared (first use in this
function)
f_readpng.c:95: error: ‘PNG_INFO_bKGD’ undeclared (first use in this
function)
f_readpng.c:98: error: ‘PNG_BACKGROUND_GAMMA_FILE’ undeclared (first use in
this function)
f_readpng.c:101: error: ‘background’ undeclared (first use in this function)
f_readpng.c:105: error: ‘PNG_BACKGROUND_GAMMA_SCREEN’ undeclared (first use
in this function)
f_readpng.c:109: error: ‘PNG_COLOR_TYPE_RGB’ undeclared (first use in this
function)
f_readpng.c:109: error: ‘PNG_COLOR_TYPE_RGB_ALPHA’ undeclared (first use in
this function)
f_readpng.c:123: error: ‘PNG_COLOR_MASK_COLOR’ undeclared (first use in this
function)
f_readpng.c:124: error: ‘png_uint_16p’ undeclared (first use in this
function)
f_readpng.c:124: error: syntax error before ‘histogram’
f_readpng.c:134: error: ‘palette’ undeclared (first use in this function)
f_readpng.c:135: error: ‘histogram’ undeclared (first use in this function)
f_readpng.c:139: error: ‘PNG_COLOR_TYPE_GRAY’ undeclared (first use in this
function)
f_readpng.c:139: error: ‘PNG_COLOR_TYPE_GRAY_ALPHA’ undeclared (first use in
this function)
f_readpng.c:154: error: ‘rowsize’ undeclared (first use in this function)
f_readpng.c:160: error: syntax error before ‘)’ token
make: *** [f_readpng.o] Error 1
mos@ubuntu:~/apps/xfig.3.2.4$




.



Relevant Pages

  • Re: Where does str class represent its data?
    ... The "flat is better than nested" philosophy suggests that clean should ... But this is an abuse of the str class if you intend to populate your ... UserString instead of just str. ...
    (comp.lang.python)
  • Re: Where does str class represent its data?
    ... def clean: ... I understand that I could just remove the clean function from the ... The python standard library make this easy with the UserString class and the ability to add custom methods to its subclasses: ...
    (comp.lang.python)
  • Re: Programming style...
    ... or find something other than a programming job. ... >> never fail. ... i ask because useless failure checks make the code ... A clean if else style and a proper indentation solves that. ...
    (microsoft.public.development.device.drivers)
  • Re: Evo Engine Temp Sensors - 4 in 8 years?
    ... IIRC, that will screw it up, but cleaning it fixes ... not the Throttle Position Sensor. ... The TPS's are sealed and you cain't clean shit off'a 'em. ... fail from just a plain was on a cold engine (which I HIGHLY recommend doing, ...
    (rec.motorcycles.harley)
  • missing library: intl.6
    ... Gimp and fetchmail). ... Both fail when they can't find "intl.6". ... 'make clean' for good measure) and I still can't get past it. ...
    (comp.unix.bsd.freebsd.misc)