Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Charles M Richmond <cmr@iisc.com>
Subject: Re: Problems building threaded perl 5.005 on OSF 4.0d
Date: 1998/09/02	[thread overview]
Message-ID: <35ED03C9.D2734389@iisc.com> (raw)
In-Reply-To: 35EC9697.80A30007@uni-lj.si

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         *
***********************************************************************



  parent reply	other threads:[~1998-09-02  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-02  4:00 Problems building threaded perl 5.005 on OSF 4.0d Jure Simsic
1998-09-02  4:00 ` Greg Bacon
1998-09-02  4:00 ` Charles M Richmond [this message]
1998-09-06  4:00   ` Jure Simsic
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox