NetBSD-Bugs archive

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

Re: lib/46661: libpthread shouldn't provide __res_state()



Matthew Mondor:
>  Does the build system link it implicitely to libpthread because it makes
>  use of dlfcn(3) to load modules?
  
In this case it's because it links against libpq:

yvaine# ldd /usr/pkg/lib/libpq.so
/usr/pkg/lib/libpq.so:
        ...
        -lpthread.0 => /usr/lib/libpthread.so.0

yvaine# ldd /usr/pkg/libexec/postfix/smtp   
/usr/pkg/libexec/postfix/smtp:
        ...
        -lpq.5 => /usr/pkg/lib/libpq.so.5
        -lpthread.0 => /usr/lib/libpthread.so.0

>  I think I remember about some such issue with some software (i.e.
>  Apache 1.3 + PHP + PHP-GD, but on netbsd-5).  GD somehow wasn't working
>  well if linked against libpthread (I forgot why) but pkgsrc implicitely
>  linked everything that used the module system against libpthread.

In the MySQL case (libmysqlclient) libpthread is really required because 
the MySQL client is thread safe and uses pthread primitives for that.  I 
don't know if that's the case in PostgreSQL as well off hand.

        - river.


Home | Main Index | Thread Index | Old Index