Re: can't install xfig 3.2.4
- From: Paminu <sdf@xxxxxxx>
- Date: Sat, 31 Dec 2005 01:19:54 +0100
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$
.
- Follow-Ups:
- Re: can't install xfig 3.2.4
- From: Paminu
- Re: can't install xfig 3.2.4
- References:
- can't install xfig 3.2.4
- From: Paminu
- Re: can't install xfig 3.2.4
- From: moma
- Re: can't install xfig 3.2.4
- From: Paminu
- Re: can't install xfig 3.2.4
- From: moma
- can't install xfig 3.2.4
- Prev by Date: A new reader? Welcome to alt.os.linux, read this first if you're new here (FAQ)
- Next by Date: Re: can't install xfig 3.2.4
- Previous by thread: Re: can't install xfig 3.2.4
- Next by thread: Re: can't install xfig 3.2.4
- Index(es):
Relevant Pages
|