You are not logged in.
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
Same issue there =<
Do you have any clues by now?
Offline
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
Offline