Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installing perl on Dec Unix #756

Closed
p5pRT opened this issue Oct 21, 1999 · 5 comments
Closed

installing perl on Dec Unix #756

p5pRT opened this issue Oct 21, 1999 · 5 comments

Comments

@p5pRT
Copy link

p5pRT commented Oct 21, 1999

Migrated from rt.perl.org#1680 (status was 'resolved')

Searchable as RT1680$

@p5pRT
Copy link
Author

p5pRT commented Oct 21, 1999

From Eman.Abohebeish@disney.com

I'm installing PERL on my UNIX box for the first time.

When I try to run "make", I get the following error message​:

/home/users/psoft_qa/sybperl/perl5.005_03>> make
`sh cflags libperl.a perl.o` perl.c
  CCCMD = cc -DPERL_CORE -c -O
cc​: Error​: perl.c, line 24​: In this declaration, parameter 1 has a different
typ
e than specified in an earlier declaration of this function.
char *getenv _((char *)); /* Usually in <stdlib.h> */
------^
cc​: Error​: perl.c, line 24​: In this declaration, the type of "getenv" is not
com
patible with the type of a previous declaration of "getenv" at line number
196 i
n file /usr/include/stdlib.h.
char *getenv _((char *)); /* Usually in <stdlib.h> */
------^
*** Exit 1
Stop.

I checked and the stdlib.h defines the getenv function as

extern char *getenv __((const char *));

Not sure what do do about this inconsistancy. Any help is appreciated.

Eman
Sr. Programmer Analyst
Walt Disney company

@p5pRT
Copy link
Author

p5pRT commented Oct 21, 1999

From @jhi

Abohebeish, Eman writes​:

Hi,

I'm installing PERL on my UNIX box for the first time.

When I try to run "make", I get the following error message​:

Which Digital UNIX? What do

  uname -a

and

  sizer -v

show?

--
$jhi++; # http​://www.iki.fi/jhi/
  # There is this special biologist word we use for 'stable'.
  # It is 'dead'. -- Jack Cohen

@p5pRT
Copy link
Author

p5pRT commented Oct 21, 1999

From [Unknown Contact. See original ticket]

You didn't say for sure which version of "Tru64 UNIX"
a.k.a. "DIGITAL UNIX" a.k.a. "DEC OSF/1" you were using at the
time, so the following is just a best guess based on my own past
experience at building and installing perl.

It looks as though you went out of your way to override the
carefully-tested hints/dec_osf.sh file's compiler flags which
make it work 'out of the box'. I suggest you try again with 'sh
./Configure -des ; make all test', and once that's working you
can go back and see about re-building with different options if
you need them. In particular, here, you've lost the '-std' which
gets you current prototypes for things in stdlib.h, along with
the right return types from some syscalls which have different
flavours depending on the compilation model.

--
Spider Boardman (at home) spider@​Orb.Nashua.NH.US
The management (my cats) made me say this. http​://www.ultranet.com/~spiderb/
PGP public key fingerprint​: 96 72 D2 C6 E0 92 32 89 F6 B2 C2 A0 1C AB 1F DC

@p5pRT
Copy link
Author

p5pRT commented Oct 21, 1999

From [Unknown Contact. See original ticket]

Hi,

I am using Digital Unix V4.0D. I followed the instruction below 'sh
./Config -des', but the 'make all test' gave me the same error, namely

/home/users/psoft_qa/sybperl/perl5.005_03>> make all test
`sh cflags libperl.a perl.o` perl.c
  CCCMD = cc -DPERL_CORE -c -O
cc​: Error​: perl.c, line 24​: In this declaration, parameter 1 has a different
typ
e than specified in an earlier declaration of this function.
char *getenv _((char *)); /* Usually in <stdlib.h> */
------^
cc​: Error​: perl.c, line 24​: In this declaration, the type of "getenv" is not
com
patible with the type of a previous declaration of "getenv" at line number
196 i
n file /usr/include/stdlib.h.
char *getenv _((char *)); /* Usually in <stdlib.h> */
------^
*** Exit 1
Stop.

I didn't make any "manual" changes to any files.

I have set LD_LIBRARY_PATH=/usr/sybase_qa_11.9.2/lib

Do I need to set LD_LIBARY_PATH differently?

Eman

-----Original Message-----
From​: spider-perl@​Orb.Nashua.NH.US [mailto​:spider-perl@​Orb.Nashua.NH.US]
Sent​: Thursday, October 21, 1999 11​:37 AM
To​: Abohebeish, Eman
Cc​: perl5-porters@​perl.org
Subject​: Re​: [ID 19991021.006] installing perl on Dec Unix

You didn't say for sure which version of "Tru64 UNIX"
a.k.a. "DIGITAL UNIX" a.k.a. "DEC OSF/1" you were using at the
time, so the following is just a best guess based on my own past
experience at building and installing perl.

It looks as though you went out of your way to override the
carefully-tested hints/dec_osf.sh file's compiler flags which
make it work 'out of the box'. I suggest you try again with 'sh
./Configure -des ; make all test', and once that's working you
can go back and see about re-building with different options if
you need them. In particular, here, you've lost the '-std' which
gets you current prototypes for things in stdlib.h, along with
the right return types from some syscalls which have different
flavours depending on the compilation model.

--
Spider Boardman (at home) spider@​Orb.Nashua.NH.US
The management (my cats) made me say this.
http​://www.ultranet.com/~spiderb/
PGP public key fingerprint​: 96 72 D2 C6 E0 92 32 89 F6 B2 C2 A0 1C AB 1F DC

@p5pRT
Copy link
Author

p5pRT commented Oct 21, 1999

From [Unknown Contact. See original ticket]

O.K. Everything works now - All I needed was in the first fifteen lines of
the instructions.

Thanks - Eman

-----Original Message-----
From​: spider-perl@​Orb.Nashua.NH.US [mailto​:spider-perl@​Orb.Nashua.NH.US]
Sent​: Thursday, October 21, 1999 11​:37 AM
To​: Abohebeish, Eman
Cc​: perl5-porters@​perl.org
Subject​: Re​: [ID 19991021.006] installing perl on Dec Unix

You didn't say for sure which version of "Tru64 UNIX"
a.k.a. "DIGITAL UNIX" a.k.a. "DEC OSF/1" you were using at the
time, so the following is just a best guess based on my own past
experience at building and installing perl.

It looks as though you went out of your way to override the
carefully-tested hints/dec_osf.sh file's compiler flags which
make it work 'out of the box'. I suggest you try again with 'sh
./Configure -des ; make all test', and once that's working you
can go back and see about re-building with different options if
you need them. In particular, here, you've lost the '-std' which
gets you current prototypes for things in stdlib.h, along with
the right return types from some syscalls which have different
flavours depending on the compilation model.

--
Spider Boardman (at home) spider@​Orb.Nashua.NH.US
The management (my cats) made me say this.
http​://www.ultranet.com/~spiderb/
PGP public key fingerprint​: 96 72 D2 C6 E0 92 32 89 F6 B2 C2 A0 1C AB 1F DC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant