Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343875 - sys-cluster/dlm-lib-2.03.09 fails to compile (error: asm/bitsperlong.h: No such file)
Summary: sys-cluster/dlm-lib-2.03.09 fails to compile (error: asm/bitsperlong.h: No su...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Deadline: 2019-12-08
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2010-11-02 17:31 UTC by Christophe LEFEBVRE
Modified: 2019-12-09 03:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/tmp/portage/sys-cluster/dlm-lib-2.03.09/temp/build.log (build.log,3.46 KB, text/plain)
2010-11-02 17:33 UTC, Christophe LEFEBVRE
Details
dlm-lib-2.03.09.ebuild.patch (dlm-lib-2.03.09.ebuild.patch,664 bytes, patch)
2010-11-02 17:40 UTC, Christophe LEFEBVRE
Details | Diff
My build.log too regarding dlm-lib-2.03.09 (build.log,2.78 KB, text/plain)
2010-12-07 10:54 UTC, Nicola Pavlov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe LEFEBVRE 2010-11-02 17:31:32 UTC
sys-cluster/dlm-lib-2.03.09 fails to compile

Reproducible: Always

Steps to Reproduce:
1. emerge sys-cluster/dlm-lib-2.03.09
2.
3.

Actual Results:  
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-cluster/dlm-lib-2.03.09
openpty failed: 'out of pty devices'
 * cluster-2.03.09.tar.gz RMD160 SHA1 SHA256 size ;-) ...                [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * CPV:  sys-cluster/dlm-lib-2.03.09
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux test userland_GNU x86
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.34-gentoo-r12/build
 * Found sources for kernel version:
 *     2.6.34-gentoo-r12
>>> Unpacking source...
>>> Unpacking cluster-2.03.09.tar.gz to /var/tmp/portage/sys-cluster/dlm-lib-2.03.09/work
>>> Source unpacked in /var/tmp/portage/sys-cluster/dlm-lib-2.03.09/work
>>> Compiling source in /var/tmp/portage/sys-cluster/dlm-lib-2.03.09/work/cluster-2.03.09/dlm/lib ...

Configuring Makefiles for your system...

Checking tree: nothing to do

Building against OpenAIS Whitetank

The following fence agents will be build on this system:
 apc eps vmware drac zvm ibmblade mcdata ilo gnbd lpar sanbox2 bullpap ipmilan rackswitch cpint xcat rsb manual egenera wti bladecenter scsi vixel ifmib apc_snmp rsa alom xvm rps10 brocade baytech ldom

NOTE: xvm will build only if --enable_xen has been specified

Completed Makefile configuration

make -j3 -j1
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -I/var/tmp/portage/sys-cluster/dlm-lib-2.03.09/work/cluster-2.03.09/config  -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DLOGDIR=\"/var/log/cluster\" -DRELEASE_VERSION=\"2.03.09\" -I/var/tmp/portage/sys-cluster/dlm-lib-2.03.09/work/cluster-2.03.09/dlm/lib -I/usr/include -I/usr/src/linux/include -D_REENTRANT -c -o libdlm.o /var/tmp/portage/sys-cluster/dlm-lib-2.03.09/work/cluster-2.03.09/dlm/lib/libdlm.c
In file included from /usr/include/asm/types.h:4,
                 from /usr/src/linux/include/linux/types.h:4,
                 from /var/tmp/portage/sys-cluster/dlm-lib-2.03.09/work/cluster-2.03.09/dlm/lib/libdlm.c:20:
/usr/src/linux/include/asm-generic/int-ll64.h:11:29: error: asm/bitsperlong.h: No such file or directory
/var/tmp/portage/sys-cluster/dlm-lib-2.03.09/work/cluster-2.03.09/dlm/lib/libdlm.c: In function 'create_control_device':
/var/tmp/portage/sys-cluster/dlm-lib-2.03.09/work/cluster-2.03.09/dlm/lib/libdlm.c:366: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result
/var/tmp/portage/sys-cluster/dlm-lib-2.03.09/work/cluster-2.03.09/dlm/lib/libdlm.c: In function 'dlm_recv_thread':
/var/tmp/portage/sys-cluster/dlm-lib-2.03.09/work/cluster-2.03.09/dlm/lib/libdlm.c:1193: warning: no return statement in function returning non-void
make: *** [libdlm.o] Error 1
 * ERROR: sys-cluster/dlm-lib-2.03.09 failed:
 *   compile problem
 *
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 3498:  Called die
 * The specific snippet of code:
 *       emake -j1 || die "compile problem"
 *
 * If you need support, post the output of 'emerge --info =sys-cluster/dlm-lib-2.03.09',
 * the complete build log and the output of 'emerge -pqv =sys-cluster/dlm-lib-2.03.09'.
 * The complete build log is located at '/var/tmp/portage/sys-cluster/dlm-lib-2.03.09/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-cluster/dlm-lib-2.03.09/temp/environment'.
 * S: '/var/tmp/portage/sys-cluster/dlm-lib-2.03.09/work/cluster-2.03.09/dlm/lib'


Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-i686-Intel-R-_Xeon-TM-_CPU_2.80GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 28 Oct 2010 01:45:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r3, 3.1.2-r4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -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="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://gentoo.imj.fr/pub/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://mirrors.ipv6.linuxant.fr/distfiles.gentoo.org/ http://mirrors.ipv6.linuxant.fr/distfiles.gentoo.org/ ftp://mirrors.linuxant.fr/distfiles.gentoo.org/ http://gentoo.modulix.net/gentoo/ ftp://mirror.ovh.net/gentoo-distfiles/ http://mirror.ovh.net/gentoo-distfiles/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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.fr.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 caps cli clvm common-lisp cracklib crypt cups cxx doc dri emacs fam fortran gdbm gpm iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline session spoof-source sql ssl symlink sysfs tcpd test unicode x86 xattr xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Christophe LEFEBVRE 2010-11-02 17:33:06 UTC
Created attachment 252919 [details]
/var/tmp/portage/sys-cluster/dlm-lib-2.03.09/temp/build.log
Comment 2 Christophe LEFEBVRE 2010-11-02 17:40:22 UTC
Created attachment 252925 [details, diff]
dlm-lib-2.03.09.ebuild.patch

It seems to be the same kind type of bug like #317539, #297068 and #285376.

Please find a suggested patch in order to correct sys-cluster/dlm-lib-2.03.09 (dlm-lib-2.03.11 which is not still stabilizated is also affected by this bug).
Comment 3 Christophe LEFEBVRE 2010-11-02 22:34:02 UTC
See also http://bugs.gentoo.org/show_bug.cgi?id=297068#c8
Comment 4 Nicola Pavlov 2010-12-07 10:54:51 UTC
Created attachment 256576 [details]
My build.log too regarding dlm-lib-2.03.09

This is my build.log too.
Comment 5 Pacho Ramos gentoo-dev 2012-10-10 18:50:39 UTC
Is this still valid with current linux-headers and latest dlm-lib version?
Comment 6 Christophe LEFEBVRE 2012-10-11 11:52:45 UTC
The installation is now successfull with 2.03.09 and 2.03.11 (lastest version not yet validated for ~x86). Just notice these warning during the installation of these 2 versions :


strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line
   usr/lib64/libdlm_lt.so.2.03.11
   usr/lib64/libdlm.a
   usr/lib64/libdlm.so.2.03.11
   usr/lib64/libdlm_lt.a
 * QA Notice: udev rules should be installed in /lib/udev/rules.d:
 * 
 *   etc/udev/rules.d/51-dlm.rules
 *
Comment 7 Arfrever Frehtes Taifersar Arahesis 2019-12-09 03:10:06 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fc5cbe8a00e617f0425e37d14df30227469b292

commit 3fc5cbe8a00e617f0425e37d14df30227469b292
Author:     Aaron Bauman <bman@gentoo.org>
AuthorDate: 2019-12-08 19:17:43 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2019-12-08 19:19:24 +0000

    sys-cluster/{cman-lib,dlm,dlm-lib} drop last-rited pkgs
    
    Signed-off-by: Aaron Bauman <bman@gentoo.org>