Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/usr/X11R6/include/X11/Xft/Xft.h:52: syntax error before `;'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Doctor
n00b
n00b


Joined: 11 Feb 2003
Posts: 26

PostPosted: Tue Feb 11, 2003 4:22 am    Post subject: /usr/X11R6/include/X11/Xft/Xft.h:52: syntax error before `;' Reply with quote

I'm probbly pasting wayyy too much stuff, so I wont mind being told to delete stuff, or other people deleting it...

I get the Xft.h parse error whenever I try to compile IceWM, be it 1.2.3 or 1.2.6, I also tried manually ./configure ; make but I got the same error, I tried upgrading XFree86, then realised it was a separate thing... emerge xft and remerged it, but still getting the error

Just curious on what I can do to fix it :)

sorry if its the wrong forum, but *I* think its programming related ;)

Code:
escaflowne x11-base # emerge icewm
Calculating dependencies ...done!
>>> emerge (1 of 1) x11-wm/icewm-1.2.3 to /
>>> md5 ;-) icewm-1.2.3.tar.gz
>>> Unpacking source...
>>> Unpacking icewm-1.2.3.tar.gz
patching file icewm-1.2.3/Makefile
patching file icewm-1.2.3/Makefile.in
patching file icewm-1.2.3/src/Makefile
patching file icewm-1.2.3/src/Makefile.in
patching file icewm-1.2.3/src/wmclient.h
>>> Source unpacked.
esd
nls
imlib
spell
truetype
x86
gnome
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking whether the C compiler (i686-pc-linux-gnu-gcc) understands C++... yes
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-gcc
checking whether we are using the GNU C++ compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes
checking whether the C++ compiler (i686-pc-linux-gnu-gcc) accepts no_rtti... yes
checking whether the C++ compiler (i686-pc-linux-gnu-gcc) accepts no_exceptions... yes

make[1]: *** Waiting for unfinished jobs....
make[1]: *** [ymsgbox.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/icewm-1.2.3/work/icewm-1.2.3/src'
make: *** [base] Error 2
checking whether the C++ compiler (i686-pc-linux-gnu-gcc) accepts warn_xxx... yes
checking whether the C++ compiler (i686-pc-linux-gnu-gcc) accepts permissive... yes
checking if we need our own C++ allocation operators... no
checking for a BSD-compatible install... /bin/install -c
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/wait.h that is POSIX.1 compatible... yes
checking how to run the C++ preprocessor... i686-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking linux/threads.h usability... yes
checking linux/threads.h presence... yes
checking for linux/threads.h... yes
checking linux/tasks.h usability... no
checking linux/tasks.h presence... no
checking for linux/tasks.h... no
checking kstat.h usability... no
checking kstat.h presence... no
checking for kstat.h... no
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking return type of signal handlers... void
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for gettimeofday... yes
checking for putenv... yes
checking for select... yes
checking for socket... yes
checking for strtol... yes
checking for strtoul... yes
checking for basename... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for nl_langinfo... yes
checking whether nl_langinfo supports _NL_MESSAGES_CODESET... yes
checking whether nl_langinfo supports _NL_CTYPE_CODESET_NAME... yes
checking whether nl_langinfo supports CODESET... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking whether _libiconv_version is declared... no
assuming iconv.h belongs to the C library
checking for iconv... yes
checking for iconv_open... yes
checking for iconv_close... yes
checking whether iconv converts from ISO-8859-1 to UCS-4//TRANSLIT... yes
checking whether iconv converts from ISO-8859-2 to UCS-4//TRANSLIT... yes
checking whether iconv converts from KOI8-R to UCS-4//TRANSLIT... yes
checking whether iconv converts from EUC-JP to UCS-4//TRANSLIT... yes
checking whether iconv converts from BIG5 to UCS-4//TRANSLIT... yes
checking for gettext... yes
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for XInternAtoms in -lX11... yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for XShapeCombineRectangles in -lXext... yes
checking for xft-config... /usr/bin/xft-config
checking for XineramaQueryScreens in -lXinerama... yes
checking for gnome-config... /usr/bin/gnome-config
checking for imlib-config... /usr/bin/imlib-config
/usr/bin/imlib-config: test: !=: unary operator expected
checking for mkfontdir... /usr/X11R6/bin/mkfontdir
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile
config.status: creating lib/keys
config.status: creating lib/menu
config.status: creating lib/programs
config.status: creating lib/toolbar
config.status: creating lib/winoptions
config.status: creating src/config.h
config.status: executing config.status commands

Build targets: base nls
Applications: icewm icesh icewmhint icewmbg icehelp icewm-menu-gnome1
Image library: Imlib
Audio support:
Features: i18n nls gradients antialiasing xfreetype x86-asm
Paths: PREFIX: /usr
       BINDIR: /usr/bin
       LOCDIR: /usr/share/locale
       LIBDIR: /usr/share/icewm
       CFGDIR: /etc/icewm
       KDEDIR: /usr/kde/3/share
       DOCDIR: /usr/share/doc/icewm-1.2.3/html
make[1]: Entering directory `/var/tmp/portage/icewm-1.2.3/work/icewm-1.2.3/src'
make[1]: Entering directory `/var/tmp/portage/icewm-1.2.3/work/icewm-1.2.3/po'
/usr/bin/msgfmt -o ca.mo ca.po
Compiling ymsgbox.o...
/usr/bin/msgfmt -o cs.mo cs.po
/usr/bin/msgfmt -o de.mo de.po
/usr/bin/msgfmt -o en.mo en.po
/usr/bin/msgfmt -o es.mo es.po
/usr/bin/msgfmt -o fi.mo fi.po
/usr/bin/msgfmt -o fr.mo fr.po
/usr/bin/msgfmt -o hr.mo hr.po
/usr/bin/msgfmt -o hu.mo hu.po
/usr/bin/msgfmt -o it.mo it.po
In file included from ypaint.h:14,
                 from ywindow.h:4,
                 from wmclient.h:4,
                 from ydialog.h:4,
                 from ymsgbox.h:4,
                 from ymsgbox.cc:13:
/usr/X11R6/include/X11/Xft/Xft.h:52: syntax error before `;'
/usr/X11R6/include/X11/Xft/Xft.h:86: syntax error before `;'
/usr/X11R6/include/X11/Xft/Xft.h:93: syntax error before `;'
/usr/X11R6/include/X11/Xft/Xft.h:190: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:295: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:353: syntax error before `('
/usr/X11R6/include/X11/Xft/Xft.h:392: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:398: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:407: type specifier omitted for parameter
/usr/X11R6/include/X11/Xft/Xft.h:407: parse error before `,'
/usr/X11R6/include/X11/Xft/Xft.h:417: syntax error before `('
/usr/X11R6/include/X11/Xft/Xft.h:460: parse error before `*'
/usr/bin/msgfmt -o ja.mo ja.po
/usr/bin/msgfmt -o lt.mo lt.po
/usr/bin/msgfmt -o no.mo no.po
/usr/bin/msgfmt -o pl.mo pl.po
/usr/bin/msgfmt -o pt_BR.mo pt_BR.po
/usr/bin/msgfmt -o ro.mo ro.po
/usr/bin/msgfmt -o ru.mo ru.po
/usr/bin/msgfmt -o sv.mo sv.po
/usr/bin/msgfmt -o uk.mo uk.po
/usr/bin/msgfmt -o zh_CN.gb2312.mo zh_CN.gb2312.po
/usr/bin/msgfmt -o zh_TW.Big5.mo zh_TW.Big5.po
make[1]: Leaving directory `/var/tmp/portage/icewm-1.2.3/work/icewm-1.2.3/po'
Compiling ydialog.o...
In file included from ypaint.h:14,
                 from ywindow.h:4,
                 from wmclient.h:4,
                 from ydialog.h:4,
                 from ydialog.cc:13:
/usr/X11R6/include/X11/Xft/Xft.h:52: syntax error before `;'
/usr/X11R6/include/X11/Xft/Xft.h:86: syntax error before `;'
/usr/X11R6/include/X11/Xft/Xft.h:93: syntax error before `;'
/usr/X11R6/include/X11/Xft/Xft.h:190: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:295: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:353: syntax error before `('
/usr/X11R6/include/X11/Xft/Xft.h:392: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:398: parse error before `*'
/usr/X11R6/include/X11/Xft/Xft.h:407: type specifier omitted for parameter
/usr/X11R6/include/X11/Xft/Xft.h:407: parse error before `,'
/usr/X11R6/include/X11/Xft/Xft.h:417: syntax error before `('
/usr/X11R6/include/X11/Xft/Xft.h:460: parse error before `*'
make[1]: *** [ydialog.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [ymsgbox.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/icewm-1.2.3/work/icewm-1.2.3/src'
make: *** [base] Error 2

!!! ERROR: x11-wm/icewm-1.2.3 failed.
!!! Function src_compile, Line -250, Exitcode 2
!!! emake failed

escaflowne x11-base #
Back to top
View user's profile Send private message
mattfoster
n00b
n00b


Joined: 16 Nov 2002
Posts: 5
Location: Bath, UK

PostPosted: Tue Feb 11, 2003 12:51 pm    Post subject: Reply with quote

I get the exact same error as you when I try to build sawfish-1.3-gtk2. I have X 4.2.99 as well...
_________________
I have to go now: my Giraffe is on fire.
Back to top
View user's profile Send private message
qnx
l33t
l33t


Joined: 25 Jun 2002
Posts: 638
Location: Göteborg, Sweden

PostPosted: Tue Feb 11, 2003 1:27 pm    Post subject: Reply with quote

Try reemerging xft.
_________________
Registred Linux user #191143!
Abit NF7-S rev. 2.00 (BIOS v. 2.7)
AMD AthlonXP 2500+ (Barton)
PATA Seagate ST3120022A
SATA Seagate ST3200822AS & Silicon Image 3112 chipset
Gentoo Linux :)
Back to top
View user's profile Send private message
mattfoster
n00b
n00b


Joined: 16 Nov 2002
Posts: 5
Location: Bath, UK

PostPosted: Tue Feb 11, 2003 4:16 pm    Post subject: Reply with quote

Thats the first thing I tried. It makes no difference. Any other ideas?
_________________
I have to go now: my Giraffe is on fire.
Back to top
View user's profile Send private message
lunix4god
n00b
n00b


Joined: 05 Nov 2002
Posts: 17
Location: Socorro, NM

PostPosted: Tue Feb 11, 2003 5:58 pm    Post subject: Reply with quote

I am having the exact same problem when trying to emerge AbiWord 1.3.1. I can't figure it out, any help would be much appreciated!
Back to top
View user's profile Send private message
mattfoster
n00b
n00b


Joined: 16 Nov 2002
Posts: 5
Location: Bath, UK

PostPosted: Tue Feb 11, 2003 7:39 pm    Post subject: Reply with quote

I spose the next step is to establish what everyone is using:
my main system in a Duron 750 @ 950, I know the oc'ing isn't a problem, cos I've never had any problems, and my ebuilds fail at the same point.
I also have a Vaio R600MX (Celeron 800 384Mb RAM), and I get the same error.

This is the output I get from emerge -V:
Code:

$ emerge -V
Portage 2.0.46-r9 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r7)

So you can see I'm still running gentoo 1.2.
As I said before, I have X 2.4.99, and I'm using Xft 2.0.1-r1 on both boxes.
_________________
I have to go now: my Giraffe is on fire.
Back to top
View user's profile Send private message
lunix4god
n00b
n00b


Joined: 05 Nov 2002
Posts: 17
Location: Socorro, NM

PostPosted: Tue Feb 11, 2003 8:17 pm    Post subject: System Specs Reply with quote

My system is a Duron 900 (no OC'ing) with Gnome 2.2, XFree 4.2.99.4, Xft 2.0.1-r1 and here is my portage version:
Code:
Portage 2.0.46-r12 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7)

I get this error when trying to emerge AbiWord 1.3.1 and Sawfish 1.2, and re-emerging Xft does nothing.
Back to top
View user's profile Send private message
Doctor
n00b
n00b


Joined: 11 Feb 2003
Posts: 26

PostPosted: Tue Feb 11, 2003 11:18 pm    Post subject: Reply with quote

P4 1400 No Overcloaking
Portage 2.0.47 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2)
XFree86 Version 4.2.1 / X Window System
xft 2.0.1

Guess its still Gentoo 1.2
Back to top
View user's profile Send private message
qnx
l33t
l33t


Joined: 25 Jun 2002
Posts: 638
Location: Göteborg, Sweden

PostPosted: Wed Feb 12, 2003 9:12 pm    Post subject: Reply with quote

Well, it looks so...
My system:
Code:
jacob@qnx jacob $ emerge --version
Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r3)
has no problems. But I understand that reinstalling is a bit overkilling, especially now, it's better to wait for 1.4 final.
But you might change your /etc/make.profile symlink to point to default-x86-1.4 instand of default-1.0 and then
Code:
emerge --deep -u world
But this is a bit overkilling too, I guess....
But what about upgrading glibc or gcc?? It might be one of these...
It's just my opinion, it probably won't even work...
Cheers!
_________________
Registred Linux user #191143!
Abit NF7-S rev. 2.00 (BIOS v. 2.7)
AMD AthlonXP 2500+ (Barton)
PATA Seagate ST3120022A
SATA Seagate ST3200822AS & Silicon Image 3112 chipset
Gentoo Linux :)
Back to top
View user's profile Send private message
mattfoster
n00b
n00b


Joined: 16 Nov 2002
Posts: 5
Location: Bath, UK

PostPosted: Wed Feb 12, 2003 9:22 pm    Post subject: Reply with quote

hmmm,
as I understand it, the main difference between 1.2 and 1.4 is the gcc and gliblc versions. So, upgrading them is the same as upping the profile to 1.4,
which I think i'll do just as soon as I have time...

thanks,
_________________
I have to go now: my Giraffe is on fire.
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Wed Mar 26, 2003 10:26 pm    Post subject: Reply with quote

I'm getting this same error with icewm 1.2.7. My friend says it works when you build it without truetype, but that is a land I don't want to be in.

Has anyone gotten this to work?
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Thu Mar 27, 2003 9:16 pm    Post subject: Reply with quote

OK. I actually had to remove freetype and xft (emerge -C freetype xft) and then re-emerge them and then icewm compiled.

*shrug*
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Fri Mar 28, 2003 7:46 am    Post subject: Reply with quote

Xft2 and Xft1 don't play nice together. Hack the ebuild so that it uses /usr/include/Xft1 instead of /usr/include/Xft
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum