You are not logged in.

#1 2024-05-13 21:05:31

f8rzd
Member
Registered: 2024-05-04
Posts: 5

Cannot install trickle because libc is not found

I am trying to install trickle from AUR


it fails inside the configure part with below error

checking if underscores are needed for symbols... no
checking if we can access libc without dlopen... no
checking if we can access libc with libc.so... no
checking if we can access libc with /usr/lib/libc.so... no
checking if we can access libc with /usr/lib/libc.so.6... no
checking if we can access libc with /lib/libc.so.6... no
configure: error: cannot figure out how to access libc
==> ERROR: A failure occurred in build().
    Aborting...
-> error making: trickle-git-exit status 4
-> Failed to install the following packages. Manual intervention is required:
trickle-git - exit status 4


though I have glibc installed

I have tried all of below
pacman -Qkk glibc (0 altered files)
pacman -S glibc (resync/reinstall)

and aslo
yay -S trickle
yay -S trickle-git
cloning trickle aur repo and running makepkg -si manually
cloning trickle from github and trying to compile from source

where everyone of them fails with the same exact error


I wouldn't think it's a problem with trickle since I had recently (about week ago) installed it on another system running archlinux which I do not have access to anymore and also the repo has not had an update for 11 years

is there anything I'm missing on ?

Offline

#2 2024-05-13 21:23:13

loqs
Member
Registered: 2014-03-06
Posts: 18,056

Re: Cannot install trickle because libc is not found

patch for trickle-git (build tested only)

diff --git a/configure.in b/configure.in
index 6ebf3b2..5c85682 100644
--- a/configure.in
+++ b/configure.in
@@ -198,6 +198,7 @@ if test "$HAVEMETHOD" = "no"; then
         AC_TRY_RUN(
         #include <dlfcn.h>
         #include <stdio.h>
+        #include <stdlib.h>
     
         int
         main(int argc, char **argv)
diff --git a/xdr.c b/xdr.c
index ed8bf5b..a20bbd9 100644
--- a/xdr.c
+++ b/xdr.c
@@ -103,7 +103,7 @@ xdr_msg(XDR *xdrs, struct msg *msg)
 {
 	X(xdr_short(xdrs, &msg->status));
 	X(xdr_union(xdrs, (int *)&msg->type, (char *)&msg->data,
-	      xdr_msg_discrim, _xdr_void));
+	      xdr_msg_discrim, (xdrproc_t)_xdr_void));
 
 	return (TRUE);
 }

Offline

#3 2024-05-13 21:39:26

f8rzd
Member
Registered: 2024-05-04
Posts: 5

Re: Cannot install trickle because libc is not found

I do not know how to utilize that information

however I did apply the changes manually but it wouldn't make much change (I guess) since my problem lies in the ./configure script

Offline

#4 2024-05-13 21:47:16

f8rzd
Member
Registered: 2024-05-04
Posts: 5

Re: Cannot install trickle because libc is not found

my bad seems like it's generated from that

however I'm now stuck on building after succeeding configuration



[f8rzd@Archie trickle]$ sudo pacman -S libtirpc
warning: libtirpc-1.3.4-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) libtirpc-1.3.4-1

Total Installed Size:  0.42 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                                       [#################################################] 100%
(1/1) checking package integrity                                                     [#################################################] 100%
(1/1) loading package files                                                          [#################################################] 100%
(1/1) checking for file conflicts                                                    [#################################################] 100%
(1/1) checking available disk space                                                  [#################################################] 100%
:: Processing package changes...
(1/1) reinstalling libtirpc                                                          [#################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
[f8rzd@Archie trickle]$ make
make  all-am
make[1]: Entering directory '/home/f8rzd/la/trickle'
gcc -DHAVE_CONFIG_H -I.    -Wall -Icompat  -g -O2 -c -o xdr.o xdr.c
xdr.c:10:10: fatal error: rpc/rpc.h: No such file or directory
   10 | #include <rpc/rpc.h>
      |          ^~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:528: xdr.o] Error 1
make[1]: Leaving directory '/home/f8rzd/la/trickle'
make: *** [Makefile:406: all] Error 2

Last edited by f8rzd (2024-05-13 21:47:59)

Offline

#5 2024-05-13 21:49:44

loqs
Member
Registered: 2014-03-06
Posts: 18,056

Re: Cannot install trickle because libc is not found

Please see Patching_packages#Applying_patches and as you noted configure needs to be regenerated so after applying the patch you need to call autoconf.  So you changes to the PKGBUILD may look something like:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,10 +13,12 @@ depends=('libevent' 'libtirpc')
 _commit=a2aeb9f30aa3c651580b9be9ba3c9c13bf51a416 # "import of trickle 1.07"
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mariusae/trickle/archive/${_commit}.tar.gz"
         "fix-crasher.patch"
-        "$url/commit/20f221f166fc03323ed28dc3cad0b0da2c879513.patch")
+        "$url/commit/20f221f166fc03323ed28dc3cad0b0da2c879513.patch"
+        trickle-gcc14.patch)
 sha256sums=('b07ffdff831d11972dc802a4fc2d4000af844933b39ad7f88de20a2866a55f37'
             '495aeb95039dcdeb3bfde46c40b3391fe2416ec51678a1ded9bbeced6f6d1349'
-            '432194c2a25e934a865a06de9fa876545431a1729028ca1a60943554865fb40c')
+            '432194c2a25e934a865a06de9fa876545431a1729028ca1a60943554865fb40c'
+            '07614e2a07ab61e95572da44b22b7a05b14d958ec62f4c400f7527104ff3492f')
 
 prepare() {
   cd $pkgname-$_commit
@@ -29,6 +31,9 @@ prepare() {
 
   # Fix build with -Werror=format-security, https://github.com/mariusae/trickle/commit/20f221f166fc03323ed28dc3cad0b0da2c879513
   patch -Np1 -i ../20f221f166fc03323ed28dc3cad0b0da2c879513.patch
+
+  patch -Np1 -i ../trickle-gcc14.patch
+  autoconf
 }
 
 build() {

Last edited by loqs (2024-05-13 21:50:02)

Offline

Board footer

Powered by FluxBB