Hi Jan,

> --prefix=/usr --libdir=/usr/lib64

FYI, this is mostly for installation and doesn't have much to do with
the compiling.

> ld: fatal: file ../../libfreeipmi/src/.libs/libfreeipmi.so: wrong ELF 
> > class: ELFCLASS32

It seems that libfreeipmi was built 32 bit not 64 bit.

My first guess, are all the library dependencies that libfreeipmi has
(i.e. libc, libgcrypt, etc.) installed as 64bit on your system?  It's
possible libfreeipmi was built 32 bit b/c everything it needs to link
against is installed 32 bit on your system.  But that's just a guess.

Al

On Fri, 2009-02-13 at 18:58 +0100, Jan Forch wrote:
> Hi experts,
> I am doing 64bit build and have this error output. Could someone help me 
> please what to fix. 32bit build is OK.
> I am using ./configure  --prefix=/usr --libdir=/usr/lib64 as recomended 
> in FAQ.
> Error output:
> > *** Warning: Linking the executable bmc-config against the loadable module
> > *** libfreeipmi.so is not portable!
> > /ws/onnv-tools/SUNWspro/SS12/bin/cc -xO3 -m64 -xarch=generic -Ui386 
> > -U__i386 -Xa -xildoff -xc99=all -g -o .libs/bmc-config bmc-config.o 
> > bmc-config-argp.o bmc-config-channel-common.o bmc-config-map.o 
> > bmc-config-sections.o bmc-config-utils.o bmc-config-user-sections.o 
> > bmc-config-lan-channel-section.o bmc-config-serial-channel-section.o 
> > bmc-config-lan-conf-section.o bmc-config-lan-conf-auth-section.o 
> > bmc-config-lan-conf-security-keys-section.o 
> > bmc-config-lan-conf-misc-section.o 
> > bmc-config-rmcpplus-conf-privilege-section.o 
> > bmc-config-serial-conf-section.o bmc-config-pef-conf-section.o 
> > bmc-config-sol-conf-section.o bmc-config-misc-section.o 
> > bmc-config-validate.o  
> > ../../common/src/configtool/.libs/libconfigtoolcommon.a 
> > ../../common/src/toolcommon/.libs/libtoolcommon.a 
> > ../../common/src/toolhostrange/.libs/libtoolhostrange.a -lpthread 
> > ../../common/src/miscutil/.libs/libmiscutils.a 
> > ../../common/src/portability/.libs/libfreeipmiportability.a 
> > ../../ipmidetect/src/libipmidetect/.libs/libipmidetect.so 
> > ../../libfreeipmi/src/.libs/libfreeipmi.so -lgcrypt -lsocket -lm 
> > -lnsl  -R/usr/lib64
> > ld: fatal: file ../../libfreeipmi/src/.libs/libfreeipmi.so: wrong ELF 
> > class: ELFCLASS32
> > ld: fatal: file processing errors. No output written to .libs/bmc-config
> > *** Error code 1
> > make: Fatal error: Command failed for target `bmc-config'
> > Current working directory 
> > /builds4/jf222792/sfwnv/usr/src/cmd/freeipmi/freeipmi-0.7.4-64/bmc-config/src
> > *** Error code 1
> > The following command caused the error:
> > failcom='exit 1'; \
> > for f in x $MAKEFLAGS; do \
> >   case $f in \
> >     *=* | --[!k]*);; \
> >     *k*) failcom='fail=yes';; \
> >   esac; \
> > done; \
> > dot_seen=no; \
> > target=`echo all-recursive | sed s/-recursive//`; \
> > list='src'; for subdir in $list; do \
> >   echo "Making $target in $subdir"; \
> >   if test "$subdir" = "."; then \
> >     dot_seen=yes; \
> >     local_target="$target-am"; \
> >   else \
> >     local_target="$target"; \
> >   fi; \
> >   (cd $subdir && /usr/ccs/bin/make  $local_target) \
> >   || eval $failcom; \
> > done; \
> > if test "$dot_seen" = "no"; then \
> >   /usr/ccs/bin/make  "$target-am" || exit 1; \
> > fi; test -z "$fail"
> > make: Fatal error: Command failed for target `all-recursive'
> > Current working directory 
> > /builds4/jf222792/sfwnv/usr/src/cmd/freeipmi/freeipmi-0.7.4-64/bmc-config
> > *** Error code 1
> > The following command caused the error:
> > failcom='exit 1'; \
> > for f in x $MAKEFLAGS; do \
> >   case $f in \
> >     *=* | --[!k]*);; \
> >     *k*) failcom='fail=yes';; \
> >   esac; \
> > done; \
> > dot_seen=no; \
> > target=`echo all-recursive | sed s/-recursive//`; \
> > list='doc  etc  common  libfreeipmi  man  bmc-config  bmc-info  
> > bmc-device  bmc-watchdog  ipmi-chassis  ipmi-chassis-config  ipmi-fru  
> > ipmi-oem  ipmi-raw  ipmi-sel  ipmi-sensors  ipmi-sensors-config  
> > ipmi-locate  ipmiconsole  ipmidetect  ipmimonitoring  ipmiping  
> > ipmipower  pef-config  rmcpping  contrib'; for subdir in $list; do \
> >   echo "Making $target in $subdir"; \
> >   if test "$subdir" = "."; then \
> >     dot_seen=yes; \
> >     local_target="$target-am"; \
> >   else \
> >     local_target="$target"; \
> >   fi; \
> >   (cd $subdir && /usr/ccs/bin/make  $local_target) \
> >   || eval $failcom; \
> > done; \
> > if test "$dot_seen" = "no"; then \
> >   /usr/ccs/bin/make  "$target-am" || exit 1; \
> > fi; test -z "$fail"
> > make: Fatal error: Command failed for target `all-recursive'
> > *** Error code 1
> > make: Fatal error: Command failed for target `all64'
> > Current working directory /builds4/jf222792/sfwnv/usr/src/cmd/freeipmi
> 
> 
> 
> _______________________________________________
> Freeipmi-users mailing list
> freeipmi-us...@gnu.org
> http:// lists.gnu.org/mailman/listinfo/freeipmi-users
> 
-- 
Albert Chu
ch...@llnl.gov
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory



_______________________________________________
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel

Reply via email to