Make problem under AIX 5.3

275 views
Skip to first unread message

Alexander Demin

unread,
Jun 29, 2008, 5:09:51 PM6/29/08
to Bash Commander
I experience the problem on AIX compilation.

Version: bashc-3.2.33.0
System: uname -srv
AIX 5 3

./configure
config.status: creating config.h
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing default commands

Everything is fine.

Then I try to make:
pluto-~/bashc/bashc-3.2.33.0: make
cd . && autoconf
/bin/sh: autoconf: not found.
make: 1254-004 The error code from the last command is 127.

Does anybody have a clue?

Alexander Demin

unread,
Jun 29, 2008, 5:33:33 PM6/29/08
to Bash Commander
There is the same problem under following systems:
- SunOS 5.10 sun4u sparc SUNW,Sun-Fire-V890
- AIX 5.2
- HP-UX B.11.23 U ia64
- HP-UX B.11.00

Under linux it works fine. It seems to me some GNU tool is absent on
these systems but it's available under linux by default.

I guess it's not related to Serge's patch but anyway -- really keen to
have bashc working... ;-)


Alexander

Serge V.

unread,
Jul 1, 2008, 3:30:54 PM7/1/08
to Bash Commander
> /bin/sh: autoconf:  not found.

It requires GNU autoconf to be installed...
Just run "touch configure" before "make".
I will fix this in next release.
___
Best wishes,
Serge

Alexander Demin

unread,
Jul 2, 2008, 4:39:25 AM7/2/08
to ba...@googlegroups.com
Thanks, Serge, it helped.

Now I got other issues. ;-)

1.
------------------------
NDOR='"hp"' -DLOCALEDIR='"/usr/local/share/locale"' -DPACKAGE='"bash"' -DSHELL -DCOMMANDER  -DHAVE_CONFIG_H -DHPUX   -I.  -I. -I./include -I./lib -I./lib/intl -I/data1/ademin/bashc/bashc-3.2.33.0/lib/intl  -g -c commander.c
Warning 1042: "commander.c", line 451 # Subscript out of range.
              if (fi->name[1] == '.' && ! fi->name[2])
                                                   ^ 
Warning 1042: "commander.c", line 1927 # Subscript out of range.
      if (fi->name[0] == '.' && fi->name[1] == '.' && ! fi->name[2])
                                                                 ^ 
Error 181: "commander.c", line 2233 # Expected 0 argument(s) for "void cmdr_start_file()"; had 1 instead.
                    cmdr_start_file (fi);
                    ^^^^^^^^^^^^^^^^^^^^
*** Error exit code 2

Stop.
------------------------

Platform is:
------------------------
(hpi2) bashc-3.2.33.0 $ uname -a
HP-UX hpi2 B.11.23 U ia64 1633651702 unlimited-user license
------------------------

Compiler is:
------------------------
(hpi2) bashc-3.2.33.0 $ cc --version                                                                                              
cc: HP aC++/ANSI C B3910B A.05.57 [June 23 2004]
------------------------

I did a little hack patch and it works now. Maybe the patch should more detailed but you know better about it for sure. ;-)

Here it is:
------------------------
(hpi2) bashc-3.2.33.0 $ diff commander.c.orig commander.c                                                                         
2233c2233
<               cmdr_start_file (fi);
---
>               cmdr_start_file ();
------------------------

2. When I'm trying to start the visual mode, it says:

------------------------
hpi2-~/bashc/bashc-3.2.33.0: . examples/startup-files/bash_commander
(hpi2) bashc-3.2.33.0 $ Cannot enable commander: cursor positioning not supported                                                 
------------------------

I suppose I need something like 'ncurses' instead of 'xcurses'. There is a 'ldd' report:

------------------------
(hpi2) bashc-3.2.33.0 $ ldd bashc                                                                                                 
        libxcurses.so.1 =>      /usr/lib/hpux32/libxcurses.so.1
        libdl.so.1 =>   /usr/lib/hpux32/libdl.so.1
        libc.so.1 =>    /usr/lib/hpux32/libc.so.1
------------------------


I understand that HPUX is a pain in the ass but I have to use all these machines from my zoo, that is why I keen to have bashc. ;-)

Anyway, have a look when you have a change.

Regards,
Alexander

Alexander Demin

unread,
Jul 2, 2008, 7:25:47 AM7/2/08
to ba...@googlegroups.com
Also, I've tested on another HPUX (not a ia-64 where it just says 'Cannot enable commander: cursor positioning not supported').
The system is: HP-UX B.11.00 U 9000/800. The screenshot is - hpux11.gif. It works fine. I can browse, I can see the file names but the file cursor is not visible at all.

Keep going... The system is: SunOS 5.10 Generic_118833-03 sun4u sparc SUNW,Sun-Fire-V890
Screenshot: sun54.gif

I guess the problem is similar that I've reported in here -- http://dubolom.livejournal.com/63750.html?thread=472838#t472838. Unfortunately I can install something on these machines into my home folder only. :(

The system: AIX 5.3 powerpc. Screenshot: aix53.gif.

The unix packaging on all these bloody machines are standard without any additional stuff. The TERM is vt100 everywhere.



On Tue, Jul 1, 2008 at 8:30 PM, Serge V. <serge.v...@gmail.com> wrote:
hpux11.gif
sun54.gif
aix53.gif

Serge V.

unread,
Jul 2, 2008, 7:33:56 AM7/2/08
to Bash Commander
> Warning 1042: "commander.c", line 451 # Subscript out of range.
> ...
> Error 181: "commander.c", line 2233 # Expected 0 argument(s) for "void

Fixed and committed, thanks.

> I suppose I need something like 'ncurses' instead of 'xcurses'.

The only thing that is needed for commander mode is a "cm" terminal
capability in termcap or in terminfo. You can check it by "infocmp -C
| grep cm=" (in case of terminfo).
___
Best wishes,
Serge

Alexander Demin

unread,
Jul 2, 2008, 7:41:09 AM7/2/08
to ba...@googlegroups.com
I think 'cm=' is present... See the report:
--------------------------

(hpi2) bashc-3.2.33.0 $ uname -a                                                                                                  
HP-UX hpi2 B.11.23 U ia64 1633651702 unlimited-user license
(hpi2) bashc-3.2.33.0 $ Cannot enable commander: cursor positioning not supported                                                 

(hpi2) bashc-3.2.33.0 $ infocmp -C | grep cm=
        :cl=\E[2J\E[H:cm=\E[%i%d;%dH:cs=\E[%i%d;%dr:ct=\E[3g:\
(hpi2) bashc-3.2.33.0 $
--------------------------

Is it enough?
Reply all
Reply to author
Forward
0 new messages