View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Xgterm on an AMD 64 running Debian 4.0

sakenjm wrote on May 17, 2007

Hi,

I'm having trouble getting xgterm to work on an AMD 64 running Debian 4.0 due to what appears to be a common error with shared libraries. I'm trying to use the linux 32-bit binary.

None of the solutions I've found so far in the forum archives seem to work.

The error is:

xgterm: error while loading shared libraries: libXmu.so.6: cannot open shared object file: No such file or directory

Running ldd /usr/local/bin/xgterm yields:

linux-gate.so.1 => (0xffffe000)
libXmu.so.6 => not found
libXt.so.6 => not found
libSM.so.6 => not found
libICE.so.6 => not found
libXext.so.6 => not found
libX11.so.6 => not found
libncurses.so.5 => not found
libm.so.6 => /lib32/libm.so.6 (0xf7f77000)
libc.so.6 => /lib32/libc.so.6 (0xf7e4b000)
/lib/ld-linux.so.2 (0xf7fae000)

I can verify that all the "not found" libraries are there, and with the proper versions, in /usr/lib and /lib. I also tried rerunning ldconfig, just to make sure.

I took a stab at compiling the binaries, both 1.3 and 1.5DEV with no luck. Any help would be greatly appreciated.

Thanks.

jon saken

Mike Fitzpatrick wrote on May 17, 2007

Jon,

I'm travelling at the moment and don't have access to a Debian 4 system. What exactly were the compilation errors from the v1.5DEV code? What version of the X shared libraries do you have on your system?

-Mike

sakenjm wrote on May 17, 2007

Hi,

Thanks for the response. I saved the whole output from the compliation, but it's rather long. I could send that separately. The errors mostly seem to be like this:

make[3]: Entering directory `/root/x11iraf/obm/ObmW'
gcc -g -g -I../../include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -D_NO_PROTO -c -w HTML-PSformat.c
HTML-PSformat.c:64:2: error: #endif without #if
HTML-PSformat.c: In function âPSprintfâ:
HTML-PSformat.c:224: error: expected declaration specifiers before âva_dclâ
HTML-PSformat.c:242:15: error: macro "va_start" requires 2 arguments, but only 1 given
HTML-PSformat.c:266: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âunsignedâ
HTML-PSformat.c:266: error: declaration for parameter âflushâ but no such parameter
HTML-PSformat.c:272: error: âvalâ undeclared (first use in this function)
HTML-PSformat.c:272: error: (Each undeclared identifier is reported only once
HTML-PSformat.c:272: error: for each function it appears in.)
make[3]: *** [HTML-PSformat.o] Error 1
make[3]: Leaving directory `/root/x11iraf/obm/ObmW'
make[2]: *** [ObmW] Error 2

(Sorry about the font weirdness.)

Here are the versions on the xlibs:

libX11.so.6.2.0 libXfont.so.1.4.1 libXTrap.so.6.4.0
libXau.so.6.0.0 libXft.so.2.1.2 libXt.so.6.0.0
libXaw3d.so.6.1 libXinerama.so.1.0.0 libXtst.so.6.1.0
libXaw6.so.6.0.1 libXi.so.6.0.0 libXvMC.so.1.0.0
libXaw7.so.7.0.0 libXmu.so.6.2.0 libXvMCW.so.1.0.0
libXcomposite.so.1.0.0 libXmuu.so.1.0.0 libXv.so.1.0.0
libXcursor.so.1.0.2 libXpm.so.4.11.0 libXxf86dga.so.1.0.0
libXdamage.so.1.0.0 libXp.so.6.2.0 libXxf86misc.so.1.1.0
libXdmcp.so.6.0.0 libXrandr.so.2.0.0 libXxf86vm.so.1.0.0
libXext.so.6.4.0 libXrender.so.1.3.0
libXfixes.so.3.1.0 libXss.so.1.0.0

Thanks for your help.

jon

Michael Weber wrote on May 17, 2007

You need to put a

-DUSE_STDARG

into the compilation of obmw

I just put it into obm/ObmW/Imakefile:
EXTRA_DEFINES = -D_NO_PROTO -DUSE_STDARG

There was also some strange warnings and an error about tables.h. I can tell what I did to get them away if they bother you.

Michael

sakenjm wrote on May 17, 2007

Thanks for the last hint. It got me much closer (there were far fewer error messages). I still seem to have a few more that are keeping it from compiling.

Again, I can send the whole log file if requested, but here is my best guess for the relevant errors:

make[3]: Entering directory `/root/x11iraf-v1.5/obm/ObmW'
gcc -g -O2 -fno-strict-aliasing -g -I../../include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L $
HTML-PSformat.c:64:2: error: #endif without #if
make[3]: *** [HTML-PSformat.o] Error 1

make[2]: Entering directory `/root/x11iraf-v1.5/xgterm'
gcc -g -O2 -fno-strict-aliasing -g -I../include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DALLOWLOGGING -c -o button.o button.c
button.c:43: error: conflicting types for ‘malloc’
make[2]: *** [button.o] Error 1

I think these are all that is left. Thanks for any help you can give.

jon

Mike Fitzpatrick wrote on May 17, 2007

Hi Jon,

The error in the xgterm/button.c can probably be fixed by simply removing the declaration for the malloc. For the HTML-PSFormat.c file I'm not sure I believe you're using the v1.5DEV sources -- In earlier release there is an ifdef that was commented out but the closing '*/' on the comment is missing. I just checked the tarball in the download area and it is there so it might just be some confusion about the version. In either case I note the -DUSE_STDARG is missing from the command line flags. Hope this helps.

Cheers,
-Mike

sakenjm wrote on May 17, 2007

Hi,

I got this one form http://iraf.net/ftp/iraf/X11. Is there another place I should go?

Also, should I add the -DUSE_STDARG compiler flag to other Imakefiles in the other subdirectories?

And finally, I also see that missing table.h, so if that's a problem please let me know.

Thanks.

jon

Last post on May 17, 2007