<i>tcl & tk's configure fails to correctly detect pthread_mutex</i>.
by
.
D 2000-10-26T00:46:52
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4360\sBug\nVersion:\s8.3\nSubmitDate:\s'2000-03-10'\nLastModified:\s'2000-03-10'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\sericm\nRelatedBugIDs:\s4359\nOS:\sDigital\sUnix\nOSVersion:\sTru64\sUnix\s4.0f\swith\scurrent\spatches\nMachine:\salpha\sev56-based\sworkstation\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-03-10'\n\n\nName:\nTim\sMooney\n\nReproducibleScript:\nTcl\sand\sTk\shave\sautoconf\stests\sthat\sdon't\scorrectly\sdetect\show\sto\sget\sfull\sPOSIX\sthread\ssupport\son\nDigital/Tru64\sUnix.\s\sThe\sproblem\sis\sthat\smany\sof\sthe\sfunctions\sin\slibpthread.so\sare\snamed\swith\sa\s__\nprepended\sto\sthe\sfunction\sname.\s\sIf\syou\sinclude\s`pthread.h',\syou\sget\sdefines\sthat\smap\sthe\nexpected\snames\sto\sthe\sactual\ssymbols\sin\sthe\slibrary.\s\sIf\syou\sdon't\sinclude\spthread.h,\syou\sdon't\shave\nthose\sand\sthe\sAC_CHECK_LIB(pthread,pthread_mutex_init,...)\stherefore\sdoesn't\sdetect\sthat\syou\nonly\sneed\sthat\slibrary.\s\sIt\sthen\schecks\sfor\spthread_mutex_init\sin\sthe\solder\s`libpthreads.so',\swhich\shas\na\sDECthreads/early\sPOSIX\sinterface.\s\sIt\sdoes\sfind\sit\sin\sthere,\s\sand\s`-lpthreads'\sis\sthen\s(incorrectly)\nadded\sto\sthe\slist\sof\slibraries.\s\sMeanwhile,\s`-pthread'\sis\sadded\sto\sCFLAGS\sand\sLDFLAGS,\sso\s`-lpthread'\sis\sautomatically\slinked\sin.\s\sThis\smeans\sthat\swe're\slinking\swith\sboth\sthe\snewer\s`pthread'\slibrary\sand\sthe\nearlier\s`pthreads'\slibrary,\swhich\smay\scause\sproblems.\n\nThe\srelevant\soutput\sfrom\sconfigure\sfor\stcl:\n\nchecking\sfor\sbuilding\swith\sthreads...\syes\nchecking\sfor\spthread_mutex_init\sin\s-lpthread...\sno\nchecking\sfor\spthread_mutex_init\sin\s-lpthreads...\syes\n\nDesiredBehavior:\nTcl\s&\sTk's\sthread\stests\sneed\sto\suse\sAC_TRY_COMPILE\sto\sfind\spthread_mutex_init,\ssince\sAC_TRY_COMPILE\sallows\syou\sto\sspecify\snecessary\sincludes.\s\sThis\sonly\sneeds\sto\sbe\sattempted\nif\swe\sdidn't\sfind\spthread_mutex_init\sin\s-lpthread\swith\sthe\sAC_CHECK_LIB.\n\nI'm\sincluded\sa\spatch\sthat\sfixes\sthis\sfor\sTcl\s&\sTk.\n\nPatch:\nThe\spatches\sare\sat:\n\nftp://dogbert.cc.ndsu.nodak.edu/pub/tcl-8.3.0-pthread-configure.patch\nftp://dogbert.cc.ndsu.nodak.edu/pub/tk-8.3.0-pthread-configure.patch\n\nPatchFiles:\ntcl8.3.0/unix/tcl.m4\n\s\s\s\stk8.3.0/unix/aclocal.m4\n\n\n\n
J foundin obsolete:\s8.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title tcl\s&\stk's\sconfigure\sfails\sto\scorrectly\sdetect\spthread_mutex
J type Bug
K 217963ffffffffffffffffffffffffffffffffff
U nobody
Z 3982d0f3615c4e388b13461f940266aa