Solved wmappl and an unusual error message rcparser.c

Hello,

I am having an issue with the port wmappl. I did a package install of the port and when I tried to run the port I got an unusual error message.
The machine running in a vmware esxi 6.7 environment.
[2356][bhorne@Necronomicon:/usr/home/bhorne]$ uname -a
FreeBSD Necronomicon 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC amd64


The desktop is Windowmaker

The port:
https://www.freshports.org/x11/wmappl/

The error:
[0005][bhorne@Necronomicon:/usr/home/bhorne]$ wmappl &
[1] 9698
rcparser.c: Expected Key=Value, invalid file format. vera serif font

Some of the interesting things are I cannot locate a rcparser.c file


root@Necronomicon:~ # find / -name rcparser.c
root@Necronomicon:~ #


So my question is where do I go from here?
 
rcparser.c is compiled in the /usr/local/bin/wmappl binary, try

strings /usr/local/bin/wmappl | grep rcparser.c
Code:
...
rcparser.c: Expected Key=Value, invalid file format.
...



Check ~/.wmapplrc for

root@Necronomicon:~ # strings /usr/local/bin/wmappl | grep rcparser.c
rcparser.c: Couldn't grow section buffer.
rcparser.c: A file has already been opened, call close_file() first.
rcparser.c: Couldn't allocate space for an RCKeyValue structure.
rcparser.c: Couldn't reallocate section array.
rcparser.c: Couldn't allocate space in RCSection structure for the section name.
rcparser.c: Couldn't allocate space for key name.
rcparser.c: You must call new_rcfile before calling new_rcsection.
rcparser.c: An error occurred while reading rcfile.
rcparser.c: Couldn't reallocate key array.
rcparser.c: Couldn't allocate space for an RCFile structure.
rcparser.c: Couldn't allocate space in RCFile structure for the filename.
rcparser.c: Couldn't allocate space for line buffer.
rcparser.c: Couldn't allocate space for key value.
rcparser.c: Couldn't allocate space in RCFile structure for sections.
rcparser.c: Key=Value pairs must follow a [SECTION] line.
rcparser.c: A file must be opened before read_line() may be called.
rcparser.c: Couldn't allocate space in RCKeyValue structure for the key.
rcparser.c: Couldn't allocate memory for return_string.
rcparser.c: Couldn't trim key value.
rcparser.c: EOF file has already been reached, cannot read_line().
rcparser.c: Couldn't trim key name.
rcparser.c: Couldn't open %s using mode %s.
rcparser.c: Couldn't allocate space in RCKeyValue structure for the value.
rcparser.c: Couldn't trim line from file.
rcparser.c: Couldn't allocate space for section name.
rcparser.c: Couldn't allocate space in RCSection structure for keys.
rcparser.c: Expected Key=Value, invalid file format.
rcparser.c: Couldn't allocate space for an RCSection structure.
rcparser.c: Couldn't grow line buffer.
rcparser.c: Couldn't grow key buffer for section [%s].
rcparser.c: realloc_rcfile() may not be called on an RCFile currently being parsed.
root@Necronomicon:~ #
 
It's a message of "syntax error" upon program startup. It's expecting to have key=value (e.g. name=John) but found something it doesn't understand. I see you have "vera serif font" after that message so that's a good start -- look for those words in aforementioned config file.
 
Check ~/.wmapplrc for

rcparser.c: Expected Key=Value, invalid file format. vera serif font

[wmappl]
iconpath=/usr/share/icons/wmappl:/usr/share/pixmaps/mini
name=Demo
window=
debug=
tooltip_delay=800 # 800 milliseconds
tooltip_foreground=rgb:ff/ff/ff # white tooltip text
tooltip_background=rgb:ff/00/00 # red tooltip background
tooltip_font=-*-bitstream vera serif-*-*-*-*-*-*-*-*-*-*-*-* # use
vera serif font
background_color=rgb:73/7e/df # light blue wmappl background
background_icon=checker.xpm
# the checkered background will override the light blue background

[info]
icon = info.xpm
command = xmessage "Reports bugs to: \
wmappl.sourceforge.net" &
tooltip = wmappl information

[man wmappl]
icon = wmappl.xpm
command = xterm -fg white -bg black -e man wmappl &
tooltip = open the wmappl man page

[wprefs]
icon = gnustep.xpm
command = /usr/share/GNUstep/WPrefs.app/WPrefs &

[mozilla]
icon = mozilla.xpm
command = mozilla &

[xterm]
icon = glowx.xpm
command = xterm &

[ghostview]
icon = ghost.xpm
command = gv &

[xmms]
icon = xmms.xpm
command = xmms &
tooltip = xmms gets a really really really \
really really really really really \
really really really really really \
long tooltip!

[ssh to work]
icon = ssh.xpm
command = xterm -fg green -bg black \
-e ssh -l user shell.work.com &
 
The words are there after tooltip I believe that is line 10. So is there something there that needs to be changed?
 
It seems your comment is getting into new line

Code:
tooltip_font=-*-bitstream vera serif-*-*-*-*-*-*-*-*-*-*-*-*  # use
      vera serif font
but should be
Code:
tooltip_font=-*-bitstream vera serif-*-*-*-*-*-*-*-*-*-*-*-*  # use vera serif font
 
I fixed the line apparently for some reason part of the comment had moved to the next line.
So I have fixed that

tooltip_font=-*-bitstream vera serif-*-*-*-*-*-*-*-*-*-*-*-* # use vera serif font
 
Back
Top