encrypted filesystem support in FC2

Phil Schaffner Philip.R.Schaffner at NASA.gov
Mon Apr 12 15:19:59 UTC 2004


On Mon, 2004-04-12 at 09:38, James Ralston wrote:
> On 2004-04-11 at 13:15:44-04 Phil Schaffner <P.R.Schaffner at IEEE.org> wrote:
> 
...
> 
> > but can't get past the build error on cryptsetup-0.1-0.src.rpm:
> > -----------------------------------------------------------------
> > [root at tabb1 SRPMS]# rpmbuild --rebuild cryptsetup-0.1-0.src.rpm
> > ...
> > checking for setlocale... yes
> > checking for poptGetArgs in -lpopt... yes
> > checking for dm_task_set_name in -ldevmapper... no
> > configure: error: You need libdevmapper to compile.
> 
> What's the relevant output in BUILD/cryptsetup-0.1/config.log?

This looks like it to me.  Let me know if you need more.

configure:22441: checking for dm_task_set_name in -ldevmapper
configure:22471: gcc -o conftest -O2 -g -pipe -march=i386 -mcpu=i686  
conftest.c -ldevmapper  -lpopt  >&5
/lib/libdevmapper.so: undefined reference to `is_selinux_enabled'
/lib/libdevmapper.so: undefined reference to `matchpathcon'
/lib/libdevmapper.so: undefined reference to `lsetfilecon'
collect2: ld returned 1 exit status
configure:22477: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "cryptsetup"
| #define PACKAGE_TARNAME "cryptsetup"
| #define PACKAGE_VERSION "0.1"
| #define PACKAGE_STRING "cryptsetup 0.1"

Also, I note from another sequence in this thread:

On Mon, 2004-04-12 at 09:21, James Ralston wrote: 
> On 2004-04-10 at 21:11:25-05 "W. Michael Petullo" <mike at flyn.org> wrote:
> 
> > I am running Fedora Rawhide on a PPC-based computer.  When I try to
> > rpmbuild cryptsetup I get:
> > 
> > [...]
> > checking for dm_task_set_name in -ldevmapper... no
> > configure: error: You need libdevmapper to compile.
> > error: Bad exit status from /tmp/rpm-tmp.66119 (%build)
> 
> What's the relevant output in BUILD/cryptsetup-0.1/config.log after it
> fails?
> 
> > I have device-mapper Fedora Rawhide's 1.00.14-1.0 installed.  Are
> > you using a stock Red Hat device-mapper package?
> 
> Yes:
> 
> $ rpm -q device-mapper
> device-mapper-1.00.07-3.1

Could your older version of device-mapper be the problem?  I'm also
running the current 1.00.14-1.0.

When I couldn't get cryptsetup to compile, I downloaded your binary
package and followed the directions on your web page.  Went OK until the
losetup:

  [root at hazard1 local]# losetup /dev/loop0 /tmp/test.img
  /tmp/test.img: No such file or directory

So, recalling advice from elsewhere:

  [root at hazard1 local]# dd if=/dev/urandom of=/tmp/test.img bs=1M count=4
  4+0 records in
  4+0 records out
  [root at hazard1 local]# losetup /dev/loop0 /tmp/test.img
  [root at hazard1 local]# cryptsetup create test /dev/loop0
  Enter passphrase:
  cryptsetup: error while loading shared libraries: /lib/libdevmapper.so.1.00: undefined symbol: is_selinux_enabled
  [root at hazard1 local]#

Seems to support the theory that the device-mapper version may be
problematic.  Stuck again. :-(

Phil







More information about the fedora-test-list mailing list