﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc
42	Can't compile, pthread error during configure	dickk		"Hi, I'm getting this pthread error when I try to compile, Hopefully you can figure out what my problem is from the info following below.


[E:\5.0.6Netlabs]ash
sh: can't access tty; job control turned off
# export WATCOM=E:/WATCOM
# export PATH_SDK_LIBSDL=E:/Tools/os2.x86/libsdl/SDL
#
# ./configure --with-ow-dir=$WATCOM --enable-vnc --disable-docs
Checking for environment: Determined build machine: os2.x86, target machine: os2
.x86, OK.
Checking for kBuild: found, OK.
grep: Invalid back reference
Checking for gcc: found version 4.9.2, OK.
Checking for Open Watcom: found version 1.9, OK.
Checking for iasl: found version 20131115, OK.
Checking for xslt: found, OK.
Checking for mkisofs: found mkisofs 2.01.01a59 (i386-pc-os2_emx) Copyright (C) 1
993-1997 Eric Youngdale (C) 1997-2009 J÷rg Schilling, OK.
Checking for pthread:
  pthread not found at -lpthread or pthread headers not found
  Check the file E:/5.0.6Netlabs/configure.log for detailed error information.
Check E:/5.0.6Netlabs/configure.log for details
#

And here's the Configure Log

# Log file generated by
#
#   './configure --with-ow-dir=E:/WATCOM --enable-vnc --disable-docs'
#

***** Checking environment *****
Determined build machine: os2.x86, target machine: os2.x86


***** Checking kBuild *****
found


***** Checking gcc *****
found version 4.9.2


***** Checking Open Watcom *****
found version 1.9


***** Checking iasl *****
found version 20131115


***** Checking xslt *****
found


***** Checking mkisofs *****
found mkisofs 2.01.01a59 (i386-pc-os2_emx) Copyright (C) 1993-1997 Eric Youngdale (C) 1997-2009 J÷rg 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++ -Zomf -g -O -Wall -o E:/5.0.6Netlabs/.tmp_out E:/5.0.6Netlabs/.tmp_src.cc ""-lpthread""
ilink.exe: No such file or directory

Something is screwed up, I don't think ./configure needs ilink.exe!
Have I left something out? I preformed the entire Development Setup as specified using YUM (pthread & pthread.devel included). 

Here's the portion of configure that looks like possibly is causing the problem?

YASM=""yasm""
IASL=""iasl""
XSLTPROC=""xsltproc""
GENISOIMAGE=""genisoimage""
MKISOFS=""mkisofs""
INCCRYPTO=""""
LIBCRYPTO=""-lssl -lcrypto""
LIBPTHREAD=""-lpthread""
LIBCAP=""-lcap""
GSOAP=""""


Also, I don't understand the “grep: invalid back reference “ statement in the Start-up script, could this be causing my problem?

Thanks for any ideas  dickk"	task	closed	Feedback pending	preview	Common Tasks	worksforme		
