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

Re: krb5-config --libs gssapi prints out "-pthread" - why makesthis my build fail?



Hi,

On Mon, 27 Nov 2006, Achim Grolms wrote:

> Hello,
>
> I am trying to build GSSAPI-using sofware (mod_auth_kerb in that case)
> against an installation of Heimdal 0.7.2
>
> The output of
>
>   krb5-config --libs gssapi
>
> is
>
>   -L/home/achim/local/heimdal_0.7.2/lib -lgssapi -lkrb5 -lasn1 -lcom_err
>   -lcrypto -lroken -lcrypt -ldl -lresolv -pthread
>
> I do not understand what the '-pthread' is thought for:
> The Buildsystem of mod_auth_kerb passes
>
>   "-L/home/achim/local/heimdal_0.7.2/lib -lgssapi -lkrb5 -lasn1 -lcom_err
>   -lcrypto -lroken -lcrypt -ldl -lresolv -pthread"
>
> to the linker, but during linking (Linux x86)) ld fails with
>
>   /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../../i686-pc-linux-gnu/bin/ld:
>   unrecognized option '-pthreads'

I think, you should replace "-pthread" by "-lpthread". Don't ask me how 
this came into your krb5-config.

Cheers,
Andreas

-- 
| Andreas Haupt                   | E-Mail: andreas.haupt@desy.de
|  DESY Zeuthen                   | WWW:    http://www-zeuthen.desy.de/~ahaupt
|  Platanenallee 6                | Phone:  +49/33762/7-7359
|  D-15738 Zeuthen                | Fax:    +49/33762/7-7216