Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 May 2013, 23:22
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Compile urxvt-9.18 failed (Solved)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
anikin

Joined: 10 May 2012
Posts: 185

PostPosted: Thu 04 Apr 2013, 15:04    Post subject:  Compile urxvt-9.18 failed (Solved)  

A compile in Upup Raring 3.8.4.2 of the latest version of urxvt resulted in the following error:
Code:
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, 11:43; edited 2 times in total
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 1726
Location: Burghaslach, Germany

PostPosted: Thu 04 Apr 2013, 15:35    Post subject:  

Sorry, cannot reproduce your result

My
Code:
./configure
make
of
http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-9.18.tar.bz2
did not fail.
upx'ed rxvt is 1151k too large for upload Wink
Back to top
View user's profile Send private message 
anikin

Joined: 10 May 2012
Posts: 185

PostPosted: Thu 04 Apr 2013, 16:25    Post subject:  

For some reason, my flags have been ignored and the compilation was done with default flags.
Anything wrong with my flags?
Code:
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:
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, 02:59; edited 1 time in total
Back to top
View user's profile Send private message 
anikin

Joined: 10 May 2012
Posts: 185

PostPosted: Thu 04 Apr 2013, 18:09    Post subject:  

Flags have been correctly set & accepted:
Code:
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:
# 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
#
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 1726
Location: Burghaslach, Germany

PostPosted: Fri 05 Apr 2013, 05:20    Post subject:  

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 Laughing

Last edited by L18L on Fri 05 Apr 2013, 10:15; edited 2 times in total
Back to top
View user's profile Send private message 
anikin

Joined: 10 May 2012
Posts: 185

PostPosted: Fri 05 Apr 2013, 08:07    Post subject:  

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 Smile

Here's the link, that inspired me and for which I should thank iguleder:
http://208.109.22.214/puppy/viewtopic.php?p=560726&sid=dee6199b09b1f41e54c58483a7d515ea
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 1726
Location: Burghaslach, Germany

PostPosted: Fri 05 Apr 2013, 08:21    Post subject:  

Sorry I cannot help more

Perhaps PM to iguleder Idea
Back to top
View user's profile Send private message 
simargl


Joined: 11 Feb 2013
Posts: 374

PostPosted: Fri 05 Apr 2013, 08:53    Post subject:  

anikin wrote:
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 Smile

Here's the link, that inspired me and for which I should thank iguleder:
http://208.109.22.214/puppy/viewtopic.php?p=560726&sid=dee6199b09b1f41e54c58483a7d515ea

In what Puppy version you tried to compile urxvt, if you want to compile programs using latest toolchain there's no better choice than alphaOS http://murga-linux.com/puppy/viewtopic.php?p=696749#696749. I already have 317 build scripts: 41 packages in repository others included in main iso and devel sfs.

If you want to disable everything like in that guide, why not just use xterm - at the end they will be the same...
Back to top
View user's profile Send private message Visit poster's website 
anikin

Joined: 10 May 2012
Posts: 185

PostPosted: Fri 05 Apr 2013, 09:53    Post subject:  

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 Smile

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.
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5170
Location: Finland

PostPosted: Fri 05 Apr 2013, 09:58    Post subject:  

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

# uname -r
3.8.4-upup

crap toolchain, it seems.
Back to top
View user's profile Send private message 
anikin

Joined: 10 May 2012
Posts: 185

PostPosted: Fri 05 Apr 2013, 10:15    Post subject:  

Hi pemasu,

How did you do it?
Can you show your config?
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5170
Location: Finland

PostPosted: Fri 05 Apr 2013, 10:20    Post subject:  

./configure --prefix=/usr --disable-perl
make -j6
make install
Back to top
View user's profile Send private message 
anikin

Joined: 10 May 2012
Posts: 185

PostPosted: Fri 05 Apr 2013, 11:38    Post subject:  

pemasu,

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

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."
urxvt-9.18.png
 Description   
 Filesize   123.86 KB
 Viewed   126 Time(s)

urxvt-9.18.png

Back to top
View user's profile Send private message 
simargl


Joined: 11 Feb 2013
Posts: 374

PostPosted: Fri 05 Apr 2013, 12:28    Post subject:  

anikin wrote:
pemasu,

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

yes... but where is fun in using linux if you don't compile Very Happy
Back to top
View user's profile Send private message Visit poster's website 
pemasu


Joined: 08 Jul 2009
Posts: 5170
Location: Finland

PostPosted: Fri 05 Apr 2013, 12:39    Post subject:  

Quote:
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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0756s ][ Queries: 12 (0.0091s) ][ GZIP on ]