LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-03-2003, 10:32 AM   #1
SoulSe
Member
 
Registered: Dec 2002
Location: Johannesburg, South Africa
Distribution: Gentoo, Mandrake, Arch
Posts: 49

Rep: Reputation: 15
Unhappy Nothing will compile...


I canīt get any software installed. Everytime I try a make (whether or not there is a ./configure) I get responses like this:
Quote:
make
g++ -g -O2 -c Desk.cc -o Desk.o
In file included from Desk.h:9,
from Desk.cc:1:
/usr/include/X11/Xft/Xft.h:52: syntax error before `;' token
/usr/include/X11/Xft/Xft.h:86: 'FT_UInt' is used as a type, but is not defined as a type.
/usr/include/X11/Xft/Xft.h:93: 'FT_UInt' is used as a type, but is not defined as a type.
/usr/include/X11/Xft/Xft.h:190: parse error before `*' token
/usr/include/X11/Xft/Xft.h:295: parse error before `*' token
/usr/include/X11/Xft/Xft.h:354: parse error before `*' token
/usr/include/X11/Xft/Xft.h:393: parse error before `*' token
/usr/include/X11/Xft/Xft.h:399: parse error before `*' token
/usr/include/X11/Xft/Xft.h:408: type specifier omitted for parameter `FT_UInt'
/usr/include/X11/Xft/Xft.h:408: parse error before `,' token
/usr/include/X11/Xft/Xft.h:418: parse error before `*' token
/usr/include/X11/Xft/Xft.h:461: parse error before `*' token
make: *** [Desk.o] Error 1
I got that while trying to install idesk. It always has some syntax or parse errors no matter what I try to make. I also tried switching g++ to c++ in the Makefiles, no joy. If I rpm -qa | grep gcc then I get the following:
Quote:
gcc-cpp-3.2.2-3mdk
gcc2.96-cpp-2.96-0.82mdk
libgcc1-3.2.2-3mdk
gcc-3.2.2-3mdk
gcc-objc-3.2.2-3mdk
gcc-gpc-devel-2.95.3-5mdk
gcc2.96-2.96-0.82mdk
gcc-g77-3.2.2-3mdk
gcc-c++-3.2.2-3mdk
gcc-gpc-2.95.3-5mdk
I am using Mandrake 9.1 and I really need help! Thanks!
 
Old 04-03-2003, 11:58 AM   #2
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
is the error always with those header files? (Xft.h)?
 
Old 04-04-2003, 12:15 AM   #3
SoulSe
Member
 
Registered: Dec 2002
Location: Johannesburg, South Africa
Distribution: Gentoo, Mandrake, Arch
Posts: 49

Original Poster
Rep: Reputation: 15
Not always, here is another example:
Quote:
###############################################################
# I am now building the wmapp library in 'wmapp'
# Please modify/verify the makefile in that directory before
# reporting an error as a bug.
###############################################################
cd wmapp; make; cd ..
make[1]: Entering directory `/home/simon/Downloads/dockapps/wmcube-0.99-pre1/wma pp'
g++ -fPIC -g -Wall -pedantic -O2 -c wmapp.cc -o wmapp.o
In file included from wmapp.h:4,
from wmapp.cc:2:
xwrapper.h:31:24: X11/xpm.h: No such file or directory
In file included from wmapp.h:4,
from wmapp.cc:2:
xwrapper.h:43: syntax error before `;' token
In file included from /usr/include/unistd.h:500,
from wmapp.cc:9:
/usr/include/bits/confname.h:200: `_SC_UIO_MAXIOV' was not declared in this scop e
/usr/include/bits/confname.h:200: enumerator value for `_SC_IOV_MAX' not integer constant
In file included from wmapp.cc:9:
/usr/include/unistd.h:890: `intptr_t' was not declared in this scope
/usr/include/unistd.h:890: parse error before `)' token
wmapp.cc: In static member function `static void WMApp::initialize(int, char**)' :
wmapp.cc:80: `struct WMPixmap' has no member named `attr'
wmapp.cc:81: `struct WMPixmap' has no member named `attr'
make[1]: *** [wmapp.o] Error 1
make[1]: Leaving directory `/home/simon/Downloads/dockapps/wmcube-0.99-pre1/wmap p'
c++ -O2 -DLINUX -c -o WmcObject.o WmcObject.cc
In file included from wmapp/wmimage.h:2,
from wmapp/wmcanvas.h:2,
from WmcObject.cc:7:
wmapp/xwrapper.h:31:24: X11/xpm.h: No such file or directory
In file included from wmapp/wmimage.h:2,
from wmapp/wmcanvas.h:2,
from WmcObject.cc:7:
wmapp/xwrapper.h:43: syntax error before `;' token
make: *** [WmcObject.o] Error 1
I realise that I need to modify the makefile, but do not exactly how, so perhaps this is not the finest example.

Last edited by SoulSe; 04-04-2003 at 12:22 AM.
 
Old 04-04-2003, 09:23 AM   #4
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
Well... the packages you have installed (g++ and so on) have an mdk extension so I'm assuming you're using a mandrake distro. Mandrake is based on Redhat, and I know that Redhat often modifies its compilers... (they had modified 2.95 I think a while back and it had all kinds of recursion errors in it).

Now considering XFree86's widespread use I doubt that they would actually have as many syntax errors as the compiler is saying it has in your original post. So you have two options... we know redhat modifies their distributed software for better or worse... so they have either A modified the compiler in such a way that for some reason it now does not recognize proper C/C++ syntax or B they have modified Xft (and other source packages on your system) and messed up the syntax themselves...

I think my advice to you would be to remove the compiler packages... g++, etc. from your system and download the gcc source from gcc's homepage at gnu.org and install it. Then if it still complains about syntax problems... well we'll go from there. Some of the errors you have listed can be fixed by passing a -I/usr/X11/include (or something similiar) to the compiler, but the other errors ... like saying that Xft.h has a syntax error in it, are just unlikely.

That's my advice, you can take it or leave it. The other thing to do would be to check the errors that you're getting yourself and go into the source code and check for syntax errors.

does that help at all? judging from some of my other posts today I think this is going to be a rambling kinda day. sorry... in advance.
 
Old 04-04-2003, 10:22 AM   #5
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
i agree with jpbarto

i would not have two gcc rpms first of all
and it seems that removing both of them and installing just one
would solve your problem
 
Old 04-07-2003, 12:17 PM   #6
Mikeoak83
LQ Newbie
 
Registered: Dec 2002
Posts: 7

Rep: Reputation: 0
I am having the same problem, what i determined that it was is that the with the release of G++ 3.2 or greater it is actually incompatible with the releases 3.1.1 or earlier (this is stated on gnu's website somewhere). So when you try to compile code that is perfectly ok it gives mass errors. Any clue as to how i can uninstall those packages and reinstall an earlier version of gnu c++.
 
Old 04-07-2003, 12:26 PM   #7
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
mandrake is still rpm based right... uninstall gcc using the rpm utility.
Note: it's probably not safe to uninstall any libraries (like glibc) as many apps on your box will probably rely on those specific versions... so leave libraries alone.

then download the source for whatever gcc version you like and follow its installation instructions.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I compile? icecream33 Programming 3 12-20-2017 11:49 AM
compile 2.6.13 jupiter3437 Linux - Software 3 09-09-2005 04:09 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
Cannot compile c davidtsl Programming 8 12-13-2004 01:36 AM
Compile help Twiggy794 Linux - Software 1 12-03-2003 01:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration