build error on NetbSD 6

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

build error on NetbSD 6

Greg Troxel

I'm trying to update pkgsrc to 0.13.0, and got the following error:

  checking for dlopen in -ldl... no
  configure: error: libdl required
  *** Error code 1

  Stop.
  make: stopped in /u0/n0/gdt/NetBSD-current/pkgsrc/security/opensc
  *** Error code 1

  Stop.
  make: stopped in /usr/pkgsrc/security/opensc

I have never seen a "libdl" on *BSD.  There is libtool's variant, which
was already visible to the build (same as in the 0.12.2 package);

-rw-r--r--  1 root  wheel  40204 Feb 20 18:41 /usr/pkg/lib/libltdl.a
-rwxr-xr-x  1 root  wheel    964 Feb 20 18:41 /usr/pkg/lib/libltdl.la
lrwxr-xr-x  1 root  wheel     16 Feb 20 18:41 /usr/pkg/lib/libltdl.so -> libltdl.so.7.2.1
lrwxr-xr-x  1 root  wheel     16 Feb 20 18:41 /usr/pkg/lib/libltdl.so.7 -> libltdl.so.7.2.1
-rwxr-xr-x  1 root  wheel  36129 Feb 20 18:41 /usr/pkg/lib/libltdl.so.7.2.1

and dlopen is provided in dynamically linked programs, but not in a
library named libdl.

Has 0.13.0 been confirmed to build on other than Linux?


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Opensc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opensc-devel

attachment0 (200 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: build error on NetbSD 6

Martin Paljak-4
Hello,

On Sat, Mar 16, 2013 at 7:18 PM, Greg Troxel <[hidden email]> wrote:
> Has 0.13.0 been confirmed to build on other than Linux?

Hmm, weird timing, given that I just did it yesterday on OpenBSD.

Use git HEAD and/or have a look at [1]

Martin


[1] https://github.com/OpenSC/OpenSC/commit/11ff81367af9bc9dce2cbcb550cc463552a3b69e

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Opensc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: build error on NetbSD 6

Fredrik Pettai
In reply to this post by Greg Troxel
Hi Greg,

On Mar 16, 2013, at 18:18 , Greg Troxel <[hidden email]> wrote:

> I'm trying to update pkgsrc to 0.13.0, and got the following error:
>
>  checking for dlopen in -ldl... no
>  configure: error: libdl required
>  *** Error code 1
>
>  Stop.
>  make: stopped in /u0/n0/gdt/NetBSD-current/pkgsrc/security/opensc
>  *** Error code 1
>
>  Stop.
>  make: stopped in /usr/pkgsrc/security/opensc
>
> I have never seen a "libdl" on *BSD.  There is libtool's variant, which
> was already visible to the build (same as in the 0.12.2 package);
There is a solution for that in NetBSD/pkgsrc (see "./mk/dlopen.buildlink3.mk")

The other problem we have then compiling on NetBSD is that OpenSC wouldn't compile without threads.
(I didn't manage to find a good solution for that, at least…)

Re,
/P



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Opensc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opensc-devel

signature.asc (242 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: build error on NetbSD 6

Greg Troxel

Fredrik Pettai <[hidden email]> writes:

> On Mar 16, 2013, at 18:18 , Greg Troxel <[hidden email]> wrote:
>> I have never seen a "libdl" on *BSD.  There is libtool's variant, which
>> was already visible to the build (same as in the 0.12.2 package);
>
> There is a solution for that in NetBSD/pkgsrc (see "./mk/dlopen.buildlink3.mk

Thanks.  That didn't work (with the 0.13.0 release), because I think
it's incorrectly hard-coded to look in libdl.  Luckily Martin fixed it
in git, but that's not in a release yet.

> The other problem we have then compiling on NetBSD is that OpenSC
> wouldn't compile without threads.
> (I didn't manage to find a good solution for that, at least…)

Are threads a new requirement in 0.13 vs 0.12?

(For others: NetBSD doens't allow dlopening threaded libraries into
non-threaded programs. So things that are in pam modules have to be
non-threaded.  This restriction may be eased; it's hard to avoid the
restriction and not make all programs pay the mutex/etc. costs of being
threaded.)

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Opensc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opensc-devel

attachment0 (200 bytes) Download Attachment