Ximtool error with suse
Bellido wrote on Mar 16, 2006
Hello,
I've just installed IRAF 2.12.2. and X11 on my pc, but when I enter the ximtool command I get:
ximtool: relocation error: ximtool: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
I used the linux IRAF install on suse 10.0 and xgterm is OK.
Thanks a lot
Ivan
I've just installed IRAF 2.12.2. and X11 on my pc, but when I enter the ximtool command I get:
ximtool: relocation error: ximtool: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
I used the linux IRAF install on suse 10.0 and xgterm is OK.
Thanks a lot
Ivan
Mike Fitzpatrick wrote on Mar 16, 2006
Ivan,
Try using the distribution from
ftp://iraf.noao.edu/pub/fitz/x11iraf-v1.3.2-bin.redhat.tar.gz
This is a RedHat binary but should work under SuSE. Let me know if you still have problems.
Cheers,
-Mike
Try using the distribution from
ftp://iraf.noao.edu/pub/fitz/x11iraf-v1.3.2-bin.redhat.tar.gz
This is a RedHat binary but should work under SuSE. Let me know if you still have problems.
Cheers,
-Mike
Bellido wrote on Mar 16, 2006
fitz
Ivan,
Try using the distribution from
ftp://iraf.noao.edu/pub/fitz/x11iraf-v1.3.2-bin.redhat.tar.gz
This is a RedHat binary but should work under SuSE. Let me know if you still have problems.
Cheers,
-Mike
Hi Mike,
I´ve tried Ds9 and, for the moment, is going well. But I´m going to try the RedHat distribution as well.
Nevertheless, Do you think that Ds9 is a good option? I worked with Saoimage long time ago, but I dont Know anything about Ds9
Cheers,
Ivan
Mike Fitzpatrick wrote on Mar 16, 2006
DS9 has a different interface than XImtool, whether you like/prefer it is a personal choice. In the plus side, it will work with 24-bit display visuals (which ximtool cannot) -- On the minus side however, it cannot display real WCS/pixel values when used as an IRAF display server (which ximtool can). If it works for you go with it.
-Mike
-Mike
osturna wrote on Mar 16, 2006
Hello Mike,
I have installed on Linux openSUSE 10.2 (i586) 10.2 ( 2.6.18.8-0.3-bigsmp i686) IRAF:
cl --version
NOAO PC-IRAF Revision 2.12.2a-EXPORT Wed Jul 14 20:45:34 MST 2004
then installed X11IRAF from x11iraf-v1.3.2-bin.redhat.tar.gz according to:
http://iraf.net/phpBB2/viewtopic.php?t=86278&highlight=iraf+suse
xgterm seems running fine, however ximtool produced error:
ximtool: relocation error: ximtool: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
Attempt to install X11IRAF from the source produced many compilation errors
and failed.
ldd /usr/local/bin/ximtool
linux-gate.so.1 => (0xffffe000)
libXmu.so.6 => /usr/lib/libXmu.so.6 (0xb7f96000)
libXt.so.6 => /usr/lib/libXt.so.6 (0xb7f46000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb7f3c000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb7f23000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb7f13000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7df6000)
libm.so.6 => /lib/libm.so.6 (0xb7dd0000)
libc.so.6 => /lib/libc.so.6 (0xb7ca2000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7c9c000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7c84000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb7c7f000)
libdl.so.2 => /lib/libdl.so.2 (0xb7c7b000)
/lib/ld-linux.so.2 (0xb7fda000)
ls -la /lib/libc.so.6
lrwxrwxrwx 1 root root 11 2007-03-05 02:25 /lib/libc.so.6 -> libc-2.5.s
nm /lib/libc.so.6 | grep 'A GLIBC_2'
00000000 A GLIBC_2.0
00000000 A GLIBC_2.1
00000000 A GLIBC_2.1.1
00000000 A GLIBC_2.1.2
00000000 A GLIBC_2.1.3
00000000 A GLIBC_2.2
00000000 A GLIBC_2.2.1
00000000 A GLIBC_2.2.2
00000000 A GLIBC_2.2.3
00000000 A GLIBC_2.2.4
00000000 A GLIBC_2.2.6
00000000 A GLIBC_2.3
00000000 A GLIBC_2.3.2
00000000 A GLIBC_2.3.3
00000000 A GLIBC_2.3.4
00000000 A GLIBC_2.4
00000000 A GLIBC_2.5
gcc --ver
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --program-suffix=-4.1 --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --host=i586-suse-linux
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)
ld --version
GNU ld version 2.17.50.0.5 20060927 (SUSE Linux)
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
Any suggesions ?
thanks a lot,
osturna
I have installed on Linux openSUSE 10.2 (i586) 10.2 ( 2.6.18.8-0.3-bigsmp i686) IRAF:
cl --version
NOAO PC-IRAF Revision 2.12.2a-EXPORT Wed Jul 14 20:45:34 MST 2004
then installed X11IRAF from x11iraf-v1.3.2-bin.redhat.tar.gz according to:
http://iraf.net/phpBB2/viewtopic.php?t=86278&highlight=iraf+suse
xgterm seems running fine, however ximtool produced error:
ximtool: relocation error: ximtool: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
Attempt to install X11IRAF from the source produced many compilation errors
and failed.
ldd /usr/local/bin/ximtool
linux-gate.so.1 => (0xffffe000)
libXmu.so.6 => /usr/lib/libXmu.so.6 (0xb7f96000)
libXt.so.6 => /usr/lib/libXt.so.6 (0xb7f46000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb7f3c000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb7f23000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb7f13000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7df6000)
libm.so.6 => /lib/libm.so.6 (0xb7dd0000)
libc.so.6 => /lib/libc.so.6 (0xb7ca2000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7c9c000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7c84000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb7c7f000)
libdl.so.2 => /lib/libdl.so.2 (0xb7c7b000)
/lib/ld-linux.so.2 (0xb7fda000)
ls -la /lib/libc.so.6
lrwxrwxrwx 1 root root 11 2007-03-05 02:25 /lib/libc.so.6 -> libc-2.5.s
nm /lib/libc.so.6 | grep 'A GLIBC_2'
00000000 A GLIBC_2.0
00000000 A GLIBC_2.1
00000000 A GLIBC_2.1.1
00000000 A GLIBC_2.1.2
00000000 A GLIBC_2.1.3
00000000 A GLIBC_2.2
00000000 A GLIBC_2.2.1
00000000 A GLIBC_2.2.2
00000000 A GLIBC_2.2.3
00000000 A GLIBC_2.2.4
00000000 A GLIBC_2.2.6
00000000 A GLIBC_2.3
00000000 A GLIBC_2.3.2
00000000 A GLIBC_2.3.3
00000000 A GLIBC_2.3.4
00000000 A GLIBC_2.4
00000000 A GLIBC_2.5
gcc --ver
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --program-suffix=-4.1 --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --host=i586-suse-linux
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)
ld --version
GNU ld version 2.17.50.0.5 20060927 (SUSE Linux)
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
Any suggesions ?
thanks a lot,
osturna
Mike Fitzpatrick wrote on Mar 16, 2006
I haven't got access to a linux box with gcc 4.1, but you can try building from source locally using ftp://iraf.noao.edu/pub/fitz/x11iraf-new_gcc.tgz. Download in binary mode and then in some directory, unpack and build with the commands:
I'm sure there is also some sort of gcc compatability library that could be installed as well but off hand I don't know what it would be called for your platform. Anyway, let us know whether this works or not.
Cheers,
-Mike
% tar zxf /path/x11iraf-new_gcc.tgz
% xmkmf
% make World
I'm sure there is also some sort of gcc compatability library that could be installed as well but off hand I don't know what it would be called for your platform. Anyway, let us know whether this works or not.
Cheers,
-Mike
osturna wrote on Mar 16, 2006
Hello Mike,
pwd
/opt/iraf/x11iraf.src
wget ftp://iraf.noao.edu/pub/fitz/x11iraf-new_gcc.tgz .
su
xmkmf
make World
gccmakedep -I.. -I. -DHAVE_UNISTD_H=1 -- -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BIT
S=64 -DFUNCPROTO=15 -DNARROWPROTO
-- panic.c regexp.c tclAppInit.c tclAsync.c tclBasic.c tclCkalloc.c tclCmdAH.c tclCmdIL.c tclCmdMZ.c tclEnv.c tclExpr.c tclGet.c tclGlob.c tclHash.c tclHistory.c tclLink.c tclMain.c tclMtherr.c tclParse.c tclProc.c tclTest.c tclUnixAZ.c tclUnixStr.c tclUnixUtil.c tclUtil.c tclVar.c
In file included from tclInt.h:75,
from regexp.c:35:
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
In file included from tclInt.h:75, from tclAsync.c:34:
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
In file included from tclInt.h:75, from tclBasic.c:33:
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
In file included from tclInt.h:75, from tclCkalloc.c:30:
about 50 errors on ......
In file included from tclInt.h:75, from tclCkalloc.c:30:
charproc.c:3790: warning: return type defaults to ?int?
charproc.c:3804: warning: return type defaults to ?int?
make[2]: *** [charproc.o] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/xgterm'
making all in ./ximtool...
make[2]: Entering directory `/opt/iraf/x11iraf.src/ximtool'
rm -f ximtool
gcc -m32 -o ximtool -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -L/opt/iraf/x11iraf.src
/lib -L../lib -L/usr/lib eps.o iis.o load.o print.o raster.o save.o rasio.o fitsio.o ximclient.o ximtool.o quant.o util.o zscale.o gifio.o tiffio.o irafio.o ism.o ism_wcspix.o -lobm -lXpm -lXaw3d -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 -lm /usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lobm
collect2: ld returned 1 exit status
make[2]: *** [ximtool] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/ximtool'
making all in ./xtapemon...
make[2]: Entering directory `/opt/iraf/x11iraf.src/xtapemon'
rm -f xtapemon
gcc -m32 -o xtapemon -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -L../lib -L/opt/iraf/x
11iraf.src/lib -L../lib -L/usr/lib classnames.o types.o xtapemon.o -lobm -lXpm -lXaw3d -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 -lm
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lobm
collect2: ld returned 1 exit status
make[2]: *** [xtapemon] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/xtapemon'
making all in ./obmsh...
make[2]: Entering directory `/opt/iraf/x11iraf.src/obmsh'
rm -f obmsh
gcc -m32 -o obmsh -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -L/opt/iraf/x11iraf.src/l
ib -L../lib -L/usr/lib obmsh.o -lobm -lXpm -lXaw3d -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 -lm
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lobm
collect2: ld returned 1 exit status
make[2]: *** [obmsh] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/obmsh'
making all in ./vximtool...
make[2]: Entering directory `/opt/iraf/x11iraf.src/vximtool'
rm -f vximtool
gcc -m32 -o vximtool -DHAVE_CDL vximtool.o -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing
-L/opt/iraf/x11iraf.src/lib -L../lib -L/usr/lib -lcdl -lm
/usr/local/lib/libcdl.a(imd.o): In function `imd_setWCS':
imd.c:(.text+0x912): warning: the `getwd' function is dangerous and should not be used.
/usr/local/lib/libcdl.a(cdl.o): In function `cdl_printPix':
cdl.c:(.text+0xf1f): warning: the use of `mktemp' is dangerous, better use `mkstemp'
/usr/local/lib/libcdl.a(imd.o): In function `imd_parseImtdev':
imd.c:(.text+0x206f): undefined reference to `__ctype_b'
imd.c:(.text+0x20de): undefined reference to `__ctype_b'
/usr/local/lib/libcdl.a(imd.o): In function `imd_loadImtoolrc':
imd.c:(.text+0x2341): undefined reference to `__ctype_b'
/usr/local/lib/libcdl.a(imd.o): In function `imd_getstr':
imd.c:(.text+0x24c8): undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
make[2]: *** [vximtool] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/vximtool'
make[1]: *** [apps] Error 2
make[1]: Leaving directory `/opt/iraf/x11iraf.src'
make: *** [World] Error 2
Replacing <varargs.h> to use <stdarg.h> did not get much further.
thank you,
osturna
pwd
/opt/iraf/x11iraf.src
wget ftp://iraf.noao.edu/pub/fitz/x11iraf-new_gcc.tgz .
su
xmkmf
make World
gccmakedep -I.. -I. -DHAVE_UNISTD_H=1 -- -I/usr/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BIT
S=64 -DFUNCPROTO=15 -DNARROWPROTO
-- panic.c regexp.c tclAppInit.c tclAsync.c tclBasic.c tclCkalloc.c tclCmdAH.c tclCmdIL.c tclCmdMZ.c tclEnv.c tclExpr.c tclGet.c tclGlob.c tclHash.c tclHistory.c tclLink.c tclMain.c tclMtherr.c tclParse.c tclProc.c tclTest.c tclUnixAZ.c tclUnixStr.c tclUnixUtil.c tclUtil.c tclVar.c
In file included from tclInt.h:75,
from regexp.c:35:
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
In file included from tclInt.h:75, from tclAsync.c:34:
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
In file included from tclInt.h:75, from tclBasic.c:33:
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
In file included from tclInt.h:75, from tclCkalloc.c:30:
about 50 errors on ......
In file included from tclInt.h:75, from tclCkalloc.c:30:
charproc.c:3790: warning: return type defaults to ?int?
charproc.c:3804: warning: return type defaults to ?int?
make[2]: *** [charproc.o] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/xgterm'
making all in ./ximtool...
make[2]: Entering directory `/opt/iraf/x11iraf.src/ximtool'
rm -f ximtool
gcc -m32 -o ximtool -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -L/opt/iraf/x11iraf.src
/lib -L../lib -L/usr/lib eps.o iis.o load.o print.o raster.o save.o rasio.o fitsio.o ximclient.o ximtool.o quant.o util.o zscale.o gifio.o tiffio.o irafio.o ism.o ism_wcspix.o -lobm -lXpm -lXaw3d -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 -lm /usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lobm
collect2: ld returned 1 exit status
make[2]: *** [ximtool] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/ximtool'
making all in ./xtapemon...
make[2]: Entering directory `/opt/iraf/x11iraf.src/xtapemon'
rm -f xtapemon
gcc -m32 -o xtapemon -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -L../lib -L/opt/iraf/x
11iraf.src/lib -L../lib -L/usr/lib classnames.o types.o xtapemon.o -lobm -lXpm -lXaw3d -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 -lm
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lobm
collect2: ld returned 1 exit status
make[2]: *** [xtapemon] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/xtapemon'
making all in ./obmsh...
make[2]: Entering directory `/opt/iraf/x11iraf.src/obmsh'
rm -f obmsh
gcc -m32 -o obmsh -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -L/opt/iraf/x11iraf.src/l
ib -L../lib -L/usr/lib obmsh.o -lobm -lXpm -lXaw3d -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 -lm
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lobm
collect2: ld returned 1 exit status
make[2]: *** [obmsh] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/obmsh'
making all in ./vximtool...
make[2]: Entering directory `/opt/iraf/x11iraf.src/vximtool'
rm -f vximtool
gcc -m32 -o vximtool -DHAVE_CDL vximtool.o -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing
-L/opt/iraf/x11iraf.src/lib -L../lib -L/usr/lib -lcdl -lm
/usr/local/lib/libcdl.a(imd.o): In function `imd_setWCS':
imd.c:(.text+0x912): warning: the `getwd' function is dangerous and should not be used.
/usr/local/lib/libcdl.a(cdl.o): In function `cdl_printPix':
cdl.c:(.text+0xf1f): warning: the use of `mktemp' is dangerous, better use `mkstemp'
/usr/local/lib/libcdl.a(imd.o): In function `imd_parseImtdev':
imd.c:(.text+0x206f): undefined reference to `__ctype_b'
imd.c:(.text+0x20de): undefined reference to `__ctype_b'
/usr/local/lib/libcdl.a(imd.o): In function `imd_loadImtoolrc':
imd.c:(.text+0x2341): undefined reference to `__ctype_b'
/usr/local/lib/libcdl.a(imd.o): In function `imd_getstr':
imd.c:(.text+0x24c8): undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
make[2]: *** [vximtool] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/vximtool'
make[1]: *** [apps] Error 2
make[1]: Leaving directory `/opt/iraf/x11iraf.src'
make: *** [World] Error 2
Replacing <varargs.h> to use <stdarg.h> did not get much further.
thank you,
osturna
Mike Fitzpatrick wrote on Mar 16, 2006
Try the sources at http://iraf.net/ftp/iraf/x11iraf/x11iraf-v1.5DEV-src.tar.gz, I seem to remember fixing the varargs thing for the macintel port.
-Mike
-Mike
osturna wrote on Mar 16, 2006
same result.. with many warnings and errors, ximtool failed to build
osturna.
----------------------------------------------------------------------------------
wget http://iraf.net/ftp/iraf/x11iraf/x11iraf-v1.5DEV-src.tar.gz
su
xmkmf
make World
.....
button.c:1407: warning: implicit declaration of function âScrnGetAttributesâ
make[2]: *** [button.o] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/xgterm'
making all in ./ximtool...
make[2]: Entering directory `/opt/iraf/x11iraf.src/ximtool'
rm -f ximtool
gcc -m32 -o ximtool -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -L/opt/iraf/x11iraf.src/lib -L../lib -L/usr/lib eps.o iis.o load.o print.o raster.o save.o rasio.o fitsio.o ximclient.o ximtool.o quant.o util.o zscale.o gifio.o tiffio.o irafio.o ism.o ism_wcspix.o -lobm -lXpm -lXaw3d -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 -lm
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lobm
collect2: ld returned 1 exit status
make[2]: *** [ximtool] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/ximtool'
making all in ./xtapemon...
make[2]: Entering directory `/opt/iraf/x11iraf.src/xtapemon'
rm -f xtapemon
gcc -m32 -o xtapemon -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -L../lib -L/opt/iraf/x11iraf.src/lib -L../lib -L/usr/lib classnames.o types.o xtapemon.o -lobm -lXpm -lXaw3d -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 -lm
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lobm
collect2: ld returned 1 exit status
make[2]: *** [xtapemon] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/xtapemon'
making all in ./obmsh...
make[2]: Entering directory `/opt/iraf/x11iraf.src/obmsh'
rm -f obmsh
gcc -m32 -o obmsh -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -L/opt/iraf/x11iraf.src/lib -L../lib -L/usr/lib obmsh.o -lobm -lXpm -lXaw3d -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 -lm
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lobm
collect2: ld returned 1 exit status
make[2]: *** [obmsh] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/obmsh'
making all in ./vximtool...
make[2]: Entering directory `/opt/iraf/x11iraf.src/vximtool'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/iraf/x11iraf.src/vximtool'
make[1]: Leaving directory `/opt/iraf/x11iraf.src'
make install X11IRAFDIR=$PWD
make[1]: Entering directory `/opt/iraf/x11iraf.src'
installing in ./obm...
make[2]: Entering directory `/opt/iraf/x11iraf.src/obm'
making all in obm/Tcl...
make[3]: Entering directory `/opt/iraf/x11iraf.src/obm/Tcl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/iraf/x11iraf.src/obm/Tcl'
making all in obm/ObmW...
make[3]: Entering directory `/opt/iraf/x11iraf.src/obm/ObmW'
gcc -m32 -g -I../../include -I/usr/include -Dlinux -D__i386__ -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
In file included from HTML-PSformat.c:54:
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
HTML-PSformat.c: In function âPSprintfâ:
HTML-PSformat.c:227: error: expected declaration specifiers before âva_dclâ
HTML-PSformat.c:269: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âunsignedâ
HTML-PSformat.c:269: error: declaration for parameter âflushâ but no such parameter
HTML-PSformat.c:275: error: âvalâ undeclared (first use in this function)
HTML-PSformat.c:275: error: (Each undeclared identifier is reported only once
HTML-PSformat.c:275: error: for each function it appears in.)
make[3]: *** [HTML-PSformat.o] Error 1
make[3]: Leaving directory `/opt/iraf/x11iraf.src/obm/ObmW'
make[2]: *** [ObmW] Error 2
make[2]: Leaving directory `/opt/iraf/x11iraf.src/obm'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/opt/iraf/x11iraf.src'
make: *** [World] Error 2
osturna.
----------------------------------------------------------------------------------
wget http://iraf.net/ftp/iraf/x11iraf/x11iraf-v1.5DEV-src.tar.gz
su
xmkmf
make World
.....
button.c:1407: warning: implicit declaration of function âScrnGetAttributesâ
make[2]: *** [button.o] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/xgterm'
making all in ./ximtool...
make[2]: Entering directory `/opt/iraf/x11iraf.src/ximtool'
rm -f ximtool
gcc -m32 -o ximtool -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -L/opt/iraf/x11iraf.src/lib -L../lib -L/usr/lib eps.o iis.o load.o print.o raster.o save.o rasio.o fitsio.o ximclient.o ximtool.o quant.o util.o zscale.o gifio.o tiffio.o irafio.o ism.o ism_wcspix.o -lobm -lXpm -lXaw3d -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 -lm
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lobm
collect2: ld returned 1 exit status
make[2]: *** [ximtool] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/ximtool'
making all in ./xtapemon...
make[2]: Entering directory `/opt/iraf/x11iraf.src/xtapemon'
rm -f xtapemon
gcc -m32 -o xtapemon -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -L../lib -L/opt/iraf/x11iraf.src/lib -L../lib -L/usr/lib classnames.o types.o xtapemon.o -lobm -lXpm -lXaw3d -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 -lm
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lobm
collect2: ld returned 1 exit status
make[2]: *** [xtapemon] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/xtapemon'
making all in ./obmsh...
make[2]: Entering directory `/opt/iraf/x11iraf.src/obmsh'
rm -f obmsh
gcc -m32 -o obmsh -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -L/opt/iraf/x11iraf.src/lib -L../lib -L/usr/lib obmsh.o -lobm -lXpm -lXaw3d -lXmu -lXt -lSM -lICE -lXpm -lXp -lXext -lX11 -lm
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -lobm
collect2: ld returned 1 exit status
make[2]: *** [obmsh] Error 1
make[2]: Leaving directory `/opt/iraf/x11iraf.src/obmsh'
making all in ./vximtool...
make[2]: Entering directory `/opt/iraf/x11iraf.src/vximtool'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/iraf/x11iraf.src/vximtool'
make[1]: Leaving directory `/opt/iraf/x11iraf.src'
make install X11IRAFDIR=$PWD
make[1]: Entering directory `/opt/iraf/x11iraf.src'
installing in ./obm...
make[2]: Entering directory `/opt/iraf/x11iraf.src/obm'
making all in obm/Tcl...
make[3]: Entering directory `/opt/iraf/x11iraf.src/obm/Tcl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/iraf/x11iraf.src/obm/Tcl'
making all in obm/ObmW...
make[3]: Entering directory `/opt/iraf/x11iraf.src/obm/ObmW'
gcc -m32 -g -I../../include -I/usr/include -Dlinux -D__i386__ -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
In file included from HTML-PSformat.c:54:
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i586-suse-linux/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
HTML-PSformat.c: In function âPSprintfâ:
HTML-PSformat.c:227: error: expected declaration specifiers before âva_dclâ
HTML-PSformat.c:269: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âunsignedâ
HTML-PSformat.c:269: error: declaration for parameter âflushâ but no such parameter
HTML-PSformat.c:275: error: âvalâ undeclared (first use in this function)
HTML-PSformat.c:275: error: (Each undeclared identifier is reported only once
HTML-PSformat.c:275: error: for each function it appears in.)
make[3]: *** [HTML-PSformat.o] Error 1
make[3]: Leaving directory `/opt/iraf/x11iraf.src/obm/ObmW'
make[2]: *** [ObmW] Error 2
make[2]: Leaving directory `/opt/iraf/x11iraf.src/obm'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/opt/iraf/x11iraf.src'
make: *** [World] Error 2
Mike Fitzpatrick wrote on Mar 16, 2006
I've uploaded a new version of the x11iraf v1.5 source tarball that should now build under the gcc 4.1 compilers, as well as RedHat binaries built under FC6. These are both available from http://iraf.net/ftp/iraf/x11iraf, if the binaries don't work try using the new sources to build.
-Mike
-Mike
Last post on Mar 16, 2006