LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-29-2012, 11:26 PM   #1
FreakyPoint
LQ Newbie
 
Registered: Apr 2010
Posts: 13

Rep: Reputation: 0
pthread not found when compiling vbox for Slackware


I downloaded VirtualBox from slackbuilds.org and when I executed the slackbuild, I got this error
Code:
Checking for mkisofs: found mkisofs 3.01a02 (i686-pc-linux-gnu) Copyright (C) 1993-1997 Eric Youngdale (C) 1997-2010 Joerg Schilling, OK.
Checking for pthread: 
  pthread not found at -lpthread or pthread headers not found
  Check the file /tmp/SBo/VirtualBox-4.1.8_OSE/configure.log for detailed error information.
Check /tmp/SBo/VirtualBox-4.1.8_OSE/configure.log for details
This is my /tmp/SBo/VirtualBox-4.1.8_OSE/configure.log
Code:
bash-4.1# cat /tmp/SBo/VirtualBox-4.1.8_OSE/configure.log
# Log file generated by
#
#   './configure --ose --disable-kmods --disable-pulse --enable-vde --enable-vnc --enable-hardening'
#

***** Checking environment *****
Determined build machine: linux.x86, target machine: linux.x86


***** Checking kBuild *****
found


***** Checking gcc *****
found version 4.5.2


***** Checking as86 *****
found version 0.16.17


***** Checking bcc *****
compiling the following source file:
int foo(a)
  int a;
{
  return 0;
}
using the following command line:
bcc -B /usr/bin/ -C-c -3 -S -o /tmp/SBo/VirtualBox-4.1.8_OSE/.tmp_out /tmp/SBo/VirtualBox-4.1.8_OSE/.tmp_src.c
found version 0.16.17


***** Checking iasl *****
found version 20110527


***** Checking xslt *****
found


***** Checking mkisofs *****
found mkisofs 3.01a02 (i686-pc-linux-gnu) Copyright (C) 1993-1997 Eric Youngdale (C) 1997-2010 Joerg Schilling


***** Checking pthread *****
compiling the following source file:
#include <cstdio>
#include <pthread.h>
extern "C" int main(void)
{
  pthread_mutex_t mutex;
  if (pthread_mutex_init(&mutex, NULL)) {
    printf("pthread_mutex_init() failed\n");
    return 1;
  }
  if (pthread_mutex_lock(&mutex)) {
    printf("pthread_mutex_lock() failed\n");
    return 1;
  }
  if (pthread_mutex_unlock(&mutex)) {
    printf("pthread_mutex_unlock() failed\n");
    return 1;
  }
  printf("found, OK.\n");
}
using the following command line:
g++  -g -O -Wall -o /tmp/SBo/VirtualBox-4.1.8_OSE/.tmp_out /tmp/SBo/VirtualBox-4.1.8_OSE/.tmp_src.cc "-lpthread"
In file included from /usr/lib/gcc/i486-slackware-linux/4.5.2/../../../../include/c++/4.5.2/i486-slackware-linux/bits/c++config.h:275:0,
                 from /usr/lib/gcc/i486-slackware-linux/4.5.2/../../../../include/c++/4.5.2/cstdio:43,
                 from /tmp/SBo/VirtualBox-4.1.8_OSE/.tmp_src.cc:1:
/usr/lib/gcc/i486-slackware-linux/4.5.2/../../../../include/c++/4.5.2/i486-slackware-linux/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory
compilation terminated.
Anyone could help, please? Thanks.
 
Old 03-30-2012, 03:51 AM   #2
FreakyPoint
LQ Newbie
 
Registered: Apr 2010
Posts: 13

Original Poster
Rep: Reputation: 0
it works with .bin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File pk11func.h not found while compiling eCryptfs on Slackware 13.1 emirhg Linux - Newbie 1 04-26-2011 05:23 PM
[SOLVED] vbox 4.0.2 - guest sabayon5.4 on win7 - mnt local gentoo from vbox sabayon? shinystuffrox Linux - Virtualization and Cloud 1 03-04-2011 01:10 AM
VBox in Slackware 13.1 gregkedro Linux - Virtualization and Cloud 5 08-05-2010 08:26 AM
Slackware 12.2 Hangs in VBox VM AstroTux Slackware 3 01-01-2010 11:35 PM
Error compiling with pthread Siriuss Programming 1 10-23-2004 08:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration