You are not logged in.

#1 2015-08-12 11:50:10

red-lichtie
Member
Registered: 2015-03-08
Posts: 53

Error building lib32-smbclient

I can't get lib32-smbclient to build from the AUR

Checking for program perl                                                         : /usr/bin/perl 
Checking for program xsltproc                                                     : /usr/bin/xsltproc 
Checking for program python                                                       : /usr/bin/python2 
Checking for program python                                                       : /usr/bin/python2 
Checking for program python                                                       : /usr/bin/python 
Checking for Python version >= 2.5.0                                              : ok 2.7.10 
Checking for library python2.7                                                    : yes 
Checking for program python2.7-config                                             : /usr/bin/python2.7-config 
Checking for custom code                                                          : Could not find the python development headers 
/home/bm/git/lib32-smbclient/src/samba-4.1.12/wscript:100: error: the configuration failed (see '/home/bm/git/lib32-smbclient/src/samba-4.1.12/bin/config.log')
==> ERROR: A failure occurred in build().
    Aborting...

The log shows this:

Checking for custom code
==>

#include "Python.h"
#ifdef __cplusplus
extern "C" {
#endif
	void Py_Initialize(void);
	void Py_Finalize(void);
#ifdef __cplusplus
}
#endif
int main()
{
   Py_Initialize();
   Py_Finalize();
   return 0;
}

<==
[1/2] Compiling test.c
In file included from /usr/include/python2.7/Python.h:58:0,
                 from ../test.c:2:
/usr/include/python2.7/pyport.h:886:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
  ^
['gcc', '-m32', '-march=x86-64', '-mtune=generic', '-O2', '-pipe', '-fstack-protector-strong', '--param=ssp-buffer-size=4', '-MD', '-fno-strict-aliasing', '-D_FORTIFY_SOURCE=2', '-I/usr/local/include', '-I/usr/include/python2.7', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Build failed:  -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}'Could not find the python development headers

I already have the following lib32 packages built/installed:

lib32-acl
lib32-alsa-lib
lib32-at-spi2-atk
lib32-at-spi2-core
lib32-atk
lib32-attr
lib32-avahi
lib32-bzip2
lib32-cairo
lib32-colord
lib32-cracklib
lib32-curl
lib32-db
lib32-dbus-glib
lib32-dconf
lib32-e2fsprogs
lib32-elfutils
lib32-expat
lib32-fakeroot
lib32-flex
lib32-fontconfig
lib32-freetype2
lib32-gcc-libs
lib32-gconf
lib32-gdbm
lib32-gdk-pixbuf2
lib32-gettext
lib32-glib-networking
lib32-glib2
lib32-glibc
lib32-glu
lib32-gmp
lib32-gnutls
lib32-gtk3
lib32-harfbuzz
lib32-icu
lib32-js17
lib32-json-glib
lib32-keyutils
lib32-krb5
lib32-lcms2
lib32-libbsd
lib32-libcanberra
lib32-libcap
lib32-libcups
lib32-libdaemon
lib32-libdbus
lib32-libdrm
lib32-libepoxy
lib32-libffi
lib32-libgcrypt
lib32-libgpg-error
lib32-libgudev
lib32-libgusb
lib32-libice
lib32-libidn
lib32-libjpeg-turbo
lib32-libldap
lib32-libltdl
lib32-libnl
lib32-libogg
lib32-libpcap
lib32-libpciaccess
lib32-libpng
lib32-libproxy
lib32-libsm
lib32-libsoup
lib32-libssh2
lib32-libstdc++5
lib32-libtasn1
lib32-libtiff
lib32-libtirpc
lib32-libtxc_dxtn
lib32-libusb
lib32-libvorbis
lib32-libx11
lib32-libxau
lib32-libxcb
lib32-libxcomposite
lib32-libxcursor
lib32-libxdamage
lib32-libxdmcp
lib32-libxext
lib32-libxfixes
lib32-libxft
lib32-libxi
lib32-libxinerama
lib32-libxkbcommon
lib32-libxkbcommon-x11
lib32-libxml2
lib32-libxrandr
lib32-libxrender
lib32-libxshmfence
lib32-libxss
lib32-libxt
lib32-libxtst
lib32-libxv
lib32-libxxf86vm
lib32-llvm-libs
lib32-mesa
lib32-mesa-libgl
lib32-ncurses
lib32-nettle
lib32-nspr
lib32-openal
lib32-openssl
lib32-p11-kit
lib32-pam
lib32-pango
lib32-pcre
lib32-pixman
lib32-polkit
lib32-python2
lib32-readline
lib32-rest
lib32-sdl
lib32-sqlite
lib32-systemd
lib32-talloc
lib32-tcl
lib32-tdb
lib32-tk
lib32-util-linux
lib32-wayland
lib32-xz
lib32-zlib

What can I do to get lib32-smbclient packaged and installed ?


Doing it the Linux way since 1997 and Arch way since 2015 (and loving it!)
Platforms: Intel, ARMv6 (Raspberry Pi), ARMv7 (BeagleBone Black), ARMv8 (Raspberry Pi)
Languages: C, C++, ASM, Pascal & Java

Offline

#2 2015-08-12 11:56:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Error building lib32-smbclient

Post the error on https://aur.archlinux.org/packages/lib32-smbclient/ and include at least

[1/2] Compiling test.c
In file included from /usr/include/python2.7/Python.h:58:0,
                 from ../test.c:2:
/usr/include/python2.7/pyport.h:886:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."

from the log.

google says some people experienced similar issue when building on Cygwin. What's your hardware and setup? Any special compiler flags?

Offline

#3 2015-08-12 17:52:03

red-lichtie
Member
Registered: 2015-03-08
Posts: 53

Re: Error building lib32-smbclient

Normal Arch Linux on Intel Core i7

Linux turbine 4.1.2-2.1-dell #1 SMP PREEMPT Fri Jul 17 17:27:19 CEST 2015 x86_64 GNU/Linux


Doing it the Linux way since 1997 and Arch way since 2015 (and loving it!)
Platforms: Intel, ARMv6 (Raspberry Pi), ARMv7 (BeagleBone Black), ARMv8 (Raspberry Pi)
Languages: C, C++, ASM, Pascal & Java

Offline

#4 2015-08-13 20:00:49

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,982

Re: Error building lib32-smbclient

4.1.2-2.1-dell

That looks like you're using a custom kernel, probably linux-xps13 from AUR.

Do you get the same compile error when booting with an arch stock kernel ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2015-08-16 02:09:31

Ekkoria
Member
From: Florida
Registered: 2014-05-25
Posts: 20

Re: Error building lib32-smbclient

Lone_Wolf wrote:

4.1.2-2.1-dell

That looks like you're using a custom kernel, probably linux-xps13 from AUR.

Do you get the same compile error when booting with an arch stock kernel ?

I'm having the same issue on a stock kernel.

Offline

#6 2015-08-25 23:55:49

Ekkoria
Member
From: Florida
Registered: 2014-05-25
Posts: 20

Re: Error building lib32-smbclient

Bump. Anyone got anything on this problem?

Offline

#7 2015-08-26 20:20:33

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,982

Re: Error building lib32-smbclient

That package is severely outdated (and oprhaned) , probably needs a new maintainer.

Anyway, latest samba version is 4.2.3 .
Try changing the pkgver to that and see if latest version wants to build.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2015-08-26 22:01:58

Ekkoria
Member
From: Florida
Registered: 2014-05-25
Posts: 20

Re: Error building lib32-smbclient

Lone_Wolf wrote:

That package is severely outdated (and oprhaned) , probably needs a new maintainer.

Anyway, latest samba version is 4.2.3 .
Try changing the pkgver to that and see if latest version wants to build.

Thanks for the tip, but it still refuses to build. I've been doing my best to isolate the problem. Seems to me there's a possibility that during the build python is looking for 32 bit headers and getting 64 bit versions and freaking out.

Offline

Board footer

Powered by FluxBB