make depend errors using Sun Studio 11

Hi,

I'm trying to compile OpenSSL 0.9.8d on a Sun T1000 running Solaris 10 with Sun Studio 11. I added RC5 support, so I ran "make depend" but I'm

getting the following errors:

makedepend: warning: cryptlib.c: 150: #error("Unrecognized compiler

protocol for variable argument lists").

I searched & saw similar messages if one is compiling with gcc, but

I'm not using it. What must I do to get this to run cleanly?

Thanks.

-John

John Center

Villanova University

[534 byte] By [JohnCentera] at [2007-11-26 17:38:08]
# 1

Hi John,

> I'm trying to compile OpenSSL 0.9.8d on a Sun T1000

> running Solaris 10 with Sun Studio 11. I added RC5

> support, so I ran "make depend"

Is it necessary to run "make depend" to compile it?

The utility "makedepend" is not a part of Sun Studio.

There is a much better feature in Sun Studio to keep

the dependencies up to date. It is called KEEP_STATE.

You can find more about this feature in "make" man page.

Why it is necessary to run "make depend"?

Thanks,

Nik

Nik.Molchanova at 2007-7-9 0:06:17 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

Hi Nik,

I made a change to add a cipher to openssl. After running Configure, it prompted me to run "make depend" to update the dependencies. I think it is using makedepend from /usr/openwin/bin/makedepend. I don't have any other version installed.

I looked at the make man page for KEEP_STATE, but I'm not sure how to best use it. I'd like to simply set the KEEP_STATE env variable, but I don't know how to set it under bash. Also, I don't know if it is as simple as running make after setting it.

I'd appreciate any help you can give me.

Thanks.

-John

JohnCentera at 2007-7-9 0:06:17 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

First of all, in order to use KEEP_STATE feature of Sun 'make' (/usr/ccs/bin/make), please make sure you're using Sun 'make', not the GNU one. Usually, makefiles generated by configure are not compatible with Sun 'make'.

If you're using /usr/ccs/bin/make, enabling KEEP_STATE feature should easy:

$ export KEEP_STATE=1

$ make

MaximKartasheva at 2007-7-9 0:06:17 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4

Thanks, Maxim. I had a feeling it had to be something simple. I don't know why the csh is used in examples when most people use ksh or bash. I was also able to work around the problem by downloading makedepend from X.org & compiling it, instead of using the one that comes with Solaris. I guess the difference between the Sun version & X.org version of makedepend is like the difference between Sun make & GNU make.

Thanks, again.

-John

JohnCentera at 2007-7-9 0:06:17 > top of Java-index,Development Tools,Solaris and Linux Development Tools...