Welcome to iraf.net Friday, May 10 2024 @ 05:04 PM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 Error compiling x11iraf.
   
opsman
 09/10/2010 04:25PM (Read 3821 times)  
+----
Newbie

Status: offline


Registered: 09/10/2010
Posts: 2
I am trying to build x11iraf under gentoo linux, but it fails with this error:[code:1:e33d0722a3]making all in obm/ObmW...
make[3]: Entering directory `/home/iraf/x11iraf/obm/ObmW'
gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -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:57:
/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
HTML-PSformat.c: In function ‘PSprintf’:
HTML-PSformat.c:230: error: expected declaration specifiers before ‘va_dcl’
HTML-PSformat.c:272: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘unsigned’
HTML-PSformat.c:272: error: declaration for parameter ‘flush’ but no such parameter
HTML-PSformat.c:278: error: ‘val’ undeclared (first use in this function)
HTML-PSformat.c:278: error: (Each undeclared identifier is reported only once
HTML-PSformat.c:278: error: for each function it appears in.)
make[3]: *** [HTML-PSformat.o] Error 1
make[3]: Leaving directory `/home/iraf/x11iraf/obm/ObmW'
make[2]: *** [ObmW] Error 2
make[2]: Leaving directory `/home/iraf/x11iraf/obm'
make[1]: *** [libs] Error 2
make[1]: Leaving directory `/home/iraf/x11iraf'
make: *** [World] Error 2
[/code:1:e33d0722a3]My compiler details:[code:1:e33d0722a3]% gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.4.3-r2/work/gcc-4.4.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.4.3 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.3/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/i686-pc-linux-gnu/4.4.3/python --with-arch=i686 --enable-languages=c,c++,java,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.3-r2 p1.2'
Thread model: posix
gcc version 4.4.3 (Gentoo 4.4.3-r2 p1.2)
[/code:1:e33d0722a3]How do I fix this?

 
Profile Email
 Quote
fitz
 09/10/2010 04:25PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Assuming you're using the X11IRAF v2.0 distribution and not something earlier..... Edit the x11iraf$obm/ObmW/Imakefile to reset the CCOPTIONS flags to add a '-DUSE_STDARG' flag. Specifically, starting at line 24 the code should read[code:1:3599067edb]
#if ((GccMajorVersion >= 3) && (GccMinorVersion >= 1))
CCOPTIONS = -DUSE_STDARG
#else
CCOPTIONS =
#endif
[/code:1:3599067edb]Note that the test for the GccMajorVersion goes from "== 3" to ">= 3". Otherwise, try using the prebuilt binaries.

 
Profile Email
 Quote
opsman
 09/10/2010 04:25PM  
+----
Newbie

Status: offline


Registered: 09/10/2010
Posts: 2
Thanks for the prompt assistance! That got me past that hurdle. Unfortunately, I hit another (some warnings then an error):[code:1:ea3c8fdf28]gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -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 -DALLOWLOGGING -c -o screen.o screen.c
screen.c: In function ‘Reallocate’:
screen.c:129: warning: incompatible implicit declaration of built-in function ‘realloc’
screen.c:159: warning: incompatible implicit declaration of built-in function ‘free’
gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -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 -DALLOWLOGGING -c -o scrollbar.o scrollbar.c
scrollbar.c: In function ‘ScrollBarOn’:
scrollbar.c:340: warning: incompatible implicit declaration of built-in function ‘realloc’
gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -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 -DALLOWLOGGING -c -o button.o button.c
button.c:43: error: conflicting types for ‘malloc’
make[2]: *** [button.o] Error 1
make[2]: Leaving directory `/home/iraf/x11iraf/xgterm'
make[1]: *** [apps] Error 2
make[1]: Leaving directory `/home/iraf/x11iraf'
make: *** [World] Error 2[/code:1:ea3c8fdf28]I have installed the redhat binaries successfully, and will see how that goes.

 
Profile Email
 Quote
   
Content generated in: 0.09 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login