freeipmi-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Freeipmi-users] Re: [Freeipmi-devel] Errors in Compiling FreeIPMI-0.7.3


From: Al Chu
Subject: [Freeipmi-users] Re: [Freeipmi-devel] Errors in Compiling FreeIPMI-0.7.3.beta1.tar.gz on FreeBSD7.1Beta2
Date: Fri, 21 Nov 2008 06:31:36 -0500

I have to punt to Dmitry at this point, since I don't know FreeBSD.  The
pthread library isn't being linked in.  Not really sure why.  You may
want to set the environment variable 

LIBS=-lpthread

and see if that does anything.

AL

On Thu, 2008-11-20 at 22:47 -0800, Won De Erick wrote:
> Hi Al,
> 
> Based from that, I tried the following:
> 
> # setenv CPPFLAGS -I/usr/local/include 
> # setenv LDFLAGS -L/usr/local/lib
> # setenv PTHREAD_LIBS -pthread
> # ./configure --disable-init-scripts --disable-logrotate-config 
> --disable-logdir --localstatedir=/var 
> --with-ipmi-monitoring-sdr-cache-dir=/var/db/freeipmi/ipmimonitoringsdrcache 
> --sysconfdir=/usr/local/etc/freeipmi --prefix=/usr/local
> 
> 
> Then, a Makefile was successfully created. 
> When compiling w/ gmake:
> 
> *** Warning: Linking the executable bmc-config against the loadable module
> *** libfreeipmi.so is not portable!
> gcc -g -O2 -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  -L/usr/local/lib 
> ../../common/src/configtool/.libs/libconfigtoolcommon.a 
> ../../common/src/toolcommon/.libs/libtoolcommon.a 
> ../../common/src/toolhostrange/.libs/libtoolhostrange.a 
> ../../common/src/miscutil/.libs/libmiscutils.a 
> ../../common/src/portability/.libs/libfreeipmiportability.a 
> ../../ipmidetect/src/libipmidetect/.libs/libipmidetect.so 
> ../../libfreeipmi/src/.libs/libfreeipmi.so
>  /usr/local/lib/libgcrypt.so /usr/local/lib/libgpg-error.so 
> /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -largp -lm  -Wl,--rpath 
> -Wl,/usr/local/lib
> .../../common/src/toolhostrange/.libs/libtoolhostrange.a(libtoolhostrange_la-pstdout.o)(.text+0x166a):
>  In function `pstdout_launch':
> /root/freeipmi-0.7.3.beta1/common/src/toolhostrange/pstdout.c:1424: undefined 
> reference to `pthread_create'
> gmake[2]: *** [bmc-config] Error 1
> gmake[2]: Leaving directory `/root/freeipmi-0.7.3.beta1/bmc-config/src'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/root/freeipmi-0.7.3.beta1/bmc-config'
> gmake: *** [all-recursive] Error 1
> 
> the above errors were displayed.
> 
> Are there some more things that i need to configure?
> 
> Thanks,
> 
> Won
> 
> 
> 
> ----- Original Message ----
> From: Al Chu <address@hidden>
> To: Won De Erick <address@hidden>
> Cc: address@hidden; address@hidden; Dmitry Frolov <address@hidden>
> Sent: Friday, November 21, 2008 10:44:29 AM
> Subject: Re: [Freeipmi-devel] Errors in Compiling FreeIPMI-0.7.3.beta1.tar.gz 
> on FreeBSD7.1Beta2
> 
> Hey Won,
> 
> Dmitry posted this some time ago as what needs to be done to build on
> FreeBSD.
> 
> env CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
> PTHREAD_LIBS=-pthread \
>         ./configure \
>         --disable-init-scripts --disable-logrotate-config
> --disable-logdir --localstatedir=/var
> --with-ipmi-monitoring-sdr-cache-dir=/var/db/freeipmi/ipmimonitoringsdrcache 
> --sysconfdir=/usr/local/etc/freeipmi --prefix=/usr/local
> gmake
> 
> hopefully that helps
> 
> Al
> 
> On Thu, 2008-11-20 at 18:37 -0800, Won De Erick wrote:
> > Hi,
> > 
> > The installation of freeipmi from tarbal has been my problem in 
> > FreeBSD(even in 6.2 before). No problem when installing this from ports, 
> > but I should want to try the latest one as the ported one is not 
> > automatically updated.  AFAIK, the dependencies are the below:
> > 
> > security/libgpg-error
> > security/libgcrypt
> > devel/argp-standalone
> > 
> > I started installing libcrypt. This was successfully installed. Then 
> > proceed w/ freeipmi (http:// 
> > ftp.zresearch.com/pub/freeipmi/qa-release/freeipmi-0.7.3.beta1.tar.gz) 
> > compilation.
> > 
> > I always get errors like:
> > 
> > checking how to run the C++ preprocessor... g++ -E
> > checking for g77... no
> > checking for f77... no
> > checking for xlf... no
> > checking for frt... no
> > 
> > .....
> > Then end up with
> > .....
> > checking whether make sets $(MAKE)... (cached) yes
> > checking for gcry_md_open in -lgcrypt... no
> > configure: error: libgcrypt required to build libfreeipmi
> > 
> > 
> > Attached are the logs for installing libcrypt and compiling freeipmi.
> > 
> > Any help pls. 
> > 
> > Thanks,
> > 
> > Won
> > 
> > 
> >      
> > _______________________________________________ Freeipmi-devel mailing list 
> > address@hidden http://  lists.gnu.org/mailman/listinfo/freeipmi-devel
-- 
Albert Chu
address@hidden
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory





reply via email to

[Prev in Thread] Current Thread [Next in Thread]