|
2006-03-17
| ||
| 17:23 | • Closed ticket [1444692fff]: HEAD fails to compile on FreeBSD 4.x plus 8 othe... artifact: 7f073dfc66 user: mistachkin | |
|
2006-03-10
| ||
| 06:05 | • Ticket [1444692fff]: 2 changes artifact: 4a9abedb34 user: dgp | |
|
2006-03-08
| ||
| 03:31 | • Ticket [1444692fff]: 1 change artifact: e4328507b3 user: dgp | |
|
2006-03-07
| ||
| 16:36 | • Ticket [1444692fff]: 4 changes artifact: fc1b4d95bc user: mistachkin | |
| 09:11 | • New ticket [1444692fff]. artifact: 4c274ca9a6 user: mistachkin | |
HEAD fails to compile on FreeBSD 4.x
Closed / Fixed1444692fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2006-03-07 09:11:45
Here is the reported compile error:
gcc -pipe -c -g -pthread -Wall -Wno-implicit-int -fPIC
-I. -I/home/foo/tcl/tcl8.5/tcl/unix/../unix
-I/home/foo/tcl/tcl8.5/tcl/unix/../generic
-DTCL_TOMMATH -DMP_PREC=4
-I/home/foo/tcl/tcl8.5/tcl/unix/../libtommath
-DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\"
-DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tcl\ 8.5\"
-DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1
-DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1
-D_REENTRANT=1 -D_THREAD_SAFE=1
-DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1
-DHAVE_PTHREAD_ATTR_GET_NP=1 -DATTRGETNP_NOT_DECLARED=1
-DTCL_THREADS=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\"
-DTCL_SHLIB_EXT=\".so\" -DTCL_CFG_DEBUG=1
-DTCL_MEM_DEBUG=1 -DTCL_COMPILE_DEBUG=1
-DTCL_COMPILE_STATS=1 -DTCL_WIDE_INT_TYPE=long\ long
-DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1
-DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1
-DHAVE_WAITPID=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1
-DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1
-DHAVE_MKTIME=1 -DHAVE_TM_GMTOFF=1
-DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1
-DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1
-DHAVE_LANGINFO=1 -DHAVE_CHFLAGS=1 -DHAVE_FTS=1
-DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1
-DTCL_UNLOAD_DLLS=1
/home/foo/tcl/tcl8.5/tcl/unix/../generic/regcomp.c
In file included from tclUnixPort.h:583,
from
/home/foo/tcl/tcl8.5/tcl/unix/../generic/tclPort.h:27,
from
/home/foo/tcl/tcl8.5/tcl/unix/../generic/tclInt.h:3029,
from
/home/foo/tcl/tcl8.5/tcl/unix/../generic/regcustom.h:30,
from
/home/foo/tcl/tcl8.5/tcl/unix/../generic/regguts.h:36,
from
/home/foo/tcl/tcl8.5/tcl/unix/../generic/regcomp.c:33:
/usr/include/pthread_np.h:40: warning: parameter names
(without types) in function declaration
/usr/include/pthread_np.h:46: syntax error before `*'
/usr/include/pthread_np.h:47: syntax error before `*'
/usr/include/pthread_np.h:50: warning: parameter names
(without types) in function declaration
/usr/include/pthread_np.h:51: syntax error before `*'
/usr/include/pthread_np.h:53: warning: parameter names
(without types) in function declaration
/usr/include/pthread_np.h:54: syntax error before `const'
/usr/include/pthread_np.h:57: warning: parameter names
(without types) in function declaration
*** Error code 1
mistachkinplain2006-03-07 16:36:09
Logged In: YES user_id=113501 The fix for this appears to be simply adding an "#include <pthread.h>" line prior to the "#include <pthread_np.h>" line in "tclUnixPort.h" near line 576, as follows: # ifdef HAVE_PTHREAD_ATTR_GET_NP # define TclpPthreadGetAttrs pthread_attr_get_np # ifdef ATTRGETNP_NOT_DECLARED /* * Assume it is in pthread_np.h if it isn't in pthread.h. [Bug 1064882] * We might need to revisit this in the future. :^( */ # include <pthread.h> # include <pthread_np.h> # endif
dgp Ticket [1444692fff]: 1 change
[History diff]2006-03-08 03:31:19
dgp Ticket [1444692fff]: 2 changes
[History diff]2006-03-10 06:05:53
mistachkinplain2006-03-17 17:23:13
Logged In: YES user_id=113501 Fix checked into HEAD.
Log in (anonymous is fine) to add a comment.