From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,896af50aa58690bb X-Google-Attributes: gidfee84,public X-Google-Thread: fa0ae,896af50aa58690bb X-Google-Attributes: gidfa0ae,public From: Charles M Richmond Subject: Re: Problems building threaded perl 5.005 on OSF 4.0d Date: 1998/09/02 Message-ID: <35ED03C9.D2734389@iisc.com>#1/1 X-Deja-AN: 387065463 Content-Transfer-Encoding: 7bit References: <35EC9697.80A30007@uni-lj.si> Content-Type: text/plain; charset=iso-2022-jp X-Complaints-To: abuse@shore.net X-Trace: news.shore.net 904725450 198.5.5.5 (Wed, 02 Sep 1998 04:37:30 EDT) Organization: Integrated International Systems Corporation MIME-Version: 1.0 NNTP-Posting-Date: Wed, 02 Sep 1998 04:37:30 EDT Newsgroups: comp.unix.osf.osf1,comp.lang.perl.misc It looks like the use of Perl_to_utf8_title is occuring before the compiler sees a declaration. If that is the case, then explicitly add in a declaration line at the top of the file that is getting the error. The same goes for Perl_to_utf8_lower. An example of what I mean is: extern void tryit(); extern void tryit2(); main() { tryit(1); } void tryit(int jn) { int jnn = jn; tryit2(jnn); } void tryit2(int kn) { printf("kn = %d\n",kn); if(kn < 5) tryit(++kn); } Without the 'extern's the following type of error would be generated: cc: Error: jn.c, line 8: In this declaration, the type of "tryit" is not compatible with the type of a previous declaration of "tryit" at line number 5 in file jn.c. void tryit(int jn) -----^ Jure Simsic wrote: > > Has anybody gotten this to work. I tried perl 5.005 and 5.005_51 but > failed. I tried with just ./Configure --Dusethreads -des and with > adittional -pthread to ccflags, -pthread to ldflags, -lpthread -lc_r to > lddlflags and native malloc as described in README.threads but make > always breaks at utf8.c. Transcript: > > CCCMD = cc -DPERL_CORE -c -pthread -std -fprm d -ieee > -D_INTRINSICS - > I/usr/local/include -D__LANGUAGE_C__ -O4 > `sh cflags libperl.a utf8.o` utf8.c > CCCMD = cc -DPERL_CORE -c -pthread -std -fprm d -ieee > -D_INTRINSICS - > I/usr/local/include -D__LANGUAGE_C__ -O4 > cc: Error: utf8.c, line 483: In this declaration, the type of > "Perl_to_utf8_uppe > r" is not compatible with the type of a previous declaration of > "Perl_to_utf8_up > per" at line number 644 in file proto.h. > to_utf8_upper(U8 *p) > ^ > cc: Error: utf8.c, line 494: In this declaration, the type of > "Perl_to_utf8_titl > e" is not compatible with the type of a previous declaration of > "Perl_to_utf8_ti > tle" at line number 645 in file proto.h. > to_utf8_title(U8 *p) > ^ > cc: Error: utf8.c, line 505: In this declaration, the type of > "Perl_to_utf8_lowe > r" is not compatible with the type of a previous declaration of > "Perl_to_utf8_lo > wer" at line number 643 in file proto.h. > to_utf8_lower(U8 *p) > ^ > *** Exit 1 > Stop. > > Any ideas? > > Btw, it does build without threads.. > > Jure -- *********************************************************************** * Charles Richmond Integrated International Systems Corporation * * cmr@iisc.com cmr@koibito.iisc.com cmr@shore.net * * UNIX Internals, I18N, L10N, X, Realtime Imaging, and Custom S/W * * One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 * * (617) 723 7695 (617) 367 3151 FAX (617) 723 6861 * ***********************************************************************