make

Bug #591261 reported by kaixinbird
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenELEC.tv
Fix Released
Medium
Stephan Raue

Bug Description

/openELEC_src/openelec/build.OpenELEC-intel.i386.devel/toolchain/lib/gcc/i686-openelec-linux-gnu/4.5.1/../../../../i686-openelec-linux-gnu/bin/ld: cannot find -lattr
./../lib/replace/replace.o: In function `rep_mkstemp':
/openELEC_src/openelec/build.OpenELEC-intel.i386.devel/samba-3.5.3/source3/../lib/replace/replace.c:413: warning: the use of `mktemp' is dangerous, better use `mkstemp'
collect2: ld returned 1 exit status
make[1]: *** [bin/smbd] Error 1
make[1]: Leaving directory `/openELEC_src/openelec/build.OpenELEC-intel.i386.devel/samba-3.5.3/source3'
make: *** [system] Error 2

Revision history for this message
kaixinbird (kaixinbird) wrote :

i Modify the samba build file in (packages/network/samba)

add the option

--without-acl-support \

-------------------------------------------------------------------------------------

#!/bin/sh

. config/options

$SCRIPTS/build toolchain

if [ "$AVAHI_DAEMON" = yes ]; then
  $SCRIPTS/build avahi
  SMB_AVAHI="--enable-avahi"
else
  SMB_AVAHI="--disable-avahi"
fi

# Fails to compile using the gold linker
  CFLAGS=`echo $CFLAGS | sed -e "s|-fuse-linker-plugin||" -e "s|-fuse-ld=gold||"`
  CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-fuse-linker-plugin||" -e "s|-fuse-ld=gold||"`
  LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-linker-plugin||" -e "s|-fuse-ld=gold||"`

# Fails to compile with GCC's link time optimization.
  CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
  CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
  LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`

export samba_cv_CC_NEGATIVE_ENUM_VALUES=no

cd $PKG_BUILD/source3
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --localstatedir=/var \
            --sysconfdir=/etc \
            --with-configdir=/etc/samba \
            --with-privatedir=/var/run \
            --enable-shared \
            --disable-static \
            --enable-debug \
            --with-fhs \
            --enable-pie \
            --with-pthreads \
            --with-sqlite3 \
            --enable-relro \
            --disable-swat \
            --disable-cups \
            $SMB_AVAHI \
            --without-pam \
            --without-ads \
            --without-libtalloc \
            --without-libtdb \
            --without-libnetapi \
            --without-cifsmount \
            --without-ldap \
            --without-acl-support \
     --with-winbind \
            --with-dnsupdate \
            --with-automount \
            --with-included-popt \
            --with-libsmbclient \
            --without-libsmbsharemodes \
            --without-quotas \
            --without-sys-quotas \
            --with-syslog \

make bin/libsmbclient.so \
     bin/smbd

mkdir -p $SYSROOT_PREFIX/usr/lib
  cp -PR bin/libsmbclient.so* $SYSROOT_PREFIX/usr/lib

mkdir -p $SYSROOT_PREFIX/usr/include
  cp include/libsmbclient.h $SYSROOT_PREFIX/usr/include

mkdir -p $SYSROOT_PREFIX/usr/lib/pkgconfig
  cp pkgconfig/smbclient.pc $SYSROOT_PREFIX/usr/lib/pkgconfig

Revision history for this message
Stephan Raue (sraue) wrote :

Hi,

and with this option it compiles for you?

Revision history for this message
Stephan Raue (sraue) wrote :

i have included this option in r2985, please test if it builds - thank you very much :-)

Changed in openelec:
importance: Undecided → Medium
assignee: nobody → Stephan Raue (sraue)
milestone: none → 0.99.1
Revision history for this message
kaixinbird (kaixinbird) wrote :

Compile pass

Stephan Raue (sraue)
Changed in openelec:
status: New → Fix Committed
Revision history for this message
Stephan Raue (sraue) wrote :

Hi,

we are in process to merge all bugs from Launchpad to Trac (hosted on https://sourceforge.net/apps/trac/openelec ).

This bug we have merged to TRAC:

https://sourceforge.net/apps/trac/openelec/ticket/21

greetings

Stephan

Changed in openelec:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.