Project

General

Profile

Actions

Bug #5376

closed

OpenBSD pthread_np.h present but cannot be compiled

Added by kernigh (George Koehler) over 12 years ago. Updated over 12 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.4dev (2011-09-28 trunk 33351) [x86_64-openbsd4.9]
Backport:
[ruby-core:39752]

Description

I run OpenBSD and use autoconf-2.64 to create the configure script. OpenBSD has pthread_np.h, but configure rejects it.

From config.log:
configure:16017: WARNING: pthread_np.h: present but cannot be compiled
configure:16017: WARNING: pthread_np.h: check for missing prerequisite headers?
configure:16017: WARNING: pthread_np.h: see the Autoconf documentation
configure:16017: WARNING: pthread_np.h: section "Present But Cannot Be Compiled"
configure:16017: WARNING: pthread_np.h: proceeding with the compiler's result

I called the script as ../configure --prefix=/home/kernigh/prefix --with-baseruby=/usr/local/bin/ruby19 CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib

With OpenBSD, <pthread_np.h> requires to #include <pthread.h> first. Ruby already does so, but the configure check never does so. The fix is to change the configure check to #include <pthread.h> before #include <pthread_np.h>. Use attached patch.


Files

p-pthread-np-configure-check.diff (407 Bytes) p-pthread-np-configure-check.diff fix configure check for pthread_np.h kernigh (George Koehler), 09/28/2011 06:44 AM
Actions #1

Updated by nobu (Nobuyoshi Nakada) over 12 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r33352.
George, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • configure.in (pthread_np.h): needs pthread.h to be included
    previously on OpenBSD. a patch by George Koehler at [ruby-core:39752]. [Bug #5376]
Actions

Also available in: Atom PDF

Like0
Like0