You are not logged in.
Pages: 1
Topic closed
I am trying to install conky-lua from AUR on 64 bit Arch and failing miserably.
When running the following:
yaourt -Sy conky-lua
I get the following error:
/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../lib/libtolua++.a(tolua_is.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/../../../../lib/libtolua++.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libcairo.la] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-mark/aur-conky-lua/conky-lua/src/conky-1.7.2/lua'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build conky-lua package.
I have read through what search results I can find on the topic (both here and via google) and have attempted to remedy the situation by adding build options to the toluapp build to provide for the conky-lua build. I have tried this by adding CCFLAGS = '-fPIC' to the scons call in the PKGBUILD file, I have also tried editing the config_linux.py file, which sits along side the main build file, to include the -fPIC switch also, which doesn't work either. i.e. I have this in the config_linux.py now:
CCFLAGS = ['-O2', '-ansi', '-Wall', '-fPIC']
Which doesn't work, it results in:
==> Validating source files with md5sums...
tolua++-1.0.93.tar.bz2 ... Passed
config_linux.py ... FAILED
==> ERROR: One or more files did not pass the validity check!
Error: Makepkg was unable to build toluapp package.
Can someone help me through a build as I have never come across scons before and maybe I am providing directives to the toluapp build incorrectly? I am still thinking in "make" terms...
I NEED lua in conky
Thanks in advance
Regards,
Kaivalagi
Last edited by kaivalagi (2009-11-11 07:32:04)
Offline
I went on a wild goose chase, the issue (if I had read the errors properly!!!) was that I also needed to change the md5 checksum value in the PKGBUILD file to allow the build with -fPIC options...I just successfully built tolua++ and conky with lua based on changes to the config_linux.py as described elsewhere. I thought I was going crazy there - I am always learning with Arch...sometimes too bloody slowly
I wont make that mistake again, just a different one...
Offline
How the heck do I mark a topic as solved???
You can append [SOLVED] on the end of the title by editing the opening post. And please use the edit function instead of bumping your own posts. The first bump was fine because it was a day later. The last few could have been kept in the same post.
Offline
I was asked by email on what exactly I did to get conky-lua installed and working on 64bit Arch, so I thought I would post my reply below in case it is of help to anyone else. Cheers
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Run "yaourt -S conky-lua". Amongst other things this will try to install a dependancy which you need to mess about with, the package you need to edit is "toluapp".
When the "toluapp" package is downloaded by yaourt answer y to the edit question and provide something like gedit or kate as the editor to use
You'll now see the PKGBUILD file in the editor, this doesn't need editing just yet. But if you open file from the editor you'll see the directory thie PKGBUILD is in, and you want to edit the config_linux.py file you'll see there.
You should see this line in the config_linux.py file:
CCFLAGS = ['-O2', '-ansi', '-Wall']
Change it so it is like this:
CCFLAGS = ['-O2', '-ansi', '-Wall', '-fPIC']
Now, back to the PKGBUILD file, you'll see this line:
md5sums=('100aa6907b8108582080b37d79c0afd7' 'bab107cdd2d18d3453a2344341b77c45')
These checksums line up with tarball and config_linux.py files, and this will stop you're edit from working if not amended because the .py file isn't what it should be, we changed it. So run md5sum against the .py file and update the second checksum in the line appropriately.
Carry on with the package installation and conky should have lua support
Last edited by kaivalagi (2010-01-14 08:50:55)
Offline
Thank you very much
Offline
Thanks again, your post is still coming in useful, glad you updated with the email details.
Offline
Thanks again, your post is still coming in useful, glad you updated with the email details.
The package still isn't fixed for 64 bit after a release, I think I need to raise the issue with the author maybe...
Offline
Ok I changed the PKGBUILD and the config_linux.py as above. But the following failure appears at the compilation:
/usr/bin/ld: cannot find -llua50
/usr/bin/ld: cannot find -llualib50
collect2: error: ld returned 1 exit status
scons: *** [bin/tolua++_bootstrap] Error 1
scons: building terminated because of errors.
Regards DoubleU
Offline
Hello I have retried and it worked.
Offline
Hello I have retried and it worked.
I checked the AUR, there are no comments since May. You might consider posting your updated PKGBUILD, and what you did to allow it to compile.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
...You should see this line in the config_linux.py file...
Hi, I know this is a bit too late, but I have the same problem installing conky-lua, except I have no clue where to find the config_linux.py file. I would appreciate it if you could shed some light on this..
TIA,
Regards
Offline
Please open a new topic about your issue, and link back to this one if you feel it is still relevant.
https://wiki.archlinux.org/index.php/Fo … bumping.22
Closing.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed