Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cryptsetup build fails with undefined references
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
duderonomy
Guru
Guru


Joined: 20 Mar 2004
Posts: 349
Location: SF Bay Area

PostPosted: Fri Apr 23, 2010 2:12 am    Post subject: cryptsetup build fails with undefined references Reply with quote

Code:

>>> Emerging (3 of 3) sys-fs/cryptsetup-1.1.0
 * cryptsetup-1.1.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                        [ ok ]
 * checking ebuild checksums ;-) ...                                                                               [ ok ]
 * checking auxfile checksums ;-) ...                                                                              [ ok ]
 * checking miscfile checksums ;-) ...                                                                             [ ok ]
 * CPV:  sys-fs/cryptsetup-1.1.0
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib nls userland_GNU
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.33-gentoo-r1/build
 * Found sources for kernel version:
 *     2.6.33-gentoo-r1
 * Checking for suitable kernel configuration options...                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking cryptsetup-1.1.0.tar.bz2 to /var/tmp/portage/sys-fs/cryptsetup-1.1.0/work
>>> Source unpacked in /var/tmp/portage/sys-fs/cryptsetup-1.1.0/work
>>> Preparing source in /var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0 ...
 * Applying 1.1.0_rc3-static-no-selinux.patch ...                                                                   [ ok ]
 * Running eautoreconf in '/var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0' ...
 * Running aclocal -I m4 ...                                                                                        [ ok ]
 * Running libtoolize --copy --force --install --automake ...                                                       [ ok ]
 * Running aclocal -I m4 ...                                                                                        [ ok ]
 * Running autoconf ...                                                                                             [ ok ]
 * Running autoheader ...                                                                                           [ ok ]
 * Running automake --add-missing --copy ...                                                                        [ ok ]
 * Running elibtoolize in: cryptsetup-1.1.0
 *   Applying portage-2.2.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-2.2.6.patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0 ...
 * econf: updating cryptsetup-1.1.0/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating cryptsetup-1.1.0/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --sbindir=/sbin --enable-shared --enable-static --libdir=/usr/lib64 --enable-nls --disable-selinux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
 
  8< snip >8

config.status: creating po/Makefile
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0 ...
make -j5
cd . && /bin/sh /var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0/missing --run autoheader
rm -f stamp-h1
touch config.h.in
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0'
Making all in luks
make[2]: Entering directory `/var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0/luks'
/bin/sh ../libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I../lib   -Wall  -O2 -march=native -pipe -MT libluks_la-af.lo -MD -MP -MF .deps/libluks_la-af.Tpo -c -o libluks_la-af.lo `test -f 'af.c' || echo './'`af.c
/bin/sh ../libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I../lib   -Wall  -O2 -march=native -pipe -MT libluks_la-pbkdf.lo -MD -MP -MF .deps/libluks_la-pbkdf.Tpo -c -o libluks_la-pbkdf.lo `test -f 'pbkdf.c' || echo './'`pbkdf.c
/bin/sh ../libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I../lib   -Wall  -O2 -march=native -pipe -MT libluks_la-keymanage.lo -MD -MP -MF .deps/libluks_la-keymanage.Tpo -c -o libluks_la-keymanage.lo `test -f 'keymanage.c' || echo './'`keymanage.c

  <and away we go!>

 <snip>

libtool: link: x86_64-pc-linux-gnu-ar cru .libs/libcryptsetup.a  libcryptsetup_la-setup.o libcryptsetup_la-utils.o libcryptsetup_la-utils_debug.o libcryptsetup_la-backends.o libcryptsetup_la-libdevmapper.o libcryptsetup_la-gcrypt.o  .libs/libcryptsetup.lax/libluks.a/libluks_la-hexprint.o .libs/libcryptsetup.lax/libluks.a/libluks_la-pbkdf.o .libs/libcryptsetup.lax/libluks.a/libluks_la-af.o .libs/libcryptsetup.lax/libluks.a/libluks_la-keymanage.o .libs/libcryptsetup.lax/libluks.a/libluks_la-keyencryption.o .libs/libcryptsetup.lax/libluks.a/libluks_la-random.o
libtool: link: x86_64-pc-linux-gnu-ranlib .libs/libcryptsetup.a
libtool: link: rm -fr .libs/libcryptsetup.lax
libtool: link: ( cd ".libs" && rm -f "libcryptsetup.la" && ln -s "../libcryptsetup.la" "libcryptsetup.la" )
make[2]: Leaving directory `/var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0/lib'
Making all in src
make[2]: Entering directory `/var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0/src'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -DDATADIR=\""/usr/share"\" -DLOCALEDIR=\""/usr/share/locale"\" -DLIBDIR=\""/usr/lib64"\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DVERSION=\""1.1.0"\" -D_GNU_SOURCE   -Wall -O2 -march=native -pipe -MT cryptsetup-cryptsetup.o -MD -MP -MF .deps/cryptsetup-cryptsetup.Tpo -c -o cryptsetup-cryptsetup.o `test -f 'cryptsetup.c' || echo './'`cryptsetup.c
mv -f .deps/cryptsetup-cryptsetup.Tpo .deps/cryptsetup-cryptsetup.Po
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wall -O2 -march=native -pipe -all-static -Wl,-O1 -o cryptsetup cryptsetup-cryptsetup.o -lpopt ../lib/libcryptsetup.la -L/usr/lib64 -lgcrypt -lgpg-error -lgpg-error 
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -O2 -march=native -pipe -static -Wl,-O1 -o cryptsetup cryptsetup-cryptsetup.o  /usr/lib64/libpopt.a ../lib/.libs/libcryptsetup.a -L/usr/lib64 -luuid -ldevmapper /usr/lib64/libgcrypt.a /usr/lib64/libgpg-error.a
/usr/lib64/libdevmapper.a(libdm-common.o): In function `_check_udev_is_running':
(.text+0xe84): undefined reference to `udev_new'
/usr/lib64/libdevmapper.a(libdm-common.o): In function `_check_udev_is_running':
(.text+0xe98): undefined reference to `udev_queue_new'
/usr/lib64/libdevmapper.a(libdm-common.o): In function `_check_udev_is_running':
(.text+0xeac): undefined reference to `udev_queue_get_udev_is_active'
/usr/lib64/libdevmapper.a(libdm-common.o): In function `_check_udev_is_running':
(.text+0xebb): undefined reference to `udev_queue_unref'
/usr/lib64/libdevmapper.a(libdm-common.o): In function `_check_udev_is_running':
(.text+0xec3): undefined reference to `udev_unref'
/usr/lib64/libdevmapper.a(libdm-common.o): In function `_check_udev_is_running':
(.text+0xfc4): undefined reference to `udev_unref'
collect2: ld returned 1 exit status
make[2]: *** [cryptsetup] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0'
make: *** [all] Error 2
 * ERROR: sys-fs/cryptsetup-1.1.0 failed:
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 4096:  Called die
 * The specific snippet of code:
 *       emake || die
 *
 * If you need support, post the output of 'emerge --info =sys-fs/cryptsetup-1.1.0',
 * the complete build log and the output of 'emerge -pqv =sys-fs/cryptsetup-1.1.0'.
 * The complete build log is located at '/var/tmp/portage/sys-fs/cryptsetup-1.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/cryptsetup-1.1.0/temp/environment'.
 * S: '/var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0'

>>> Failed to emerge sys-fs/cryptsetup-1.1.0, Log file:

>>>  '/var/tmp/portage/sys-fs/cryptsetup-1.1.0/temp/build.log'


* ERROR: sys-fs/cryptsetup-1.1.0 failed:
*   (no error message)
*
* Call stack:
*     ebuild.sh, line  54:  Called src_compile
*   environment, line 4096:  Called die
* The specific snippet of code:
*       emake || die
*
* If you need support, post the output of 'emerge --info =sys-fs/cryptsetup-1.1.0',
* the complete build log and the output of 'emerge -pqv =sys-fs/cryptsetup-1.1.0'.
* The complete build log is located at '/var/tmp/portage/sys-fs/cryptsetup-1.1.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-fs/cryptsetup-1.1.0/temp/environment'.
* S: '/var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0'



Hopefully this will help someone get past this sticking point.

Does anyone know what the problem is?

I can work around it by enabling the Local USE Flag, dynamic, added it to file: "/etc/portage/package.use"
Code:

sys-fs/cryptsetup dynamic

Here's a bit of info about the USE flag:
http://gentoo-portage.com/Search?search=&use=dynamic

Cheers!
:D
Back to top
View user's profile Send private message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 327

PostPosted: Fri Apr 23, 2010 4:23 pm    Post subject: emerge cryptsetup error Reply with quote

i can't emerge cryptsetup package, this is an error: (i would appreciate some help)


/usr/lib64/libdevmapper.a(libdm-common.o): In function `_check_udev_is_running':
(.text+0xfc4): undefined reference to `udev_unref'
collect2: ld returned 1 exit status
make[2]: *** [cryptsetup] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0'
make: *** [all] Error 2
* ERROR: sys-fs/cryptsetup-1.1.0 failed:
* (no error message)
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 4083: Called die
* The specific snippet of code:
* emake || die
*
* If you need support, post the output of 'emerge --info =sys-fs/cryptsetup-1.1.0',
* the complete build log and the output of 'emerge -pqv =sys-fs/cryptsetup-1.1.0'.
* The complete build log is located at '/var/tmp/portage/sys-fs/cryptsetup-1.1.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-fs/cryptsetup-1.1.0/temp/environment'.
* S: '/var/tmp/portage/sys-fs/cryptsetup-1.1.0/work/cryptsetup-1.1.0'

>>> Failed to emerge sys-fs/cryptsetup-1.1.0, Log file:

>>> '/var/tmp/portage/sys-fs/cryptsetup-1.1.0/temp/build.log'




emerge --info:
emerge --info =sys-fs/cryptsetup-1.1.0
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo-r1 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.33-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 23 Apr 2010 14:15:03 +0000
app-shells/bash: 4.1_p5
dev-lang/python: 2.6.5-r1, 3.1.2-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.6.1-r1
sys-apps/sandbox: 2.2
sys-devel/autoconf: 2.65
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.20.1
sys-devel/gcc: 4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Nero-EULA-US"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk hal iconv ipv6 jpeg kde lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly offensive ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support qt4 readline reflection sdl sensord session spell spl sse sse2 ssl ssse3 startup-notification svg symlink sysfs tcpd tiff truetype unicode usb vim-syntax vorbis x264 xcb xml xorg xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Apr 23, 2010 4:31 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=316571
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2608

PostPosted: Fri Apr 23, 2010 6:23 pm    Post subject: Reply with quote

Moving from Installing Gentoo to Portage & Programming, as it does not regard the installation of the initial Gentoo base system.
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
duderonomy
Guru
Guru


Joined: 20 Mar 2004
Posts: 349
Location: SF Bay Area

PostPosted: Fri Apr 23, 2010 10:24 pm    Post subject: Reply with quote

According to the bug report (url above), this issue is fixed in lvm2-2.02.63-r2.

However I have the same version.
Code:
# emerge -s lvm2
Searching...

*  sys-fs/lvm2
      Latest version available: 2.02.63-r2
      Latest version installed: 2.02.63-r2
      Size of files: 842 kB


I posted about a similar issue here:
cryptsetup build fails with undefined references

Cheers,
:D
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Apr 23, 2010 10:29 pm    Post subject: Reply with quote

duderonomy wrote:
According to the bug report (url above), this issue is fixed in lvm2-2.02.63-r2.


You are reading the bug wrong. This problem with undefined references is fixed in cryptsetup without revision bump in Portage now. It should be available in mirrors now, just sync.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Apr 26, 2010 5:07 pm    Post subject: Reply with quote

merged some posts above
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum