Closed aquamarine-axo closed 7 months ago
Thanks for the report.
FTR, the official way to build libti*+gfm+tilp remains https://github.com/debrouxl/tilp_and_gfm/raw/master/tilp/trunk/build/scripts/install_tilp.sh , which uses the autotools build definitions. Either these work for you, in which case the CMake definitions need fixing, or neither works for you, in which case both build definitions need fixing :)
Thanks for your swift response. I vaguely remember trying to use that script on a different system but still Arch Linux, and remember it failing as well, but that was well over six months ago at this point. As I'm on my phone now, I'll test again timorrow afternoon. Thanks :)
Interesting. I didn't explicitly use -fPIC / -fPIE in the maintainer build scripts (PIC, i.e. -fpic or better, being the default behaviour for shared libraries anyway), so I just did it locally; however, using the maintainer build scripts, I can't reproduce a build issue similar to yours on Debian sid amd64 (GCC 13, binutils 2.41, etc.). -fPIC and -fPIE are definitely passed to the compiler and linker. The autotools build definitions do therefore not seem all bad.
Would also be worth re-trying after adjusting the root CMakeLists.txt to use PIC and PIE?
After running the script, then fixing some dependency issues (libglade2 was uploaded to the AUR but the latest build from there does not compile correctly, so I had to download an older binary version and manually install it), TiLP was able to successfully install... but the binary that got installed still would not run!
TiLP2 - Version 1.17, (C) 1999-2008 Romain Lievin
THIS PROGRAM COMES WITH ABSOLUTELY NO WARRANTY
PLEASE READ THE DOCUMENTATION FOR DETAILS
built on Aug 5 2023 23:28:28
tilp-INFO: 12:50:32.480: setlocale: (null)
tilp-INFO: 12:50:32.482: bindtextdomain: /usr/local/share/locale/
tilp-INFO: 12:50:32.482: textdomain: tilp2
(tilp:50808): tilp-ERROR **: 12:50:32.482: libticalcs library version is 1.1.10 but 1.1.8 mini required.
fish: Job 1, 'sudo tilp' terminated by signal SIGTRAP (Trace or breakpoint trap)
Perhaps this was from my previous tinkering with libti*? I'll try to remove all of what I did before and attempt to run the install again.
Indeed, you need to clean up your previous attempts, as well as any installed packages. libticalcs 1.1.10 is the appropriate version number of a binary built from the source code in the Git repository (the corresponding libticonv version being 1.1.6, libtifiles version 1.1.8 and libticables version 1.3.6), but TILP 1.17 does not match the libraries: currently 1.19 in the tilp_and_gfm repository.
Closing issue. I was able to get everything to build correctly on a new install of Arch Linux on my laptop, after building libglade and python2 (dependency of libglade) myself
After freshly git cloning the repository, running
cmake .
and thenmake
fails with the following output: