Bug 137757

Summary: Error compile ports/security/openssl
Product: Ports & Packages Reporter: Andrei V. Lavreniyuk <andy.lavr>
Component: Individual Port(s)Assignee: Dirk Meyer <dinoex>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Andrei V. Lavreniyuk 2009-08-14 06:10:06 UTC
=================
ecks -fno-strict-aliasing -Wformat -Wformat-security -fstack-protector -s -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -c t1_lib.c
cc -I../crypto -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -pthread -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIOS -O3 -DMD32_REG_T=int -Wall -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -pipe -march=native -mtune=native -fno-delete-null-pointer-checks -fno-strict-aliasing -Wformat -Wformat-security -fstack-protector -s -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -c t1_enc.c
cc -I../crypto -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -pthread -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIOS -O3 -DMD32_REG_T=int -Wall -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -pipe -march=native -mtune=native -fno-delete-null-pointer-checks -fno-strict-aliasing -Wformat -Wformat-security -fstack-protector -s -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -c d1_meth.c
cc -I../crypto -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -pthread -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIOS -O3 -DMD32_REG_T=int -Wall -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -pipe -march=native -mtune=native -fno-delete-null-pointer-checks -fno-strict-aliasing -Wformat -Wformat-security -fstack-protector -s -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -c d1_srvr.c
cc -I../crypto -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -pthread -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIOS -O3 -DMD32_REG_T=int -Wall -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -pipe -march=native -mtune=native -fno-delete-null-pointer-checks -fno-strict-aliasing -Wformat -Wformat-security -fstack-protector -s -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -c d1_clnt.c
cc -I../crypto -I.. -I../include  -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -pthread -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIOS -O3 -DMD32_REG_T=int -Wall -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -pipe -march=native -mtune=native -fno-delete-null-pointer-checks -fno-strict-aliasing -Wformat -Wformat-security -fstack-protector -s -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -c d1_lib.c
d1_lib.c: In function 'dtls1_start_timer':
d1_lib.c:269: warning: implicit declaration of function 'gettimeofday'
d1_lib.c: At top level:
d1_lib.c:277: error: expected declaration specifiers or '...' before numeric constant
d1_lib.c:277: error: expected declaration specifiers or '...' before numeric constant
d1_lib.c:277: error: expected declaration specifiers or '...' before '(' token
d1_lib.c:278: error: conflicting types for 'SSL_ctrl'
./include/openssl/ssl.h:1471: error: previous declaration of 'SSL_ctrl' was here
d1_lib.c: In function 'SSL_ctrl':
d1_lib.c:304: error: 'timeleft' undeclared (first use in this function)
d1_lib.c:304: error: (Each undeclared identifier is reported only once
d1_lib.c:304: error: for each function it appears in.)
d1_lib.c: In function 'dtls1_is_timer_expired':
d1_lib.c:326: error: too many arguments to function 'SSL_ctrl'
*** Error code 1

Stop in /usr/ports/security/openssl/work/openssl-0.9.8k/ssl.
*** Error code 1

Stop in /usr/ports/security/openssl/work/openssl-0.9.8k.
*** Error code 1

Stop in /usr/ports/security/openssl.
*** Error code 1

Stop in /usr/ports/security/openssl.
** Command failed [exit code 1]: /usr/bin/script -qa /var/tmp/portupgrade20090814-66089-1seebc5-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=openssl-0.9.8k_2 UPGRADE_PORT_VER=0.9.8k_2 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! security/openssl (openssl-0.9.8k_2)   (compiler error)
=================

How-To-Repeat: 1. Update ports tree

2. #portupgrade openssl-0.9.8k_2
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-08-14 06:10:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Dirk Meyer freebsd_committer freebsd_triage 2009-08-14 07:32:49 UTC
State Changed
From-To: open->closed

- patch reverted, tahnks for reporting