wotwot / pdsh

Automatically exported from code.google.com/p/pdsh
GNU General Public License v2.0
0 stars 0 forks source link

Cannot compile on FreeBSD with genders module #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I can compile and run pdsh on FreeBSD but when i try to compile with genders i 
get the following error with configure.

checking for whether to build nodeattr module... yes
checking for nodeattr... /usr/local/bin/nodeattr
checking for whether to build genders module... yes
checking for genders_handle_create in -lgenders... no
configure: Cannot support genders without libgenders

I do have genders installed and nodeattr works without a problem.  I do not 
know where to go from here to troubleshoot the problem.

genders is installed at the following location:
/usr/local/lib/genders/gendlib.pl
/usr/local/lib/genders/hostlist.pl
/usr/local/lib/libgenders.so.2
/usr/local/lib/libgenders.so
/usr/local/lib/libgenders.la
/usr/local/lib/libgenders.a
/usr/local/lib/libgendersplusplus.so.1
/usr/local/lib/libgendersplusplus.so
/usr/local/lib/libgendersplusplus.la
/usr/local/lib/libgendersplusplus.a
/usr/local/include/genders.h
/usr/local/include/gendersplusplus.hpp
/usr/local/bin/nodeattr

Thanks
Sean

Original issue reported on code.google.com by iffla...@gmail.com on 18 May 2011 at 1:28

GoogleCodeExporter commented 9 years ago
Could you check config.log for the compile flags and error message during
the attempt to link with libgenders? You can either search the file for
the relevant output, or attach the entire config.log here.

My only guess is that /usr/local/lib somehow isn't in the library path
during the run of configure...

Thanks
mark

Original comment by mark.gro...@gmail.com on 18 May 2011 at 1:14

GoogleCodeExporter commented 9 years ago
Here is the config.log, i didnt see anything.  I will look some more.

Thanks

Sean

Original comment by iffla...@gmail.com on 19 May 2011 at 1:35

Attachments:

GoogleCodeExporter commented 9 years ago
Yeah, the problem is here:

configure:24964: gcc -o conftest -O3 -Wall -fno-strict-aliasing  -D_THREAD_SAFE 
-pthread -s -D_THREAD_SAFE -pthread conftest.c -lgenders    >&5
/usr/bin/ld: cannot find -lgenders

You may need to try

 CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure --with-genders ...

Hopefully that will work.

Original comment by mark.gro...@gmail.com on 19 May 2011 at 1:57

GoogleCodeExporter commented 9 years ago

Original comment by mark.gro...@gmail.com on 19 May 2011 at 1:57

GoogleCodeExporter commented 9 years ago
You were right, that worked.  FreeBSD installs everything from ports into 
/usr/local.  I have built genders on it and built a port.  After i get the perl 
module for genders to build (i know not needed but it works great) i am going 
to see if i can submit it and then get whoever manages the pdsh port for 
FreeBSD to add the genders option.

Thanks

Sean

Original comment by iffla...@gmail.com on 19 May 2011 at 2:40

GoogleCodeExporter commented 9 years ago

Original comment by mark.gro...@gmail.com on 11 Nov 2011 at 5:53