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 Tue 25 Nov 2014, 18:26
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 Posts_count  
Author Message
anikin

Joined: 10 May 2012
Posts: 526

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.

Edited_times_total
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2579
Location: www.eussenheim.de/

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: 526

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.

Edited_time_total
Back to top
View user's profile Send_private_message 
anikin

Joined: 10 May 2012
Posts: 526

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: 2579
Location: www.eussenheim.de/

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

Edited_times_total
Back to top
View user's profile Send_private_message 
anikin

Joined: 10 May 2012
Posts: 526

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: 2579
Location: www.eussenheim.de/

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: 572

PostPosted: Fri 05 Apr 2013, 08:53    Post_subject:  

.
Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
anikin

Joined: 10 May 2012
Posts: 526

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: 5465
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: 526

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: 5465
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: 526

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   1134 Time(s)

urxvt-9.18.png

Back to top
View user's profile Send_private_message 
simargl

Joined: 11 Feb 2013
Posts: 572

PostPosted: Fri 05 Apr 2013, 12:28    Post_subject:  

.
Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
pemasu


Joined: 08 Jul 2009
Posts: 5465
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0834s ][ Queries: 13 (0.0047s) ][ GZIP on ]