You are not logged in.

#1 2011-05-15 15:21:55

vladimir_1922
Member
Registered: 2010-11-02
Posts: 50

rodent compiles manually, but not in pkgbuild. [SOLVED]

Hi!

I am triing to upload my first package, the rodent filemanager. I tested it first by downloading, compiling and using it manually (./configure make make install), and worked fine.

The problem is when doing it via PKGBUILD. In the make phase it give a lot of undefined reference errors:

/home/alvarez/abs/rodent/src/rodent-4.6.2/Build/lib/.libs/librfm.so: undefined reference to `SmcSaveYourselfDone'
/home/alvarez/abs/rodent/src/rodent-4.6.2/Build/lib/.libs/librfm.so: undefined reference to `SmcCloseConnection'
/home/alvarez/abs/rodent/src/rodent-4.6.2/Build/lib/.libs/librfm.so: undefined reference to `SmcGetIceConnection'
/home/alvarez/abs/rodent/src/rodent-4.6.2/Build/lib/.libs/librfm.so: undefined reference to `SmcOpenConnection'
/home/alvarez/abs/rodent/src/rodent-4.6.2/Build/lib/.libs/librfm.so: undefined reference to `IceProcessMessages'
/home/alvarez/abs/rodent/src/rodent-4.6.2/Build/lib/.libs/librfm.so: undefined reference to `IceConnectionNumber'
/home/alvarez/abs/rodent/src/rodent-4.6.2/Build/lib/.libs/librfm.so: undefined reference to `SmcSetProperties'
collect2: ld returned 1 exit status
make[3]: *** [rodent-diff] Error 1
make[3]: Leaving directory `/home/alvarez/abs/rodent/src/rodent-4.6.2/Build/bin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/alvarez/abs/rodent/src/rodent-4.6.2/Build'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alvarez/abs/rodent/src/rodent-4.6.2'
make: *** [all] Error 2


this librfm is a link to another library, i tried to use the system one, to remove it and just copy-paste in case it whas a link-following problem. I also try to compile the downloaded by the pkbuild, and then it doesn't display this error. then the sources work fine, error must be found in my pkbuild, but i dont see where!. Can someone check and tell me why it doesn't work?

Thanks in advance for any help. Here is my PKBUILD!


# Maintainer: Iñigo Alvarez<alvarezviu@gmail.com>
pkgname=rodent
pkgver=4.6.2
pkgrel=1
pkgdesc="Very lightweight filemanager, fully integrated with the console"
arch=('i686' 'x86_64')
url="http://xffm.org/"
license=('GPL')
depends=('libxml2' 'glib2' 'lib32-gtk2' 'intltool' 'gawk')
source=(http://downloads.sourceforge.net/project/xffm/$pkgver/$pkgname-$pkgver.tar.bz2)
md5sums=('47afe869472deb1fdd6748bf2079a32e')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

check() {
  cd "$srcdir/$pkgname-$pkgver"
  make -k check
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
}

Last edited by vladimir_1922 (2011-05-16 00:33:55)

Offline

#2 2011-05-15 16:09:19

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: rodent compiles manually, but not in pkgbuild. [SOLVED]

try adding either of the following prior to the ./configure in build():

unset LDFLAGS
# or
export LDFLAGS=${LDFLAGS//-Wl,--as-needed}

Last edited by falconindy (2011-05-15 16:10:00)

Offline

#3 2011-05-16 00:15:15

vladimir_1922
Member
Registered: 2010-11-02
Posts: 50

Re: rodent compiles manually, but not in pkgbuild. [SOLVED]

falconindy wrote:

try adding either of the following prior to the ./configure in build():

unset LDFLAGS
# or
export LDFLAGS=${LDFLAGS//-Wl,--as-needed}

This worked for me! now i am looking what the hell i did with unset LDFLAGS tongue

I uploaded my first pkbuild to aur! i am totally happy with this. Thank you!

Offline

Board footer

Powered by FluxBB