[ 
https://issues.apache.org/jira/browse/LUCY-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048386#comment-13048386
 ] 

Marvin Humphrey commented on LUCY-157:
--------------------------------------

CPAN Testers failure for OpenBSD 4.9 and Perl 5.10.0:

http://www.cpantesters.org/cpan/report/5e21bf78-943b-11e0-92a5-c348c9b7ec30

Lucy only makes use of pthreads when no atomics library is available.  It's
the last fallback: if pthreads.h isn't there, Lucy will fail to build.

In this case, Lucy built -- so pthread.h is there -- but lazy binding failed
for the symbols pthread_mutex_lock and pthread_mutex_unlock.  This seems to
have happened because OpenBSD has userland pthreads, requiring the addition of
the `-pthread` flag at link time.

Lucy built and passed it's tests on other OpenBSD 4.9 boxen, but the Perls in
question have "-pthread" in the "ldflags", which gets passed along to the
linker via ExtUtils::CBuilder.

http://www.cpantesters.org/cpan/report/f99b520a-9244-11e0-92a5-c348c9b7ec30

{noformat}
  Linker and Libraries:
    ld='cc', ldflags ='-pthread -Wl,-E  -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
{noformat}
    


> Add -pthread linker flag on OpenBSD
> -----------------------------------
>
>                 Key: LUCY-157
>                 URL: https://issues.apache.org/jira/browse/LUCY-157
>             Project: Lucy
>          Issue Type: Bug
>    Affects Versions: 0.1.0 (incubating)
>            Reporter: Marvin Humphrey
>            Priority: Minor
>             Fix For: 0.1.1 (incubating)
>
>
> OpenBSD has userland pthreads, requiring the addition of the
> "-pthread" linker flag so that lazy binding does not fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to