Re: openldap: gdb: symbol lookup error: /lib64/libldap.so.2: undefined symbol: EVP_md2, version OPENSSL_3.0.0

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

 



Dear Jun,

No, it's not a Fedora-specific issue. You try to provide a replacement
to a system library, and this change may affect all the binaries built
with the system area.
You shouldn't replace or shadow the system library with your own one,
otherwise you get PROBLEMS.

On Tue, Mar 28, 2023 at 3:06 PM Jun Aruga (he / him) <jaruga@xxxxxxxxxx> wrote:
>
> Dear Dmitry,
>
> Thanks! The workaround worked!
>
> Is this issue Fedora specific?
> Can we fix the case:
> `LD_LIBRARY_PATH=/home/jaruga/.local/openssl-3.0.8/lib/ gdb` to work
> by modifying the gdb or openldap patches?
> Which is better to fix the gdb or openldap?
>
> Jun
>
> On Mon, Mar 27, 2023 at 5:45 PM Dmitry Belyavskiy <dbelyavs@xxxxxxxxxx> wrote:
> >
> > Dear Jan,
> >
> > Yes. gdb expects system openssl (providing this function)
> >
> > To workaround it, you have to provide the LD_SET_LIBRARY inside gdb, via
> > (gdb) set environment LD_LIBRARY_PATH /home/jaruga/.local/openssl-3.0.8/lib/
> >
> > On Mon, Mar 27, 2023 at 5:39 PM Jun Aruga (he / him) <jaruga@xxxxxxxxxx> wrote:
> > >
> > > Hi,
> > >
> > > I opened this issue's ticket for openldap on Bugzilla.
> > > https://bugzilla.redhat.com/show_bug.cgi?id=2181668
> > >
> > > But let me ask on the devel@ mailing list too, as I want to debug a
> > > program with gdb and the source-compiled openssl soon.
> > > I am using Fedora 37. I built the openssl 3.0.8 from the source
> > > downloading the source from https://www.openssl.org/source/ .
> > >
> > > ```
> > > $ ./Configure --prefix=$HOME/.local/openssl-3.0.8 --libdir=lib shared
> > > linux-x86_64
> > > $ make -j4
> > > $ make install
> > > ```
> > >
> > > Then the gdb fails with the error below. Do you know why this error
> > > happens? And is there a workaround to avoid this error?
> > >
> > > ```
> > > $ rpm -qf /lib64/libldap.so.2
> > > openldap-2.6.4-1.fc37.x86_64
> > >
> > > $ rpm -q gdb
> > > gdb-13.1-1.fc37.x86_64
> > >
> > > $ ldd /bin/gdb | grep ldap
> > > libldap.so.2 => /lib64/libldap.so.2 (0x00007f147899a000)
> > >
> > > $ LD_LIBRARY_PATH=/home/jaruga/.local/openssl-3.0.8/lib/ gdb
> > > gdb: symbol lookup error: /lib64/libldap.so.2: undefined symbol:
> > > EVP_md2, version OPENSSL_3.0.0
> > >
> > > $ echo $?
> > > 127
> > > ```
> > >
> > > Thanks!
> > >
> > > --
> > > Jun | He - Him | Timezone: UTC+1 or 2, Czech Republic
> > > See <https://www.worldtimebuddy.com/czech-republic-prague-to-utc> for
> > > the timezone.
> > > _______________________________________________
> > > devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> > > To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> > > Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> > > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> > > List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
> > > Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
> >
> >
> >
> > --
> > Dmitry Belyavskiy
> > _______________________________________________
> > devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> > To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> > Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> > List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
> > Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
>
>
>
> --
> Jun | He - Him | Timezone: UTC+1 or 2, Czech Republic
> See <https://www.worldtimebuddy.com/czech-republic-prague-to-utc> for
> the timezone.
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
> Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



-- 
Dmitry Belyavskiy
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux