LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2004, 03:25 AM   #1
paicolman
Member
 
Registered: Sep 2004
Location: Switzerland
Distribution: Fedora Core 2
Posts: 48

Rep: Reputation: 16
error: parse error before "uint32_t"


Hi,

Posted a similar thread some days ago, with no luck... Maybe too much text?

Cutting to the max, my problem is as follows:

Trying to "make" a dloaded package for my USB modem, I had to install linux.atm, which is included in the compilation. When compiling, I get this:

/lib/modules/2.6.4-52-smp/build/include/linux/atm.h:211: error: parse error before "uint32_t"

Now my guess is, some type of gcc library missing, but not sure. Any clues anyone?

Thanks!
 
Old 09-27-2004, 04:52 AM   #2
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
You have an ugly problem.
It doesn't sound like you are missing a library, as it would tell you something to the effect of:
"Cannot stat <filename>: No such file or directory."
However, yours is different.
Basically, it sounds as though there is an error in the code of /lib/modules/2.6.4-52-smp/build/include/linux/atm.h on line 211.
I would open the file in a text editor, find line 211, and either fix the error, or comment it out altogether.
To comment the line out, simply add the following to the beginning of the line:
Code:
//*
See if that helps.
 
Old 09-27-2004, 05:57 AM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
the problem with drivers, is they have to be written and compiled for your EXACT kernel version.

what kernel version is the driver for ? it should say on the website or maybe a readme ?

you can get the anme of your current kernel by running the command "uname -r"

please provide the URL or the webpage where you downloaded the driver. it will help us help you
 
Old 09-27-2004, 06:24 AM   #4
paicolman
Member
 
Registered: Sep 2004
Location: Switzerland
Distribution: Fedora Core 2
Posts: 48

Original Poster
Rep: Reputation: 16
HI,

The driver is in http://sourceforge.net/project/showf...ckage_id=86598

I took the latest version of it (amedyn-2004-08-04-src.tgz), and my kernel is 2.6.4-52-smp.

What looks strange to me, is that it complains about the atm.h file, which is included in the kernel source. I rebuilt the source with no changes, to see if I got a similar error, but it went OK. The complete error line is:

Code:
In file included from /lib/modules/2.6.4-52-smp/build/include/linux/atmdev.h:12,
                 from br2684ctl.c:10:
/lib/modules/2.6.4-52-smp/build/include/linux/atm.h:211: error: parse error before "uint32_t"
I don't know why does it complain for the uint32_t type, that should be a standard type for C. I tried compiling by changing that for "int", and gcc swalloed it...

Thanks for the answers.
 
Old 09-27-2004, 09:13 AM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
ahh okay.....

well...unless you are feeling brave and want to attempt to fix this yourself, the only advice i can think of is to mail the author of the driver with the problem and error codes, then try an older version of the driver hoping that the error is not in the older one.... AND / OR try a newer kernel from kernel.org
 
Old 09-27-2004, 09:28 AM   #6
paicolman
Member
 
Registered: Sep 2004
Location: Switzerland
Distribution: Fedora Core 2
Posts: 48

Original Poster
Rep: Reputation: 16
Hi,

I'll go for the "brave" option. I read a note from a guy who replaced the "uint32_t" by "int" and says it worked... I'll try out and write a how-to (or how-not-to, if it blows) for any poor newbies out there ttying this out...

Thanks for the advice!
 
  


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
"mythtv-setup" giving "Session management error: Authentication Rejected" Mitchua Ubuntu 0 10-09-2005 04:32 PM
What does it mean "parse error" using EMAC Annie0716 Programming 2 08-07-2004 08:41 AM
stdio.h parse error before "__gnuc_va_list" Warnken Red Hat 1 02-10-2004 11:24 AM
kernel 2.6.0 compliation problems: "parse error before 'va_list'" sohmc Linux - General 6 12-21-2003 04:45 AM
Newbie: "Parse Error" when adding wireless usb network adapter tommer Red Hat 7 10-16-2003 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:25 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