* how to find dlopen be able to find shared library in /lib/xxx/yyyy?
@ 2021-01-02 4:37 sotrdg sotrdg
2021-01-02 10:02 ` Florian Weimer
0 siblings, 1 reply; 3+ messages in thread
From: sotrdg sotrdg @ 2021-01-02 4:37 UTC (permalink / raw)
To: libc-help
I have an C.UTF-8.so at /usr/local/lib/fast_io_i18n_data/locale/C.UTF-8.so.
I tried to do
dlopen(“fast_io_i18n_data/locale/C.UTF-8.so”,RTLD_GLOBAL | RTLD_NOW);
However, the dlls cannot get found. While loading dlls in /usr/local/lib/C.UTF-8.so could get found with no issues.
Any solution to get around this??
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to find dlopen be able to find shared library in /lib/xxx/yyyy?
2021-01-02 4:37 how to find dlopen be able to find shared library in /lib/xxx/yyyy? sotrdg sotrdg
@ 2021-01-02 10:02 ` Florian Weimer
2021-01-03 0:50 ` make stage of build glibc-2.32 tries to install in /usr/include J Lumby
0 siblings, 1 reply; 3+ messages in thread
From: Florian Weimer @ 2021-01-02 10:02 UTC (permalink / raw)
To: sotrdg sotrdg via Libc-help; +Cc: sotrdg sotrdg
* sotrdg sotrdg via Libc-help:
> I have an C.UTF-8.so at /usr/local/lib/fast_io_i18n_data/locale/C.UTF-8.so.
>
> I tried to do
> dlopen(“fast_io_i18n_data/locale/C.UTF-8.so”,RTLD_GLOBAL | RTLD_NOW);
>
> However, the dlls cannot get found.
You need to provide the full (absolute) path to the shared object.
Searching only happens if the dlopen argument doesn ot contain a slash.
You can still use $LIB to paper over 32-bit/64-bit differences.
^ permalink raw reply [flat|nested] 3+ messages in thread
* make stage of build glibc-2.32 tries to install in /usr/include
2021-01-02 10:02 ` Florian Weimer
@ 2021-01-03 0:50 ` J Lumby
0 siblings, 0 replies; 3+ messages in thread
From: J Lumby @ 2021-01-03 0:50 UTC (permalink / raw)
To: libc-help
I am building glibc-2.32 from source and hit an error during execution
of make - see below.
It appears that the nss makefile is trying to install an include file in
/usr/include.
Surely it should not be doing that for the make stage, i.e. *not* make
install.
my configure command (which was successful) was
../glibc-2.32/configure
--with-headers=/mnt/julybild/sysbuild/linux-5.10.1-Antec/usr/include
--prefix=/usr --enable-kernel=5.10.1
and the make command was
MAKE=/usr/local/bin/make CC=gcc make
Is this a bug?
Cheers, John Lumby
___________________________________________________________________
make[2]: Entering directory '/mnt/julybild/sysbuild/glibc-2.32/nss'
/usr/local/bin/install -c -m 644 ../include/limits.h /usr/include/limits.h
/usr/local/bin/install: cannot remove '/usr/include/limits.h':
Permission denied
make[2]: *** [../Makerules:1237: /usr/include/limits.h] Error 1
make[2]: Leaving directory '/mnt/julybild/sysbuild/glibc-2.32/nss'
make[1]: *** [Makefile:470: nss/others] Error 2
make[1]: Leaving directory '/mnt/julybild/sysbuild/glibc-2.32'
make: *** [Makefile:9: all] Error 2
rc= 2 Sat Jan 2 18:02:10 EST 2021 from MAKE=/usr/local/bin/make CC=gcc
make glibc-2.32
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-03 0:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-02 4:37 how to find dlopen be able to find shared library in /lib/xxx/yyyy? sotrdg sotrdg
2021-01-02 10:02 ` Florian Weimer
2021-01-03 0:50 ` make stage of build glibc-2.32 tries to install in /usr/include J Lumby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).