pkgsrc/curl problems

Today, I tried to upgrade my installation of the curl-package. Usually, updating a package from pkgsrc is simple just do

1
make clean && make && make install
make clean && make && make install

and that’s it. As soon as one thing fails, the rest won’t be tried, which normaly doesn’t happen. This time, though, it did. During the make-phase, after a successful make clean, configure stopped because of an error. The error looked like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
checking for struct timeval... yes
checking run-time libs availability... failed
configure: error: one or more libs available at link-time are 
  not available run-time. Libs used at link-time:
*** Error code 1
 
Stop.
make: stopped in /usr/pkgsrc/www/curl
*** Error code 1
 
Stop.
make: stopped in /usr/pkgsrc/www/curl
unknown:/usr/pkgsrc/www/curl# _
checking for struct timeval... yes
checking run-time libs availability... failed
configure: error: one or more libs available at link-time are 
  not available run-time. Libs used at link-time:
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/curl
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/curl
unknown:/usr/pkgsrc/www/curl# _

As it turned out, another package was causing this error, namely gssapi. The curl-package is using the options-framework, and has two default-options, as the following shows:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
 unknown:/usr/pkgsrc/www/curl# make show-options
Any of the following general options may be selected:
        gssapi
        inet6    Enable support for IPv6.
        libssh2 
 
These options are enabled by default:
        gssapi
 
These options are currently enabled:
        gssapi inet6
 
You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or PKG_OPTIONS.curl.
 unknown:/usr/pkgsrc/www/curl# make show-options
Any of the following general options may be selected:
        gssapi
        inet6    Enable support for IPv6.
        libssh2 

These options are enabled by default:
        gssapi

These options are currently enabled:
        gssapi inet6

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or PKG_OPTIONS.curl.

If you set the PKG_OPTIONS.curl-variable in your mk.conf-file, and add a -gssapi to it, you can easily disable the usage of gssapi and thus install curl again. Drawback of this method is, of course, the missing gssapi-functionality in curl.

Example for PKG_OPTIONS.curl:

1
PKG_OPTIONS.curl= inet6 libssh2 -gssapi
PKG_OPTIONS.curl= inet6 libssh2 -gssapi

Conclusion:

If you need curl, but not its gssapi-support, turn off gssapi by setting the PKG_OPTIONS.curl-variable appropriately. If you need curl with its gssapi-support, keep your current curl-version. Obviously, something broke in gssapi, which is causing this error now. As far as I could see, gssapi does not provide a libkrb5, which seems to be the problem. Hopefully, this will be fixed soon.

Comments (1)

  1. 12:34 am, March 19, 2008Robert W.  / Reply

    confirmed for netbsd 3.1/i386.

    Corresponding pr-number is 38237.

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code lang=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" extra="">

Pingbacks (0)

› No pingbacks yet.