Opened 15 years ago

Last modified 15 years ago

#36 new defect

defect install on ubuntu 8.04... cannot open shared object file

Reported by: josephboiteau@… Owned by:
Priority: major Milestone:
Version: 5.5.0 Keywords: postinst libraries
Cc:

Description

Hi,

this is the exact same problem than Ticket #34, but appears on a Ubuntu Hardy (8.04), with dellomas 5.5.0-4 package.

At the postinst configuration, I get:

Starting Systems Management Data Engine:
Starting dsm_sa_datamgr32d: /opt/dell/srvadmin/dataeng/bin/dsm_sa_datamgr32d: error while loading shared libraries: libdcsmil32.so.5: cannot open shared object file: No such file or directory
 * 
Starting dsm_sa_eventmgr32d: /opt/dell/srvadmin/dataeng/bin/dsm_sa_eventmgr32d: error while loading shared libraries: libdcsupt32.so.5: cannot open shared object file: No such file or directory
 * 


I've made some tries.. It's still strange for me: when dpkg system just execute the postinst, thoses libraries aren't found when I launch, even just a second after, the postinst script by myself, or /etc/init.d/instsvcdrv restart -> No problem !
I have tried to force ldconfig into postinst before restart or even a sleep to be sure ldconfig is done.. but nothing

I need to have a package finishing properly for our local propagation.. help

Change History (12)

comment:1 Changed 15 years ago by bas

maybe we must set the shell default to bash, because the default shell on ubuntu is different

comment:2 Changed 15 years ago by josephboiteau@…

just tried #!/bin/bash in postinst, but same issue...

(could you edit my previous post, I was obviously referring to #14)

comment:3 Changed 15 years ago by bas

Did you also tried to use ldaconfig with other flags:

  • man ldconfig

The problem described in #14 is different there is no ld.so.conf.d directory and you must edit the

  • ld.so.conf

to add the libs.

what is in you ld.so.conf file?

comment:4 Changed 15 years ago by josephboiteau@…

/etc/ld.so.conf

include /etc/ld.so.conf.d/*.conf

and in subdir,

dell-omsa.conf
i486-linux-gnu.conf
libc.conf

and into dell-omsa.conf, all proper paths..

/opt/dell/srvadmin/dataeng/bin
/opt/dell/srvadmin/hapi/bin
/opt/dell/srvadmin/oma/bin
/opt/dell/srvadmin/omsa/bin
/opt/dell/srvadmin/shared/bin
/opt/dell/srvadmin/sm
/opt/dell/srvadmin/sm/dellvl

comment:5 Changed 15 years ago by josephboiteau@…

The problem is clearly about asking ldconfig during postinst
I believe it's not really executed before postinst exit

I've read some about ldconfig triggerisation... http://www.dpkg.org/dpkg/Triggers
but the cited example "--now" doesn't exist on my ubuntu

dpkg-trigger --now ldconfig
dpkg-trigger: unknown option --now

any idea ?

comment:6 Changed 15 years ago by bas

strange. Can you try with the full path for ldconfig and thanks for suggestion. does this problem occur on other machines or onlt on one machine, maybe thisis the problem

  • /etc/ld.so.cache

comment:7 Changed 15 years ago by josephboiteau@…

i have the problem on a ubuntu 8.04, and on my local fresh ubuntu intrepid
i have made many tries, including full path and also dpkg-trigger

dpkg-trigger --no-await ldconfig

but still the same. I also try a sleep with 20 second, but when i watch ldconfig cache (ldconfig -p) during postinst, the newly added libs are not present...
and just after package install (and failing) they are !!

to be sure, i just have test your last package on a debian lenny, and there it works wonderfully !

comment:8 Changed 15 years ago by josephboiteau@…

It's probably not a proper debian trick, but I have a solution, a cheat, but a solution.
After reading at the end of 8.1 there, i decide to hardly add my missing libs into the package.
so I just add the 2 ones firing troubles, in my package sources, in usr/lib:

ls -l usr/lib
lrwxrwxrwx  1 root root      46 2009-03-26 15:09 libdcsupt32.so.5 -> /opt/dell/srvadmin/shared/bin/libdcsupt32.so.5
lrwxrwxrwx  1 root root      44 2009-03-26 15:09 libdcsupt32.so -> /opt/dell/srvadmin/shared/bin/libdcsupt32.so
lrwxrwxrwx  1 root root      47 2009-03-26 15:09 libdcsmil32.so.5 -> /opt/dell/srvadmin/dataeng/bin/libdcsmil32.so.5
lrwxrwxrwx  1 root root      45 2009-03-26 15:09 libdcsmil32.so -> /opt/dell/srvadmin/dataeng/bin/libdcsmil32.so

and of course, package installs wonderfully.
will you add it to your package ?

comment:9 Changed 15 years ago by bas

Just a question is the packaga for ubuntu installed succesfully if you get these errors? If yes the you can also do a dataeng restart after the installation or make a simple wrapper script for the dellomsa installation. Personally a dislike the idea to put links in /usr/lib

comment:10 Changed 15 years ago by josephboiteau@…

yes, the package is installed successfully
but the first service restart (inside postinst), only that first one, goes wrong...

I have the need of a clean package since I use it as a dependency... and for many hosts

comment:11 Changed 15 years ago by bas

Did you also filled in a bug at Ubuntu about this and at our site we monitor the daemonss.If they fail we restart them again. It will only fail with first time installations and upgrades should do fine.

comment:12 Changed 15 years ago by josephboiteau@…

Note: See TracTickets for help on using tickets.