Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Parse error in etc/make.conf
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
sjb
n00b
n00b


Joined: 17 Jun 2003
Posts: 3
Location: Christchurch, New Zealand

PostPosted: Tue Jun 17, 2003 11:16 pm    Post subject: Parse error in etc/make.conf Reply with quote

On a pretty new clean install, having just emerged kde, oo and gimp and attempting to setup ALSA as per the docs I seemed to have mucked up make.conf, because on trying to emerge I got messages like this:

steves-tp root # emerge -p alsa
 !!! Invalid token (not "=") \033
 !!! Parse error in /etc/make.conf.
 !!! Incorrect multiline literals can cause this. Do not use them.

To resolve the problem I've had to comment out a number of lines, as below:

# PS1=\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]
# LESSOPEN=|lesspipe.sh %s
# KONSOLE_DCOP_SESSION=DCOPRef(konsole-6502,session-1)
# KONSOLE_DCOP=DCOPRef(konsole-6502,konsole)

(a) What's wrong with these, and (b) How could they have got cobbled?

Any hints gratefully rec'd - this gave me a bad shock!

- steve
(I'd not been fiddling with any of these lines)
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Wed Jun 18, 2003 1:21 am    Post subject: Reply with quote

Nothing wrong with those lines (well, they should be quoted but I assume they are and you just didn't get that in the copy). The problem is in the line before the PS1= line. It's mising a " at the end probably.
I've never seen those particular lines in make.conf before though. Unless it is something new that has been added they seem out of place.
Back to top
View user's profile Send private message
sjb
n00b
n00b


Joined: 17 Jun 2003
Posts: 3
Location: Christchurch, New Zealand

PostPosted: Wed Jun 18, 2003 2:01 am    Post subject: Reply with quote

[quote="PowerFactor"]...(well, they should be quoted but I assume they are and you just didn't get that in the copy)...

PowerFactor, you've SOLVED this. They were *just* as I posted (although from different parts of the file) and after I've now put double quotes around them, and uncommented them, all is fine - just did an 'emerge -u system.

- steve

Puzzling, and quite worrying that OO, KDE or whatever has bunged in dud lines - this box has only just been installed....
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Wed Jun 18, 2003 4:01 am    Post subject: Reply with quote

I find it puzzling and worrisom that kde, OO or whatever has put ANYTHING in your make.conf. That shouldn't happen. Those lines look more like something that should be in /etc/profile or /etc/profile.env, or parhaps a file in /etc/env.d. Someone please correct me if I'm wrong, but I think those lines shouldn't be in your make.conf at all unless you put them there. You didn't happen to have a power outage while emerging or something did you?
Back to top
View user's profile Send private message
sjb
n00b
n00b


Joined: 17 Jun 2003
Posts: 3
Location: Christchurch, New Zealand

PostPosted: Wed Jun 18, 2003 8:03 pm    Post subject: Reply with quote

mea culpa... I did rtfm, but managed to misread it and type:

env ALSA_CARDS="cs46xx" >> /etc/make.conf

...just before I had the problem. I've now trimmed all the env junk off
the bottom of the file and things are sweet. Thx for taking the trouble to try and suss this out.

- steve
Back to top
View user's profile Send private message
agroz
n00b
n00b


Joined: 24 Jun 2003
Posts: 2

PostPosted: Tue Jun 24, 2003 6:18 pm    Post subject: me too Reply with quote

LOL I'm in the middle of installing for the first time,
and just had the same problem only it was hitting
invalid token on my CHOST line. Parsed thru the forums
quick and spotted your post, then took another look
at my make.conf and found a stray quote ahead of the
CHOST line. Removing that fixed the problem -
likely the same thing was happening to you.

Cheers, time to continue installing.

Andy G
Posted with Lynx from the middle of intall :-)
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