Operating System - HP-UX
1753734 Members
4505 Online
108799 Solutions
New Discussion юеВ

Re: Samba-3.0.10 could not start on HP-UX v. B.11.23 U

 
H.Merijn Brand (procura
Honored Contributor

Re: Samba-3.0.10 could not start on HP-UX v. B.11.23 U

/usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/../../..

which resolves to /usr/local/lib IF /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3 exists

is the path we're talking about, and the only thing that can still happen, is that one of those libraries you see in that chatr list, refers to libgcc.something

I've made a visit on testdrive's spe176, where they have installed gcc-3.4.3, but no samba

spe176:/usr/local/lib 104 > l
./ libgcc_s_hpux64.so@ libopcodes.la*
../ libgcc_s_hpux64.so.0* libpanel.sl*
gcc/ libgettextlib.sl* libstdc++.a
hpux64/ libgettextsrc.sl* libstdc++.la*
libbfd.a libiberty.a libstdc++.so@
libbfd.la* libiconv.sl* libstdc++.so.6@
libcharset.sl* libintl.sl* libstdc++.so.6.3*
libform.sl* libmenu.sl* libsupc++.a
libgcc_s.so@ libncurses.sl* libsupc++.la*
libgcc_s.so.0* libopcodes.a pa1.1/
spe176:/usr/local/lib 105 > find gcc -type d
gcc
gcc/ia64-hp-hpux11.23
gcc/ia64-hp-hpux11.23/3.4.3
gcc/ia64-hp-hpux11.23/3.4.3/hpux64
gcc/ia64-hp-hpux11.23/3.4.3/include
gcc/ia64-hp-hpux11.23/3.4.3/include/aCC_std
gcc/ia64-hp-hpux11.23/3.4.3/include/rpc
gcc/ia64-hp-hpux11.23/3.4.3/include/sys
gcc/ia64-hp-hpux11.23/3.4.3/install-tools
gcc/ia64-hp-hpux11.23/3.4.3/install-tools/include
spe176:/usr/local/lib 106 >

libgen.so.1
libsec.so.1
libnsl.so.1
libintl.so
libiconv.so
libpopt.so
libc.so.1

spe176:/usr/local/lib 106 > chatr libintl.sl
libintl.sl:
32-bit ELF shared library
shared library dynamic path search:
LD_LIBRARY_PATH enabled first
SHLIB_PATH enabled second
embedded path enabled third /usr/local/lib
shared library list:
/usr/local/lib/libiconv.sl
libc.so.1
shared library mapped private disabled
shared vtable support disabled
explicit unloading enabled
linkage table protection disabled
segments:
index type address flags size
4 text 04000000 z---c- D (default)
5 data 40000000 ---m-- D (default)
kernel assisted branch prediction enabled
lazy swap allocation for dynamic segments disabled
nulptr references disabled
caliper dynamic instrumentation disabled
spe176:/usr/local/lib 107 > chatr libiconv.sl
libiconv.sl:
32-bit ELF shared library
shared library dynamic path search:
LD_LIBRARY_PATH enabled first
SHLIB_PATH enabled second
embedded path enabled third /usr/local/lib
shared library list:
libc.so.1
shared library mapped private disabled
shared vtable support disabled
explicit unloading enabled
linkage table protection disabled
segments:
index type address flags size
4 text 04000000 z---c- D (default)
5 data 40000000 ---m-- D (default)
kernel assisted branch prediction enabled
lazy swap allocation for dynamic segments disabled
nulptr references disabled
caliper dynamic instrumentation disabled
spe176:/usr/local/lib 108 >

On *this* system these two do not refer to libgcc. There's no libpopt here. Your milage may vary. Could you check the lib chain you have?

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Hari Prasad S R
Frequent Advisor

Re: Samba-3.0.10 could not start on HP-UX v. B.11.23 U

Hi Nikolay ,

May be you can try to install CIFS client/sever in the applications cd provided with os for the samba, even we have tryed tha one it will install properly, & for configuration you can start /opt/samba/smb_start

bye
Nikolay Aralovets_1
Occasional Advisor

Re: Samba-3.0.10 could not start on HP-UX v. B.11.23 U

2procura
I have tested all dependences of libraries which are in shared library list for smbd. Any of them does not depend on libgcc library. I have reinstalled gcc package (has installed gcc-3.4.3). After that in the system has not appeared libgcc.co.* libraries or libgcc.sl libraries
This library may be not necessary? There may be my problem in the friend?
Nikolay Aralovets_1
Occasional Advisor

Re: Samba-3.0.10 could not start on HP-UX v. B.11.23 U

2 Hari Prasad

Yes, CIFS server\client from application cd it is installed, but I do not want it to use. It is necessary - to use samba (versions above than 3.0.10).
H.Merijn Brand (procura
Honored Contributor

Re: Samba-3.0.10 could not start on HP-UX v. B.11.23 U

Now we might need to get more basic

# cd /usr/local/samba
# bin/smbstatus

Does that run or does it dump core?
If it core-dumps, what is the stack trace?

Then you could install tusc/truss from http://hpux.connect.org.uk/ftp/hpux/Sysadmin/tusc-7.7/tusc-7.7-sd-11.23.depot.gz (worthwhile anyway) and then

# export TUSCBUFMODE=dual
# tusc bin/smbd 2>&1 | grep ^open

It'll not only show you the open calls that succeed, but also the failed open calls

# tusc bin/smbd

will show *all* system calls

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Nikolay Aralovets_1
Occasional Advisor

Re: Samba-3.0.10 could not start on HP-UX v. B.11.23 U

I have started smbstatus command. Results:
/usr/lib/hpux32/dld.so: Unsatisfied code symbol '__udivdi3' in load module './bin/smbstatus'.
Killed

Then I have running command
-bash-2.05b# tusc sbin/smbd 2>&1 | grep ^open
It's resaults:

open("/usr/lib/hpux32/dld.so", O_RDONLY, 0) ............................................................................................ = 3
open("sbin/smbd", O_RDONLY, 0) ......................................................................................................... = 3
open("/usr/local/lib/gcc//libgen.so.1", O_RDONLY, 0) ................................................................................... ERR#2 ENOENT
open("/usr/local/lib/hpux32/libgen.so.1", O_RDONLY, 0) ................................................................................. ERR#2 ENOENT
open("/usr/local/lib/libgen.so.1", O_RDONLY, 0) ........................................................................................ ERR#2 ENOENT
open("/usr/lib/hpux32/libgen.so.1", O_RDONLY, 0) ....................................................................................... = 3
open("/usr/lib/hpux32/libgen.so.1", O_RDONLY, 0) ....................................................................................... = 3
open("/usr/local/lib/gcc//libsec.so.1", O_RDONLY, 0) ................................................................................... ERR#2 ENOENT
open("/usr/local/lib/hpux32/libsec.so.1", O_RDONLY, 0) ................................................................................. ERR#2 ENOENT
open("/usr/local/lib/libsec.so.1", O_RDONLY, 0) ........................................................................................ ERR#2 ENOENT
open("/usr/lib/hpux32/libsec.so.1", O_RDONLY, 0) ....................................................................................... = 3
open("/usr/lib/hpux32/libsec.so.1", O_RDONLY, 0) ....................................................................................... = 3
open("/usr/local/lib/gcc//libnsl.so.1", O_RDONLY, 0) ................................................................................... ERR#2 ENOENT
open("/usr/local/lib/hpux32/libnsl.so.1", O_RDONLY, 0) ................................................................................. ERR#2 ENOENT
open("/usr/local/lib/libnsl.so.1", O_RDONLY, 0) ........................................................................................ ERR#2 ENOENT
open("/usr/lib/hpux32/libnsl.so.1", O_RDONLY, 0) ....................................................................................... = 3
open("/usr/lib/hpux32/libnsl.so.1", O_RDONLY, 0) ....................................................................................... = 3
open("/usr/local/lib/gcc//libintl.so", O_RDONLY, 0) .................................................................................... ERR#2 ENOENT
open("/usr/local/lib/hpux32/libintl.so", O_RDONLY, 0) .................................................................................. = 3
open("/usr/local/lib/hpux32/libintl.so", O_RDONLY, 0) .................................................................................. = 3
open("/usr/local/lib/gcc//libiconv.so", O_RDONLY, 0) ................................................................................... ERR#2 ENOENT
open("/usr/local/lib/hpux32/libiconv.so", O_RDONLY, 0) ................................................................................. = 3
open("/usr/local/lib/hpux32/libiconv.so", O_RDONLY, 0) ................................................................................. = 3
open("/usr/local/lib/gcc//libpopt.so", O_RDONLY, 0) .................................................................................... ERR#2 ENOENT
open("/usr/local/lib/hpux32/libpopt.so", O_RDONLY, 0) .................................................................................. = 3
open("/usr/local/lib/hpux32/libpopt.so", O_RDONLY, 0) .................................................................................. = 3
open("/usr/local/lib/gcc//libc.so.1", O_RDONLY, 0) ..................................................................................... ERR#2 ENOENT
open("/usr/local/lib/hpux32/libc.so.1", O_RDONLY, 0) ................................................................................... ERR#2 ENOENT
open("/usr/local/lib/libc.so.1", O_RDONLY, 0) .......................................................................................... ERR#2 ENOENT
open("/usr/lib/hpux32/libc.so.1", O_RDONLY, 0) ......................................................................................... = 3
open("/usr/lib/hpux32/libc.so.1", O_RDONLY, 0) ......................................................................................... = 3
open("/usr/local/lib/gcc//libm.so.1", O_RDONLY, 0) ..................................................................................... ERR#2 ENOENT
open("/usr/lib/hpux32/libm.so.1", O_RDONLY, 0) ......................................................................................... = 3
open("/usr/lib/hpux32/libm.so.1", O_RDONLY, 0) ......................................................................................... = 3
open("/usr/local/lib/gcc//libxti.so.1", O_RDONLY, 0) ................................................................................... ERR#2 ENOENT
open("/usr/lib/hpux32/libxti.so.1", O_RDONLY, 0) ....................................................................................... = 3
open("/usr/lib/hpux32/libxti.so.1", O_RDONLY, 0) ....................................................................................... = 3
open("/usr/local/lib/hpux32/libiconv.so", O_RDONLY, 0) ................................................................................. = 3
open("/usr/local/lib/gcc//libc.so.1", O_RDONLY, 0) ..................................................................................... ERR#2 ENOENT
open("/usr/local/lib/hpux32/libc.so.1", O_RDONLY, 0) ................................................................................... ERR#2 ENOENT
open("/usr/local/lib/libc.so.1", O_RDONLY, 0) .......................................................................................... ERR#2 ENOENT
open("/usr/lib/hpux32/libc.so.1", O_RDONLY, 0) ......................................................................................... = 3
open("/usr/local/lib/gcc//libc.so.1", O_RDONLY, 0) ..................................................................................... ERR#2 ENOENT
open("/usr/local/lib/hpux32/libc.so.1", O_RDONLY, 0) ................................................................................... ERR#2 ENOENT
open("/usr/local/lib/libc.so.1", O_RDONLY, 0) .......................................................................................... ERR#2 ENOENT
open("/usr/lib/hpux32/libc.so.1", O_RDONLY, 0) ......................................................................................... = 3
open("/usr/local/lib/gcc//libc.so.1", O_RDONLY, 0) ..................................................................................... ERR#2 ENOENT
open("/usr/local/lib/hpux32/libc.so.1", O_RDONLY, 0) ................................................................................... ERR#2 ENOENT
open("/usr/local/lib/hpux32/libc.so.1", O_RDONLY, 0) ................................................................................... ERR#2 ENOENT
open("/usr/lib/hpux32/libc.so.1", O_RDONLY, 0) ......................................................................................... = 3
open("/usr/local/lib/gcc//libdl.so.1", O_RDONLY, 0) .................................................................................... ERR#2 ENOENT
open("/usr/lib/hpux32/libdl.so.1", O_RDONLY, 0) ........................................................................................ = 3
open("/usr/lib/hpux32/libdl.so.1", O_RDONLY, 0) ........................................................................................ = 3
open("/opt/graphics/OpenGL/lib/hpux32/libogltls.so", O_RDONLY, 0) ...................................................................... ERR#2 ENOENT
open("/usr/local/samba/lib/upcase.dat", O_RDONLY, 0101) ................................................................................ = 3
open("/usr/local/samba/lib/lowcase.dat", O_RDONLY, 074570) ............................................................................. = 3

I see many error strings, but I don't know that they means.
H.Merijn Brand (procura
Honored Contributor

Re: Samba-3.0.10 could not start on HP-UX v. B.11.23 U

Still:

open("/usr/local/lib/gcc//libpopt.so", O_RDONLY, 0) .................................................................................... ERR#2 ENOENT
open("/usr/local/lib/hpux32/libpopt.so", O_RDONLY, 0) .................................................................................. = 3
open("/usr/local/lib/hpux32/libpopt.so", O_RDONLY, 0) .................................................................................. = 3
open("/usr/local/lib/gcc//libc.so.1", O_RDONLY, 0) ..................................................................................... ERR#2 ENOENT

it opens /usr/local/lib/hpux32/libpopt.so which probably wants /usr/local/lib/gcc//libc.so.1 which cannot be opened.

I'm affraid this package is build in a very unfriendly way using lib/gcc/libc.so.1 which is most likely glibc

My help would end here, since I have no idear where to fetch that from a prebuilt site

It might be a whole lot easier to just rebuild samba from scratch yourself than to track down this resolv thing yourself

OK, now there is one more dirty solution, but that is cheating, and it can take a (very) long time to get where you want to be.

1. You are missing __udivi3
2. You will probably also be missing __umodi3 and others when you have __udivi3
3. Cheat!

get these from libgcc.a

# cd /usr/local/lib/gcc
# ar x /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/libgcc.a _divdi3.o _moddi3.o _udivdi3.o _umoddi3.o
# ld -o libc.so.1 -b _divdi3.o _moddi3.o _udivdi3.o _umoddi3.o

And see if that brings you further. Note that this is just a very dirty way to solve a problem, and it might turn into a nightmare if you do not document the way you solved it for your co-system maintainers

Enjoy, Have FUN! H.Merijn [ points would still be appropriate for *all* posts ]
Enjoy, Have FUN! H.Merijn