Re: can't install xfig 3.2.4
- From: Paminu <asd@xxxxxxx>
- Date: Fri, 30 Dec 2005 20:07:07 +0100
moma wrote:
> Paminu wrote:
>
>> I have downloaded xfig 3.2.4.full.tar.gz from:
>> http://xfig.org/art2.html
>>
>> I have then tried to type "make" in the extracted dir but I get this
>> error: mos@ubuntu:~/apps/xfig.3.2.4.full/xfig.3.2.4$ make
> <snip>
>> In file included from d_text.c:26:
>> u_fonts.h:35: error: array type has incomplete element type
>> u_fonts.h:35: error: array type has incomplete element type
>> u_fonts.h:36: error: array type has incomplete element type
>> u_fonts.h:37: error: array type has incomplete element type
>> make: *** [d_text.o] Error 1
>> mos@ubuntu:~/apps/xfig.3.2.4.full/xfig.3.2.4$
>>
>> Any ideas on what is wrong and how to fix it??
>
> 1) Edit file "u_fonts.h".
> Line numbers 35 - 37,
>
> Replace
> extern struct _xfstruct x_fontinfo[], x_backup_fontinfo[];
> extern struct _fstruct ps_fontinfo[];
> extern struct _fstruct latex_fontinfo[];
>
> With these:
> extern struct _xfstruct *x_fontinfo;
> extern struct _xfstruct *x_backup_fontinfo;
> extern struct _fstruct *ps_fontinfo;
> extern struct _fstruct *latex_fontinfo;
> ---------------
>
> 2) Edit file "w_i18n.c"
> Line number 405 (around),
>
> Replace
> extern struct _xfstruct x_fontinfo[]; /* X11 fontnames */
>
> With
> extern struct _xfstruct *x_fontinfo; /* X11 fontnames */
> ---------------
>
> 3) Run
> $ xmkmf
> $ make
> $ sudo make install.all
> ---------------
>
> 4) Opps, in case you hit some missing libraries...
>
> $ apt-cache search libx11
> $ apt-cache search etc etc etc
>
> At least, you may need these
> libx11-dev
> xaw
> libxaw7-dev
> xaw3dg-dev
> ---------------
>
> 5) Fix fonts. Why can't they include this in "make install.all" ?
> Why can't they include this in "make install.all" ?
>
> See README file.
> or
>
http://www.ubuntuforums.org/showthread.php?p=180320&mode=linear&highlight=Warning%3A+Missing+charsets+String+FontSet+conversion
thanks now I am finally going somewhere! I did as you told, but I still get
this error message:
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 u_fonts.o
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$
.
- Follow-Ups:
- Re: can't install xfig 3.2.4
- From: moma
- 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
- can't install xfig 3.2.4
- Prev by Date: Re: can't install xfig 3.2.4
- 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):