Compile urxvt-9.18 failed (Solved)

discuss compiling applications for Puppy
Post Reply
Message
Author
anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

Compile urxvt-9.18 failed (Solved)

#1 Post by anikin »

A compile in Upup Raring 3.8.4.2 of the latest version of urxvt resulted in the following error:

Code: Select all

xdefaults.C: In member function ‘const char** rxvt_term::get_options(int, const char* const*)’:
xdefaults.C:581:36: error: ‘option_db’ was not declared in this scope
make[1]: *** [xdefaults.o] Error 1
make[1]: Leaving directory `/tmp/rxvt-unicode-9.18/src'
make: *** [all] Error 1
#
I'm curious to know what this error means and why it's happening.

Thank you in advance.
Last edited by anikin on Fri 05 Apr 2013, 15:43, edited 2 times in total.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#2 Post by L18L »

Sorry, cannot reproduce your result

My

Code: Select all

./configure
make
of
http://dist.schmorp.de/rxvt-unicode/rxv ... 18.tar.bz2
did not fail.
upx'ed rxvt is 1151k too large for upload :wink:

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

#3 Post by anikin »

For some reason, my flags have been ignored and the compilation was done with default flags.
Anything wrong with my flags?

Code: Select all

CXXFLAGS="$CXXFLAGS" ./configure CXXFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer --pipe" CFLAGS="$CXXFLAGS" --prefix=/usr --with-terminfo=/usr/share/terminfo --enable-everything --disable-256-color --disable-unicode3 --disable-xft --disable-font-styles --disable-transparency --disable-fading --disable-resources --disable-swapscreen --disable-iso14755 --disable-frills --disable-slipwheeling --disable-smart-resize --disable-text-blink --disable-pointer-blank --disable-utmp --disable-wtmp --disable-lastlog --disable-combining --disable-delete-key --disable-resources --disable-swapscreen --disable-frills --disable-pixbuf --disable-startup-notification --with-codesets="all" --disable-combining --disable-assert
I'm asking this because I've come across this in configure.ac file:

Code: Select all

dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure'
dnl#
if test -z "$orig_CXXFLAGS"; then
  if test x$GCC = xyes && test "x$GXX" = xyes; then
    CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
edit above flags have been edited to show "good" ones.
Last edited by anikin on Fri 05 Apr 2013, 06:59, edited 1 time in total.

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

#4 Post by anikin »

Flags have been correctly set & accepted:

Code: Select all

Configuration:

  Rxvt version:               9.18 : 2013-03-24
  Source code location:       .
  Install path:               /usr/bin
  Compiler:                   g++
  Compiler flags:             -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w
  Linker:                     gcc
  set TERMINFO to:            /usr/share/terminfo
  default resource name:      urxvt
  resource class:             URxvt
  resource class fallback:    Rxvt

  embedded perl:              yes
  image library:              none
but the error remains

Code: Select all

# make
make[1]: Entering directory `/tmp/rxvt-unicode-9.18/src'
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c rxvt.C
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c background.C
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c command.C
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c rxvtfont.C
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c init.C
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c main.C
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c misc.C
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c screen.C
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c scrollbar.C
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c scrollbar-next.C
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c scrollbar-rxvt.C
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c scrollbar-xterm.C
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c scrollbar-plain.C
g++ -I.. -I. -I. -I./../libev -I./../libptytty/src -DHAVE_CONFIG_H  -O3 -march=native -mtune=native -fomit-frame-pointer --pipe -w  -c xdefaults.C
xdefaults.C: In member function ‘const char** rxvt_term::get_options(int, const char* const*)’:
xdefaults.C:581:36: error: ‘option_db’ was not declared in this scope
make[1]: *** [xdefaults.o] Error 1
make[1]: Leaving directory `/tmp/rxvt-unicode-9.18/src'
make: *** [all] Error 1
#

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#5 Post by L18L »

anikin wrote:...but the error remains...
Xdefaults.C wrote: XrmPutLineResource (&option_db, res);
It is not your error but the coder's error I guess.

"Latest" versions tend to have some more bugs...

---------------

edit
wrong guess
pemasu, 5 posts down, knows it better :lol:
Last edited by L18L on Fri 05 Apr 2013, 14:15, edited 2 times in total.

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

#6 Post by anikin »

Thank you, L18L.

Your attention is very much appreciated, because for me it's more important to learn "hows", rather than the end result itself. Although, I wouldn't mind to have a shiny new, self-compiled program as a bonus for my desperate effort :)

Here's the link, that inspired me and for which I should thank iguleder:
http://208.109.22.214/puppy/viewtopic.p ... 83a7d515ea

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#7 Post by L18L »

Sorry I cannot help more

Perhaps PM to iguleder :idea:

simargl

#8 Post by simargl »

.
Last edited by simargl on Sun 01 Sep 2013, 15:02, edited 1 time in total.

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

#9 Post by anikin »

My bad, forgot to mention the OS.
Edited the first post to show Upup Raring 3.8.4.2.
I'm following that thread to see if you have already added support for JWM/ROX :)

Regarding xterm, I thought about that or something similar, but my goal was to self compile as many apps as I could to gain some experience.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#10 Post by pemasu »

# urxvt --help
rxvt-unicode (urxvt) v9.18 - released: 2013-03-24

# uname -r
3.8.4-upup

crap toolchain, it seems.

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

#11 Post by anikin »

Hi pemasu,

How did you do it?
Can you show your config?

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#12 Post by pemasu »

./configure --prefix=/usr --disable-perl
make -j6
make install

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

#13 Post by anikin »

pemasu,

let me tell you this: we compilers/devs have to be stubborn and persistent to stay in the business :)

Thank you for the prompt, I added "-disable perl" to my config and it worked. My urxvt weighs at 231K now. But there two more binaries in the folder: urxvtc and urxvd - don't know what they are for. And I used "new2dir make install."
Attachments
urxvt-9.18.png
(123.86 KiB) Downloaded 1621 times

simargl

#14 Post by simargl »

.
Last edited by simargl on Sun 01 Sep 2013, 15:02, edited 1 time in total.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#15 Post by pemasu »

urxvtc and urxvtd - don't know what they are for
For example: man urxvtc and man urxvtd tells you a lot.
They are not used in Puppy Linux. You can just strip them off.

Post Reply