You are not logged in.

#1 2012-01-02 11:04:01

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

[solved] Help to build wmii-hg

Hi all,
I'm trying to build the most recent version of wmii from hg repo but experience the following error during compilation

cc -o wmii9menu.out wmii9menu.o -lXinerama -lXrender -lX11 -lXrandr -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -g -ldl -g -ldl -g -ldl -L../../lib -L/usr/lib ../../lib/libstuff.a ../../lib/libregexp9.a ../../lib/libbio.a ../../lib/libfmt.a ../../lib/libutf.a /usr/lib/libixp.a
/usr/bin/ld: ../../lib/libstuff.a(xft.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlsym@@GLIBC_2.2.5' is defined in DSO /usr/lib/libdl.so so try adding it to the linker command line
/usr/lib/libdl.so: could not read symbols: Invalid operation

However, when executing essentially the same commands

make PREFIX=/usr ETC=/etc && make PREFIX=/usr ETC=/etc DESTDIR=/tmp/wmii-hg install

in terminal compilation finishes just fine and I get built artefacts in destination directory.

So seems like makepkg utility make some changes to environment which brake compilation process.

EDIT: calling function build() from PKGBUILD file also builds package without any issues (except for those ones which are related to the absence of makepkg specific variables like 'pkgdir')

Could anyone help me to resolve the issue?
Thanks in advance

Last edited by eDio (2012-01-07 09:31:24)

Offline

#2 2012-01-06 07:12:24

almadaer
Member
Registered: 2011-11-18
Posts: 5

Re: [solved] Help to build wmii-hg

Same issue there =<
Do you have any clues by now?

Offline

#3 2012-01-06 08:50:34

almadaer
Member
Registered: 2011-11-18
Posts: 5

Re: [solved] Help to build wmii-hg

try to change this(in pkgbuild):

make ${_flags[@]} all

to that:

make ${_flags[@]} LDFLAGS="-ldl" all

PS it's the 40'th line

Last edited by almadaer (2012-01-06 08:52:15)

Offline

#4 2012-01-07 09:31:02

eDio
Member
From: Ukraine, Kyiv
Registered: 2008-12-02
Posts: 422

Re: [solved] Help to build wmii-hg

Thanks, that helped!

Offline

Board footer

Powered by FluxBB