Anybody knows HP-48GX emulator for Linux?
X48 (last version available at www.hpcalc.org) doesn't want to compile
with GCC 3.3.5; and Emu48 under WINE doesn't work properly (colors are
all wrong and it is slow).
I use Ubuntu Linux 5.04.
Errors that x48 compile give:
~/x48-0.5.0$ ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for inline... (cached) inline
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached)
yes
checking whether struct tm is in sys/time.h or time.h... (cached)
time.h
checking whether gcc needs -traditional... (cached) no
checking for 8-bit clean memcmp... (cached) yes
checking for gettimeofday... (cached) yes
checking for mkdir... (cached) yes
checking for select... (cached) yes
checking for strdup... (cached) yes
checking for gtk-config... (cached) /usr/bin/gtk-config
checking for GTK - version >= 1.0.0... yes
creating ./config.status
creating data/Makefile
creating doc/Makefile
creating pixmaps/Makefile
creating src/Makefile
creating Makefile
creating config.h
config.h is unchanged
~/x48-0.5.0$ make
make: Dependência circular stamp-h.in <- acconfig.h abandonada.
make all-recursive
make[1]: Entrando no diretório `/home/renan/x48-0.5.0'
Making all in data
make[2]: Entrando no diretório `/home/renan/x48-0.5.0/data'
make[2]: Nada a ser feito para `all'.
make[2]: Saindo do diretório `/home/renan/x48-0.5.0/data'
Making all in doc
make[2]: Entrando no diretório `/home/renan/x48-0.5.0/doc'
make[2]: Nada a ser feito para `all'.
make[2]: Saindo do diretório `/home/renan/x48-0.5.0/doc'
Making all in pixmaps
make[2]: Entrando no diretório `/home/renan/x48-0.5.0/pixmaps'
make[2]: Nada a ser feito para `all'.
make[2]: Saindo do diretório `/home/renan/x48-0.5.0/pixmaps'
Making all in src
make[2]: Entrando no diretório `/home/renan/x48-0.5.0/src'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -g -O2
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-Wall -DLINUX -DDATADIR=\"/usr/local/share\" -c actions.c
actions.c:405:8: macro names must be identifiers
make[2]: ** [actions.o] Erro 1
make[2]: Saindo do diretório `/home/renan/x48-0.5.0/src'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/home/renan/x48-0.5.0'
make: ** [all-recursive-am] Erro 2
Thanks.
> Hello,
>
> Anybody knows HP-48GX emulator for Linux?
> X48 (last version available at www.hpcalc.org) doesn't want to compile
> with GCC 3.3.5; and Emu48 under WINE doesn't work properly (colors are
> all wrong and it is slow).
>
> I use Ubuntu Linux 5.04.
>
> Errors that x48 compile give:
>
> ~/x48-0.5.0$ ./configure
> loading cache ./config.cache
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> checking for working aclocal... missing
> checking for working autoconf... missing
> checking for working automake... missing
> checking for working autoheader... missing
> checking for working makeinfo... missing
Looks like you are missing some of the development software...not sure
but I think this is part of the Qt_devel package stuff.
Without these, ./configure will likely fail.
> make: Dependˆncia circular stamp-h.in <- acconfig.h abandonada.
> make all-recursive
> make[1]: Entrando no diret¢rio `/home/renan/x48-0.5.0'
> Making all in data
> make[2]: Entrando no diret¢rio `/home/renan/x48-0.5.0/data'
> make[2]: Nada a ser feito para `all'.
> make[2]: Saindo do diret¢rio `/home/renan/x48-0.5.0/data'
> Making all in doc
> make[2]: Entrando no diret¢rio `/home/renan/x48-0.5.0/doc'
> make[2]: Nada a ser feito para `all'.
> make[2]: Saindo do diret¢rio `/home/renan/x48-0.5.0/doc'
> Making all in pixmaps
> make[2]: Entrando no diret¢rio `/home/renan/x48-0.5.0/pixmaps'
> make[2]: Nada a ser feito para `all'.
> make[2]: Saindo do diret¢rio `/home/renan/x48-0.5.0/pixmaps'
> Making all in src
> make[2]: Entrando no diret¢rio `/home/renan/x48-0.5.0/src'
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -g -O2
> -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
> -Wall -DLINUX -DDATADIR=\"/usr/local/share\" -c actions.c
> actions.c:405:8: macro names must be identifiers
> make[2]: ** [actions.o] Erro 1
> make[2]: Saindo do diret¢rio `/home/renan/x48-0.5.0/src'
> make[1]: ** [all-recursive] Erro 1
> make[1]: Saindo do diret¢rio `/home/renan/x48-0.5.0'
> make: ** [all-recursive-am] Erro 2
There is problem with the actions.c source file at about line 405...I
have no idea what the error actually means in terms of coding. You
will have to dive into your reference texts, or google heavily!
Probably you need some particular syntax to describe a macro name...
But once one source file fails, compilation stops.
Geoff
> On Wed, 12 Oct 2005 17:30:00 UTC, "Renan" <renan...@gmail.com>
> wrote:
>
>> Hello,
>>
>> Anybody knows HP-48GX emulator for Linux?
>> X48 (last version available at www.hpcalc.org) doesn't want to compile
>> with GCC 3.3.5; and Emu48 under WINE doesn't work properly (colors are
>> all wrong and it is slow).
There's also x48-0.4.3 at http://developer.berlios.de/projects/x48/
Some of the bugs of 0.4.1e were fixed, and it compiles out of the box on
Fedora Core 4.
-- alain.
However, when I try to run it I get:
$ x48 -initialize
bash: /usr/bin/x48: No such file or directory
In fact, no commands seem to work:
renan@temptation:~$ x48 -h
bash: /usr/bin/x48: No such file or directory
renan@temptation:~$ x48 -?
bash: /usr/bin/x48: No such file or directory
renan@temptation:~$ x48 --help
bash: /usr/bin/x48: No such file or directory
renan@temptation:/usr/bin$ file x48
x48: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), stripped.
By looking directly at the executable, seems that I'm missing
/lib/ld-linux.so.1, however I have ld-linux.so.2; so I tried making
symlink but it don't work:
renan@temptation:/lib$ sudo ln -s ld-linux.so.2 ld-linux.so.1
renan@temptation:/lib$ x48
x48: symbol lookup error: x48: undefined symbol: _errno
ld-linux.so.1 seems to refer to older libc library versions.
"There is problem with the actions.c source file at about line 405...I
have no idea what the error actually means in terms of coding. You
will have to dive into your reference texts, or google heavily!
Probably you need some particular syntax to describe a macro name...
But once one source file fails, compilation stops. "
IIRC, it says "#ifdef 0" which is wrong for C (0 is a macro name here,
and macro name can't start with number, therefore it gives error).
Sadly, I'm no C programmer (actually, I'm learning, but my knowledge is
not enough to fix this)...
> x48 0.4.3 compiles now in Ubuntu 5.04.
>
> However, when I try to run it I get:
>
> $ x48 -initialize
> bash: /usr/bin/x48: No such file or directory
I have not looked at this particular program, but this looks like the
compile has put the executable somewhere else: not in your path, or it
is not executable. Did you 'chmod 777 x48' ??
> In fact, no commands seem to work:
>
> renan@temptation:~$ x48 -h
> bash: /usr/bin/x48: No such file or directory
> renan@temptation:~$ x48 -?
> bash: /usr/bin/x48: No such file or directory
> renan@temptation:~$ x48 --help
> bash: /usr/bin/x48: No such file or directory
>
> renan@temptation:/usr/bin$ file x48
> x48: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> dynamically linked (uses shared libs), stripped.
>
> By looking directly at the executable, seems that I'm missing
> /lib/ld-linux.so.1, however I have ld-linux.so.2; so I tried making
> symlink but it don't work:
>
> renan@temptation:/lib$ sudo ln -s ld-linux.so.2 ld-linux.so.1
> renan@temptation:/lib$ x48
> x48: symbol lookup error: x48: undefined symbol: _errno
>
> ld-linux.so.1 seems to refer to older libc library versions.
Did you try re-compiling the program *after* making this symlink? That
might fix the 'undefined symbol' error.
> "There is problem with the actions.c source file at about line 405...I
> have no idea what the error actually means in terms of coding. You
> will have to dive into your reference texts, or google heavily!
> Probably you need some particular syntax to describe a macro name...
> But once one source file fails, compilation stops. "
>
> IIRC, it says "#ifdef 0" which is wrong for C (0 is a macro name here,
> and macro name can't start with number, therefore it gives error).
>
> Sadly, I'm no C programmer (actually, I'm learning, but my knowledge is
> not enough to fix this)...
I guess you will have to look at the source code and fix this error by
hand...
And I haven't even seen my copy of Kernighan and Ritchie iun about 10
years. So if I ever was an expert, my rating has expired!
Geoff