You are not logged in.

#1 2007-08-23 09:14:02

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

xrdb: colon missing on line xx

hello,

following problem:
in my ~/.xinitrc i read out the ~/.Xresources file through

xrdb -merge ~/.Xresources

i use suspend, so i haven't restarted X for days now. today i restarted X and i get following error:

vlad@computer:~ $ xrdb -load .Xresources 
xrdb: colon missing on line 5, ignoring line
xrdb: colon missing on line 6, ignoring line
xrdb: colon missing on line 10, ignoring line
xrdb: colon missing on line 11, ignoring line
xrdb: colon missing on line 12, ignoring line
xrdb: colon missing on line 13, ignoring line
.
.
.

i've used same .Xresources for months w/o any problems. i see that  xorg-server-utils (contains xrdb) was updated last friday.
has anybody experienced the same thing?
any suggestions?

thanks in advance,
vlad

Last edited by DonVla (2007-08-23 09:15:15)

Offline

#2 2007-08-23 10:28:28

oliwer
Member
From: Paris
Registered: 2007-06-30
Posts: 153
Website

Re: xrdb: colon missing on line xx

Same problem here (very annoying) but I don't think it comes from xorg-server-utils. I would have noticed it before since I reboot everyday. I am pretty sure it comes from one of Wednesday 22 updates.

Offline

#3 2007-08-23 10:46:40

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: xrdb: colon missing on line xx

as a workaround, for now i use .Xdefaults, which i linked to .Xresources. the .Xdcdefaults file is directly read out by the applications. you don't have to source them.

vlad

Last edited by DonVla (2007-08-23 10:49:51)

Offline

#4 2007-08-23 11:22:36

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: xrdb: colon missing on line xx

I see mcpp (a small C preprocessor) was also updated this week. The new mcpp package could be the source of your problem also. You can test by either downgrading or deleting mcpp (xrdb will fallback to gcc's cpp when mcpp isn't available).

Offline

#5 2007-08-23 11:51:13

baude
Member
From: France, Toulouse
Registered: 2007-08-22
Posts: 18

Re: xrdb: colon missing on line xx

Thanks !

I had the same problem since I updated my system today. The pacman log indeed shows that mcpp has been updated :
[2007-08-23 12:06] mcpp mis à jour (2.6-1 -> 2.6.4-1)

After having downgraded mcpp as you suggested, xrdb accepts my .Xresources file.

Offline

#6 2007-08-23 16:48:00

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: xrdb: colon missing on line xx

where can i get the old mcpp version?
ok i found it.
i've also blacklisted mcpp to prevent upgrade.

vlad

Last edited by DonVla (2007-08-23 16:50:44)

Offline

#7 2007-08-25 13:05:43

enrique
Member
Registered: 2005-10-25
Posts: 95
Website

Re: xrdb: colon missing on line xx

Is is at bug in mcpp, or do I need to update my ~/.Xresources ? As a lot of people my .Xresources has been working fine until the mcpp update, so do I have to wait for a updated mcpp or is there anything I can do about the following message:

<stdin>:0: warning: Unknown encoding: da_DK
    <stdin>:40: error: Unknown #directive "includ"
    #includ "/home/enrique/.Xresources-local"
1 error in preprocessor.
xrdb: colon missing on line 1, ignoring line
xrdb: colon missing on line 2, ignoring line
xrdb: colon missing on line 3, ignoring line
...
xrdb: colon missing on line 38, ignoring line

I have a .Xresources-local which sets host specific settings, part of my .Xresources looks like this:

URxvt*background: black
URxvt*foreground: gray
URxvt*pointerBlank: true
URxvt*scrollBar: 0 
URxvt*saveLines: 2000 
URxvt*internalBorder: 3
URxvt*colorUL: #0064ff
URxvt*colorRV: white
...
*enableThinThickness: True
*enableEtchedInMenu: True
*enableToggleColor: True
*enableToggleVisual: True

#include "/home/enrique/.Xresources-local"

Kind regards, enrique

Offline

#8 2007-08-25 16:30:34

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: xrdb: colon missing on line xx

hi enrique,

you can downgrade your mcpp version. here is the old 2.6-1 arch-version:
http://phraktured.net/archmirror/0.8/os … pkg.tar.gz
or make your own package w/ the 2.6.3 version (also works correctly) through abs. that's what i did.
just replace the version number to 2.6.3 in the default 2.6.4 PKGBUILD and change the md5sum.

or you can simply don't use the .Xresources file, but the .Xdefaults file.
then you don't have to xrdb the file, because the .Xdefaults file is read out directly by the applications when they're started.
i prefer .Xresources, because it's loaded with the xserver into memory and so applications start faster, and this works globally.
some applications don't respond to the .Xdefaults settings.

vlad

Last edited by DonVla (2007-08-25 16:33:31)

Offline

#9 2007-08-26 02:12:16

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: xrdb: colon missing on line xx

I just added extra colons in all the .X* files that get loaded/merged by xrdb (so that "URxvt*background: black" becomes "URxvt*background:: black" for example).  It took me 2 minutes or so but everything seems to work fine now.  If whatever causes this gets reverted in the future releases of mcpp then replacing "::" with ":" in any text editor shouldn't be a problem.

Offline

#10 2007-08-26 07:01:51

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: xrdb: colon missing on line xx

fwojciec wrote:

I just added extra colons in all the .X* files that get loaded/merged by xrdb (so that "URxvt*background: black" becomes "URxvt*background:: black" for example).  It took me 2 minutes or so but everything seems to work fine now.  If whatever causes this gets reverted in the future releases of mcpp then replacing "::" with ":" in any text editor shouldn't be a problem.

sed -i 's/:/::/' .Xresources

or

vim .Xresources
then
:%s/:/::/

I think you meant seconds rather than minutes smile

Last edited by shining (2007-08-26 07:02:49)


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#11 2007-08-26 11:46:52

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: xrdb: colon missing on line xx

d'oh,
it's sometimes so simple!
the error message said it all.

Offline

#12 2007-08-26 14:41:49

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: xrdb: colon missing on line xx

It looks like mcpp is stripping the last character of the first word on each line. That's also why the colon is missing.

Offline

#13 2007-08-27 06:25:21

enrique
Member
Registered: 2005-10-25
Posts: 95
Website

Re: xrdb: colon missing on line xx

I looks like also removing the space after : works, my ~/.Xresources now looks like:

URxvt*background:black
URxvt*foreground:gray
URxvt*pointerBlank:true
URxvt*scrollBar:0 
URxvt*saveLines:2000 
URxvt*internalBorder:3
URxvt*colorUL:#0064ff
URxvt*colorRV:white
URxvt*loginShell:true
URxvt*color4:#0064ff
URxvt*realBold:true
URxvt*jumpScroll:True
URxvt*scrollTtyOutput:False
URxvt*scrollTtyKeypress:True
URxvt*scrollWithBuffer:True
URxvt*urlLauncher:firefox
URxvt.secondaryScroll:true 
XTerm*jumpScroll:true
XTerm*multiScroll:true
xterm*faceName:"Bitstream Vera Sans Mono"
xterm*faceSize:9
XTerm*loginShell:true
XTerm*foreground:gray90
XTerm*background:black
XTerm*cursorColor:rgb:00/80/00
XTerm*borderColor:white
XTerm*scrollColor:black
XTerm*visualBell:false
XTerm*saveLines:1000
XTerm*allowSendEvents:True
XTerm*sessionMgt:false
XTerm*rightScrollBar:true
*enableThinThickness:True
*enableEtchedInMenu:True
*enableToggleColor:True
*enableToggleVisual:True
#include"/home/enrique/.Xresources-local"

And there are no complaints in my ~/.xsession-errors smile


Kind regards, enrique

Offline

#14 2007-08-27 21:19:12

diligent
Member
From: Odessa, Ukraine
Registered: 2007-08-27
Posts: 4
Website

Re: xrdb: colon missing on line xx

But all this not a solution for all default xorg resource-files, I mean it's not right to edit all such files, but they needed for work.

Offline

#15 2007-08-28 09:44:02

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: xrdb: colon missing on line xx

hi,
case not solved. it gets even dumber and dumber.
in my .Xresources i have lines with more than one space character, like:

*ttyModes:erase ^?
yeahconsole*term:xterm -bg black -fg beige

when i read them out i get no errors, but launching the application (yeahconsole needs xterm, as you see above)
yields following errors:

sh: xter: command not found

or

xterm:  bad tty modes "eras ^?

It looks like mcpp is stripping the last character of the first word on each line. That's also why the colon is missing.

obviously mcpp cuts off the last character before every space character, but not before a line break (that's why double colon or no spaces at all does work).

however i tried deleting /usr/bin/mcpp as JGC said, but when running xrdb i get:

 xrdb .Xresources
sh: /usr/bin/mcpp: No such file or directory

as a workaround (a really stupid one) i have now following in my .Xresources (please don't laugh...):

*ttyModes:erasee ^?
yeahconsole*term:xtermm -bgg blackk -fgg beige

haha, that works.

Offline

#16 2007-08-28 10:09:38

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: xrdb: colon missing on line xx

DonVla wrote:

but launching the application (yeahconsole needs xterm, as you see above)
yields following errors:

sh: xter: command not found

as a workaround (a really stupid one) i have now following in my .Xresources (please don't laugh...):

*ttyModes:erasee ^?
yeahconsole*term:xtermm -bgg blackk -fgg beige

haha, that works.

lol, actually that's what I was going to suggest big_smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#17 2007-09-02 16:19:07

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: xrdb: colon missing on line xx

DonVla wrote:
*ttyModes:erasee ^?
yeahconsole*term:xtermm -bgg blackk -fgg beige

haha, that works.

Here's a sed-expression that does just that:

sed "s/\([^[:space:]]\)\([[:space:]]\)/\1\1\2/g" .Xresources

add -i to it to apply it after verifying that it doesn't do something unhealthy

use this one to revert it:

sed "s/[^[:space:]]\([[:space:]]\)/\1/g" .Xresources

Last edited by klixon (2007-09-02 16:21:36)


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#18 2007-09-05 14:14:30

Don-DiZzLe
Member
From: Nederland
Registered: 2007-03-31
Posts: 233

Re: xrdb: colon missing on line xx

I am also gettin this weird warning/error xrdb: colon missing on line 1 all the way to line 3 and sometimes to line 11. I only get this when using ROX-Session, furthermore Im also getting another weird error/warning: sh dcop command not found.

What does this al mean and how do i get rid of it?

EDIT: Nevermind I fixed them both.

Last edited by Don-DiZzLe (2007-09-05 18:06:07)

Offline

Board footer

Powered by FluxBB