problem libbit4xpki.so.conf is not an ELF file - it has the wrong magic bytes at the start

on my leap 15 with KDE I’m trying to install a middleware to use with firefox and a card reader.
on the instruction they says:

Il Middleware Universale per Linux è costituito da 2 file: (the universal middleware is formed of two files)
libbit4xpki.so
libbit4xpki.so.conf
I file vanno copiati sempre insieme in una cartella di sistema, ad esempio: (the files has be copied ALWAYS TOGETHER in a system folder, for example)
/usr/local/lib
/usr/lib
dopo aver copiato i file potrebbe essere necessario aggiornare la cache delle librerie col (after copied the file could be necessary to to update library cache running:)
comando: (command:)
#> ldconfig

after copyed the files in /usr/lib64/ the run as root

ldconfig

the message was this:

Password: 
-bash: warning: setlocale: LC_CTYPE: cannot change locale (LANG=en_GB.UTF-8): No such file or directory
pla-3-TW:~ # ldconfig
ldconfig: /usr/lib64/libbit4xpki.so.conf is not an ELF file - it has the wrong magic bytes at the start.

what I have to do??
manythanks, ciao :slight_smile: Pier

Hi
The *.so file(s) go to your respective lib directory the *.so.conf files go into /etc/ld.so.conf.d/libbit4xpki.so.conf, if you inspect the contents it will just be paths to library files. You can see the default graphiz.conf file. Then run ldconfig…

Manythanks malcolm, I moved libbit4xpki.so.conf here /etc/ld.so.conf.d/libbit4xpki.so.conf.
but it seems that libbit4xpki.so.conf file is not just path to library files as the graphiz.conf file. …or I didn’t understood?
the graphiz.conf file content is:

/usr/lib64/graphviz
/usr/lib64/graphviz/sharp
/usr/lib64/graphviz/java
/usr/lib64/graphviz/perl
/usr/lib64/graphviz/php
/usr/lib64/graphviz/ocaml
/usr/lib64/graphviz/python
/usr/lib64/graphviz/lua
/usr/lib64/graphviz/tcl
/usr/lib64/graphviz/guile
/usr/lib64/graphviz/ruby

and libbit4xpki.so.conf content is:

dspiniscnspin=true
DSPinUseGui=false
HideCacheDsPinCheck=false

and ldconfig says this:

pla-3-TW:~ # ldconfig
 is not a known library type
 is not a known library type
 is not a known library type
pla-3-TW:~ # 

On Tue 08 Jan 2019 04:56:03 PM CST, pier andreit wrote:

malcolmlewis;2891044 Wrote:
> Hi
> The *.so file(s) go to your respective lib directory the *.so.conf
> files go into /etc/ld.so.conf.d/libbit4xpki.so.conf, if you inspect
> the contents it will just be paths to library files. You can see the
> default graphiz.conf file. Then run ldconfig…
Manythanks malcolm, I moved libbit4xpki.so.conf here
/etc/ld.so.conf.d/libbit4xpki.so.conf.
but it seems that libbit4xpki.so.conf file is not just path to library
files as the graphiz.conf file. …or I didn’t understood?
the graphiz.conf file content is:

Code:

/usr/lib64/graphviz
/usr/lib64/graphviz/sharp
/usr/lib64/graphviz/java
/usr/lib64/graphviz/perl
/usr/lib64/graphviz/php
/usr/lib64/graphviz/ocaml
/usr/lib64/graphviz/python
/usr/lib64/graphviz/lua
/usr/lib64/graphviz/tcl
/usr/lib64/graphviz/guile
/usr/lib64/graphviz/ruby


and libbit4xpki.so.conf content is:

Code:

dspiniscnspin=true
DSPinUseGui=false
HideCacheDsPinCheck=false

and ldconfig says this:

Code:

pla-3-TW:~ # ldconfig
is not a known library type
is not a known library type
is not a known library type
pla-3-TW:~ #

Hi
Seems you weren’t the only one…
https://aur.archlinux.org/packages/bit4id-ipki/

So where did this package come from, was it an rpm?


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.25-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

:expressionless: I followed the instructions in the cd ov my smart card reader and the packages come from a .zip file MU_INCARD_LINUX/linux64 from here

https://www.internavigare.com/omnikey-1021/

clicking on the download button after “I Driver per le Smart Card Incard possono essere scaricati dai seguenti Link”
and reading the manual where I red the intructions posted in the first message it seems to be made by

http://bit4id.com/en

On Wed 09 Jan 2019 05:56:03 PM CST, pier andreit wrote:

malcolmlewis;2891155 Wrote:
> Hi
> Seems you weren’t the only one…
> AUR (en) - bit4id-ipki
>
> So where did this package come from, was it an rpm?
>

:expressionless: I followed the instructions in the cd ov my smart card reader and the
packages come from a .zip file MU_INCARD_LINUX/linux64 from here

Code:

https://www.internavigare.com/omnikey-1021/

clicking on the download button after “I Driver per le Smart Card
Incard possono essere scaricati dai seguenti Link”
and reading the manual where I red the intructions posted in the first
message it seems to be made by

Code:

Home - Bit4id

Hi
Copy the two files to /usr/lib/bit4id/ by the looks… so wherever the
files are located now, cd to that directory and then;


mkdir -p /usr/lib/bit4id/
mv libbit4xpki.so* /usr/lib/bit4id/
ldconfig

See how that goes :slight_smile:


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.25-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

1 Like

maaaanythanks malcolm lol! it works now!!! ldconfig gives no errors
so, as the files was for 64bit I copyed the ones coming from MU_OBERTHUR_LINUX/linux32/ in /usr/lib/bit4id/
and the ones coming from MU_OBERTHUR_LINUX/linux64/ in /usr/lib64/bit4id/
and also ldconfig gives no errors :slight_smile:
do you think it is ok to do what I did??

Hi
Yes, that’s correct :slight_smile: Not sure if you need both though, but won’t hurt anything AFAIK.