/usr/lib/private and static linking?
I have a machine running -current from December (r276480), and trying to link with cc -static [...] $(krb5-config --libs) yields a linker error: /usr/lib/libkrb5.a(kcm.o): In function `krb5_kcm_call': /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/kcm/kcm.c:(.text+0x10e): undefined reference to `heim_ipc_init_context' /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/kcm/kcm.c:(.text+0x162): undefined reference to `heim_ipc_call' Should I update my system? Is static linking against libraries which consume libraries in /usr/lib/private no longer supported? Thanks, Ben ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: /usr/lib/private and static linking?
On Thu, Feb 12, 2015 at 12:01:41PM -0500, Benjamin Kaduk wrote: I have a machine running -current from December (r276480), and trying to link with cc -static [...] $(krb5-config --libs) yields a linker error: /usr/lib/libkrb5.a(kcm.o): In function `krb5_kcm_call': /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/kcm/kcm.c:(.text+0x10e): undefined reference to `heim_ipc_init_context' /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/kcm/kcm.c:(.text+0x162): undefined reference to `heim_ipc_call' Should I update my system? Is static linking against libraries which consume libraries in /usr/lib/private no longer supported? Thanks, In the last modification of the private libraries we removed everything which is development related, maybe the .a files should be kept to allow linking to a public library which consumes a private one. Best regards, Bapt pgp_q1CJ4DARP.pgp Description: PGP signature
Re: /usr/lib/private and static linking?
On Thu, 12 Feb 2015, Baptiste Daroussin wrote: On Thu, Feb 12, 2015 at 12:01:41PM -0500, Benjamin Kaduk wrote: I have a machine running -current from December (r276480), and trying to link with cc -static [...] $(krb5-config --libs) yields a linker error: /usr/lib/libkrb5.a(kcm.o): In function `krb5_kcm_call': /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/kcm/kcm.c:(.text+0x10e): undefined reference to `heim_ipc_init_context' /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/kcm/kcm.c:(.text+0x162): undefined reference to `heim_ipc_call' Should I update my system? Is static linking against libraries which consume libraries in /usr/lib/private no longer supported? Thanks, In the last modification of the private libraries we removed everything which is development related, maybe the .a files should be kept to allow linking to a public library which consumes a private one. Will you be able to look at doing so, or should I try to get up to speed and do it myself? -Ben ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: /usr/lib/private and static linking?
On Thu, Feb 12, 2015 at 12:37:30PM -0500, Benjamin Kaduk wrote: On Thu, 12 Feb 2015, Baptiste Daroussin wrote: On Thu, Feb 12, 2015 at 12:01:41PM -0500, Benjamin Kaduk wrote: I have a machine running -current from December (r276480), and trying to link with cc -static [...] $(krb5-config --libs) yields a linker error: /usr/lib/libkrb5.a(kcm.o): In function `krb5_kcm_call': /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/kcm/kcm.c:(.text+0x10e): undefined reference to `heim_ipc_init_context' /usr/src/kerberos5/lib/libkrb5/../../../crypto/heimdal/lib/krb5/kcm/kcm.c:(.text+0x162): undefined reference to `heim_ipc_call' Should I update my system? Is static linking against libraries which consume libraries in /usr/lib/private no longer supported? Thanks, In the last modification of the private libraries we removed everything which is development related, maybe the .a files should be kept to allow linking to a public library which consumes a private one. Will you be able to look at doing so, or should I try to get up to speed and do it myself? I am really deeply stuck into the projects/release-pkg so I would prefer limiting distraction for now. That is basically one check for !defined(PRIVATELIB) in bsd.lib.mk to remove Best regards, Bapt pgpzSd0kAFqMu.pgp Description: PGP signature