NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: library path is missing



Hello Michael,

Thanks for your response !

The complete list is as follows :

# ldd oci8.so
oci8.so:
        -lclntsh.10.1 => /usr/lib/oracle/10.2.0.5/client/lib/libclntsh.so.10.1
        -lnnz10 => not found
        -ldl.2 => not found
        -lm.6 => not found
        -lpthread.0 => not found
        -lnsl.1 => not found
        -lc.6 => not found
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1
        -lc.12 => /usr/lib/libc.so.12
# export LD_LIBRARY_PATH="/emul/linux/lib64:/usr/lib/oracle/10.2.0.5/client/lib"
# ldd oci8.so
oci8.so:
        -lclntsh.10.1 => /usr/lib/oracle/10.2.0.5/client/lib/libclntsh.so.10.1
        -lnnz10 => /usr/lib/oracle/10.2.0.5/client/lib/libnnz10.so
        -lc.6 => /emul/linux/lib64/libc.so.6
        ld-linux-x86-64.so.2 => /emul/linux/lib64/ld-linux-x86-64.so.2
        -ldl.2 => /emul/linux/lib64/libdl.so.2
        -lm.6 => /emul/linux/lib64/libm.so.6
        -lpthread.0 => /emul/linux/lib64/libpthread.so.0
        -lnsl.1 => /emul/linux/lib64/libnsl.so.1
        -lgcc_s.1 => /emul/linux/lib64/libgcc_s.so.1
        -lc.12 => /usr/lib/libc.so.12
# /etc/rc.d/apache restart
[1]   Segmentation fault (core dumped) /sbin/sysctl -n ...
[1]   Segmentation fault (core dumped) /sbin/sysctl -q ...
[1]   Segmentation fault (core dumped) /sbin/sysctl -n ...
[1]   Segmentation fault (core dumped) /sbin/sysctl -q ...
Stopping apache.
Waiting for PIDS: 29225.
[1]   Segmentation fault (core dumped) /sbin/sysctl -n ...
[1]   Segmentation fault (core dumped) /sbin/sysctl -q ...
Starting apache.
[1]   Bad system call (core dumped) /usr/pkg/sbin/ht...
# unset LD_LIBRARY_PATH
# /etc/rc.d/apache start
Starting apache.
#


I installed apache via pkg_add. I think that it is NetBSD apache as
you mentioned above.
I will try to compile another apache manually and install it in /usr/local.
Although it is a waste of time to install apache with php module manually,
I hope that emulated linux apache could solve this problem.


Regards,
Phil

On Thu, Mar 26, 2020 at 4:55 PM Michael van Elst <mlelstv%serpens.de@localhost> wrote:
>
> phil.cyc%gmail.com@localhost (JingYuan Chen) writes:
>
> >I have compiled oci8 success with linux emulation. But I can not restart
> >apache with this module. Apache will crash.
>
> >I used ldd to check libraries it referred to and found that some library's
> >path are missing.
>
> You would need an ldd that understands the Linux emulation. Currently it
> doesn't.
>
>
> >Everything seems correct and great. But Apache can not load this module.
>
> Is that a Linux apache or a NetBSD apache ?
>
> If if is NetBSD, it cannot load modules that are linked against
> emulated libraries.
>
> If it is an emulated Linux apache and doesn't work, there are
> other problems. Maybe apache prints some error messages that
> give a hint.
>
> --
> --
>                                 Michael van Elst
> Internet: mlelstv%serpens.de@localhost
>                                 "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index