Unable to compile rlib 1.3.0 Opteron 64 bit CPU

"Billy Shaw" <[email protected]>
Newsgroups gmane.text.rlib.user
Message-ID <51084.167.206.132.252.1104269014.squirrel@webmail.sceneunseen.com>
Hello,

I am trying to compile rlib 1.3.0 on a server with dual AMD Opteron (tm)
Processor 848 (64 bit) CPU's running Red Hat Enterprise Linux AS (version
3 update 2).

Info about server:
[foo rlib-1.3.0]$ uname -a
Linux host.somewhere.com 2.4.21-15.ELsmp #1 SMP Thu Apr 22 00:09:01 EDT
2004 x86_64 x86_64 x86_64 GNU/Linux
[foo rlib-1.3.0]$

I am using GNU Make 3.8.0, gcc version 3.4.3. The configure script works
fine (see output below), but make gives an error about conflicting types
for llabs. I have tried enabling and disabling various options availble to
configure (disabling everything) and still get the error.

Any help to get this compiled would be greatly appreciated.



Output of configure:
[foo rlib-1.3.0]$ ./configure --with-pythonver=2.4
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached)
yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for exit in -lc... yes
checking for exp in -lm... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking for libxml-2.0 >= 2.6.0... yes
checking LIBXML_CFLAGS... -I/usr/local/include/libxml2
checking LIBXML_LIBS... -L/usr/local/lib -lxml2 -lpthread -lz -lm
checking for glib-2.0 >= 0.0.1... yes
checking LIBGLIB_CFLAGS... -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include
checking LIBGLIB_LIBS... -L/usr/local/lib -lglib-2.0
checking for gmodule-2.0 >= 0.0.1... yes
checking LIBGMODULE_CFLAGS... -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include
checking LIBGMODULE_LIBS... -Wl,--export-dynamic -L/usr/local/lib
-lgmodule-2.0 -ldl -lglib-2.0
checking for mysql_config... /usr/bin/mysql_config
checking for pg_config... /usr/bin/pg_config
checking for ODBC files... configure: WARNING: ODBC input method is not
going to be used
checking for php-config... no
*** WARNING: PHP NOT FOUND IN PATH.  RLIB WILL NOT BE COMPILED WITH
SUPPORT FOR IT
TEST 1
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/local/bin/python
checking for python version... 2.4
checking for python platform... linux2
TEST 2
-I ${prefix}/include/python2.4
checking for PERL files... configure: WARNING: PERL bindings are not going
to be used
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for iconv_open... yes
checking for iconv_open in -liconv... no
checking for libiconv_open in -liconv... no
checking where to find iconv_open... libc
checking whether iconv takes const char ** or char **... char **
checking whether iconv takes ISO8859-1 or ISO-8859-1... ISO8859-1
checking cpdflib.h usability... yes
checking cpdflib.h presence... yes
checking for cpdflib.h... yes
checking for cpdf_init in -lcpdf... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating rlib.pc
config.status: creating libsrc/Makefile
config.status: creating src/Makefile
config.status: creating src/examples/Makefile
config.status: creating src/examples/common/Makefile
config.status: creating src/examples/c/Makefile
config.status: creating src/examples/php/Makefile
config.status: creating src/examples/python/Makefile
config.status: creating src/examples/java/Makefile
config.status: creating bindings/Makefile
config.status: creating bindings/php/Makefile
config.status: creating bindings/python/Makefile
config.status: creating bindings/perl/Makefile
config.status: creating bindings/java/Makefile
config.status: creating bindings/interfaces/Makefile
config.status: creating inputs/Makefile
config.status: creating inputs/mysql/Makefile
config.status: creating inputs/odbc/Makefile
config.status: creating inputs/postgre/Makefile
config.status: creating tests/Makefile
config.status: creating config.h
config.status: executing depfiles commands

rlib-1.3.0:

        prefix:                   /usr/local
        compiler:                 gcc
        Memory debugging:         no
        Warning Fun:              no
        Crash detection:          yes
        UTF8 disabled:            no

        INPUTS:
         MYSQL:                   yes
         POSTGRE:                 yes
         ODBC:                    no

   OUTPUTS:
         PDF:                     yes
         HTML:                    Always
         CSV:                     Always
         TEXT:                    Always

        BINDINGS:
         PHP:                     no
          PHP entension dir:
         PYTHON:                  yes
          PYTHON version:         2.4
          PYTHON entension dir:   ${exec_prefix}/lib/python2.4/site-packages
         JAVA:                    no
         PERL:                    no
          PERL entension dir:

        Music:                    Velvet Revolver

        Having Problems:          rlib-users-TtF/[email protected]
        Want to contribute:       rlib-devel-TtF/[email protected]
[foo rlib-1.3.0]$

Output of make:
[foo rlib-1.3.0]$ make
make  all-recursive
make[1]: Entering directory `/usr/ftp/rlib-1.3.0'
Making all in libsrc
make[2]: Entering directory `/usr/ftp/rlib-1.3.0/libsrc'
source='parsexml.c' object='parsexml.lo' libtool=yes \
depfile='.deps/parsexml.Plo' tmpdepfile='.deps/parsexml.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/local/include/libxml2   -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -I'/usr/include/mysql' -I /usr/include
  -I /usr/local/include/python2.4       -g -O2 -c -o parsexml.lo `test -f
'parsexml.c' || echo './'`parsexml.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/libxml2
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/include/mysql -I /usr/include -I /usr/local/include/python2.4 -g
-O2 -c parsexml.c -MT parsexml.lo -MD -MP -MF .deps/parsexml.TPlo  -fPIC
-DPIC -o .libs/parsexml.o
source='reportgen.c' object='reportgen.lo' libtool=yes \
depfile='.deps/reportgen.Plo' tmpdepfile='.deps/reportgen.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/local/include/libxml2   -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -I'/usr/include/mysql' -I /usr/include
  -I /usr/local/include/python2.4       -g -O2 -c -o reportgen.lo `test -f
'reportgen.c' || echo './'`reportgen.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/libxml2
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/include/mysql -I /usr/include -I /usr/local/include/python2.4 -g
-O2 -c reportgen.c -MT reportgen.lo -MD -MP -MF .deps/reportgen.TPlo 
-fPIC -DPIC -o .libs/reportgen.o
source='layout.c' object='layout.lo' libtool=yes \
depfile='.deps/layout.Plo' tmpdepfile='.deps/layout.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/local/include/libxml2   -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -I'/usr/include/mysql' -I /usr/include
  -I /usr/local/include/python2.4       -g -O2 -c -o layout.lo `test -f
'layout.c' || echo './'`layout.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/libxml2
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/include/mysql -I /usr/include -I /usr/local/include/python2.4 -g
-O2 -c layout.c -MT layout.lo -MD -MP -MF .deps/layout.TPlo  -fPIC -DPIC
-o .libs/layout.o
source='api.c' object='api.lo' libtool=yes \
depfile='.deps/api.Plo' tmpdepfile='.deps/api.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/local/include/libxml2   -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -I'/usr/include/mysql' -I /usr/include
  -I /usr/local/include/python2.4       -g -O2 -c -o api.lo `test -f
'api.c' || echo './'`api.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/libxml2
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/include/mysql -I /usr/include -I /usr/local/include/python2.4 -g
-O2 -c api.c -MT api.lo -MD -MP -MF .deps/api.TPlo  -fPIC -DPIC -o
.libs/api.o
source='resolution.c' object='resolution.lo' libtool=yes \
depfile='.deps/resolution.Plo' tmpdepfile='.deps/resolution.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/local/include/libxml2   -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -I'/usr/include/mysql' -I /usr/include
  -I /usr/local/include/python2.4       -g -O2 -c -o resolution.lo `test
-f 'resolution.c' || echo './'`resolution.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/libxml2
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/include/mysql -I /usr/include -I /usr/local/include/python2.4 -g
-O2 -c resolution.c -MT resolution.lo -MD -MP -MF .deps/resolution.TPlo 
-fPIC -DPIC -o .libs/resolution.o
source='util.c' object='util.lo' libtool=yes \
depfile='.deps/util.Plo' tmpdepfile='.deps/util.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/local/include/libxml2   -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include   -I'/usr/include/mysql' -I /usr/include
  -I /usr/local/include/python2.4       -g -O2 -c -o util.lo `test -f
'util.c' || echo './'`util.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/libxml2
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/include/mysql -I /usr/include -I /usr/local/include/python2.4 -g
-O2 -c util.c -MT util.lo -MD -MP -MF .deps/util.TPlo  -fPIC -DPIC -o
.libs/util.o
util.c:37: error: conflicting types for 'llabs'
util.c:37: error: conflicting types for 'llabs'
make[2]: *** [util.lo] Error 1
make[2]: Leaving directory `/usr/ftp/rlib-1.3.0/libsrc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/ftp/rlib-1.3.0'
make: *** [all] Error 2
[foo rlib-1.3.0]$


Thank you in advance!
Billy-


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.