compile error in randfile.c on Solaris 10 Opteron

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

compile error in randfile.c on Solaris 10 Opteron

Tinnerello, Richard
compile error in randfile.c on Solaris 10 Opteron

Hello,
I'm having trouble building 0.9.7i on a Solaris 10 on x86 (Opteron) machine. I configured manually with:
./Configure solaris-x86-gcc --prefix=/sci/openssl-0.9.7i no-idea no-rc5 no-mdc2 fiips

make depend is OK, but make gets this compile error:

making all in crypto/rand...
make[2]: Entering directory `/data/OpenSSL/openssl-0.9.7i/crypto/rand'
gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -fomit-frame-pointer -mcpu=i486 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o md_rand.o md_rand.c

gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -fomit-frame-pointer -mcpu=i486 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o randfile.o randfile.c

In file included from /usr/include/sys/wait.h:24,
                 from /usr/include/stdlib.h:22,
                 from randfile.c:64:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
In file included from /usr/include/sys/procset.h:24,
                 from /usr/include/sys/wait.h:25,
                 from /usr/include/stdlib.h:22,
                 from randfile.c:64:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from /usr/include/stdlib.h:22,
                 from randfile.c:64:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
make[2]: *** [randfile.o] Error 1
make[2]: Leaving directory `/data/OpenSSL/openssl-0.9.7i/crypto/rand'

Has anyone seen this error? Any suggestion would be welcome. Thanks,
Richard

Reply | Threaded
Open this post in threaded view
|

Re: compile error in randfile.c on Solaris 10 Opteron

Kyle Hamilton
That looks like your system headers are corrupt.  Try running this command:

gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA
-DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -fomit-frame-pointer -mcpu=i486
-Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DSHA1_ASM -DMD5_ASM
-DRMD160_ASM   -E -o randfile.e randfile.c

and see what randfile.e looks like, searching for the string 'ctid_t'.

-Kyle H

On 1/19/06, Tinnerello, Richard <[hidden email]> wrote:

>
>
> Hello,
> I'm having trouble building 0.9.7i on a Solaris 10 on x86 (Opteron) machine.
> I configured manually with:
> ./Configure solaris-x86-gcc --prefix=/sci/openssl-0.9.7i no-idea no-rc5
> no-mdc2 fiips
>
> make depend is OK, but make gets this compile error:
>
> making all in crypto/rand...
> make[2]: Entering directory `/data/OpenSSL/openssl-0.9.7i/crypto/rand'
> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
> -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5
> -DOPENSSL_NO_MDC2 -fomit-frame-pointer -mcpu=i486 -Wall -DL_ENDIAN
> -DOPENSSL_NO_INLINE_ASM -DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o md_rand.o
> md_rand.c
>
> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
> -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5
> -DOPENSSL_NO_MDC2 -fomit-frame-pointer -mcpu=i486 -Wall -DL_ENDIAN
> -DOPENSSL_NO_INLINE_ASM -DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o randfile.o
> randfile.c
>
> In file included from /usr/include/sys/wait.h:24,
>                  from /usr/include/stdlib.h:22,
>                  from randfile.c:64:
> /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
> /usr/include/sys/siginfo.h:292: error: parse error before '}' token
> /usr/include/sys/siginfo.h:294: error: parse error before '}' token
> In file included from /usr/include/sys/procset.h:24,
>                  from /usr/include/sys/wait.h:25,
>                  from /usr/include/stdlib.h:22,
>                  from randfile.c:64:
> /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
> In file included from /usr/include/stdlib.h:22,
>                  from randfile.c:64:
> /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
> make[2]: *** [randfile.o] Error 1
> make[2]: Leaving directory `/data/OpenSSL/openssl-0.9.7i/crypto/rand'
>
> Has anyone seen this error? Any suggestion would be welcome. Thanks,
> Richard
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: compile error in randfile.c on Solaris 10 Opteron

Tinnerello, Richard
In reply to this post by Tinnerello, Richard
Thanks, you are right! Our system admin corrected something in the gcc
setup and it fixed this error.
Richard

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Kyle Hamilton
Sent: Thursday, January 19, 2006 8:46 PM
To: [hidden email]
Subject: Re: compile error in randfile.c on Solaris 10 Opteron

That looks like your system headers are corrupt.  Try running this
command:

gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA
-DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -fomit-frame-pointer -mcpu=i486
-Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DSHA1_ASM -DMD5_ASM
-DRMD160_ASM   -E -o randfile.e randfile.c

and see what randfile.e looks like, searching for the string 'ctid_t'.

-Kyle H

On 1/19/06, Tinnerello, Richard <[hidden email]> wrote:
>
>
> Hello,
> I'm having trouble building 0.9.7i on a Solaris 10 on x86 (Opteron)
machine.
> I configured manually with:
> ./Configure solaris-x86-gcc --prefix=/sci/openssl-0.9.7i no-idea
no-rc5
> no-mdc2 fiips
>
> make depend is OK, but make gets this compile error:
>
> making all in crypto/rand...
> make[2]: Entering directory `/data/OpenSSL/openssl-0.9.7i/crypto/rand'
> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT
-DDSO_DLFCN
> -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5
> -DOPENSSL_NO_MDC2 -fomit-frame-pointer -mcpu=i486 -Wall -DL_ENDIAN
> -DOPENSSL_NO_INLINE_ASM -DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o
md_rand.o
> md_rand.c
>
> gcc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT
-DDSO_DLFCN
> -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5
> -DOPENSSL_NO_MDC2 -fomit-frame-pointer -mcpu=i486 -Wall -DL_ENDIAN
> -DOPENSSL_NO_INLINE_ASM -DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o
randfile.o

> randfile.c
>
> In file included from /usr/include/sys/wait.h:24,
>                  from /usr/include/stdlib.h:22,
>                  from randfile.c:64:
> /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
> /usr/include/sys/siginfo.h:292: error: parse error before '}' token
> /usr/include/sys/siginfo.h:294: error: parse error before '}' token
> In file included from /usr/include/sys/procset.h:24,
>                  from /usr/include/sys/wait.h:25,
>                  from /usr/include/stdlib.h:22,
>                  from randfile.c:64:
> /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
> In file included from /usr/include/stdlib.h:22,
>                  from randfile.c:64:
> /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
> make[2]: *** [randfile.o] Error 1
> make[2]: Leaving directory `/data/OpenSSL/openssl-0.9.7i/crypto/rand'
>
> Has anyone seen this error? Any suggestion would be welcome. Thanks,
> Richard
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: compile error in randfile.c on Solaris 10 Opteron

wrowe
In reply to this post by Tinnerello, Richard
Tinnerello, Richard wrote:
> Hello,
> I'm having trouble building 0.9.7i on a Solaris 10 on x86 (Opteron)
> machine. I configured manually with:
> ./Configure solaris-x86-gcc --prefix=/sci/openssl-0.9.7i no-idea no-rc5
> no-mdc2 fiips
>
> make depend is OK, but make gets this compile error:
>
> /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"

Yes, that's a failure to run ./mkheaders from the gcc package, instructions
are clearly shown in red font on sunfreeware.com's site amoung others.

Glad your admin worked that out.

Bill
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]