pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/28938: building security/openssl failed on Interix



>Number:         28938
>Category:       pkg
>Synopsis:       building security/openssl failed on Interix
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 11 14:06:00 +0000 2005
>Originator:     HIRAMATSU, Yoshifumi
>Release:        SFU 3.5
>Organization:
>Environment:
Interix nile 3.5 SP-8.0.1969.1 x86 AMD_x86_Family15_Model12_Stepping0
>Description:
invoking bmake in security/openssl failed with this message:

gcc -I. -I.. -I../include bsd-gcc-shared -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA 
-DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -O -DTERMIOS -O2 -Wall    -c -o cryptlib.o 
cryptlib.c
gcc: cannot specify -o with -c or -S and multiple compilations
gmake[1]: *** [cryptlib.o] Error 1
>How-To-Repeat:
cd /usr/pkgsrc/security/openssl
bmake

>Fix:
"Interix3" table entry in Configure script has extra ":".

Removing one ":" make openssl build fine.

-+"Interix3","gcc:-DTERMIOS -O2 -Wall::(unknown)::-ldl:BN_LLONG ${x86_gcc_des} 
${x86_gcc_opts}:::::::::::dlfcn:bsd-gcc-shared::-Wl,--image-base,\$\$((\$\$RANDOM
 %64/2*1048576+1577058304)):.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"Interix3","gcc:-DTERMIOS -O2 -Wall::(unknown)::-ldl:BN_LLONG ${x86_gcc_des} 
${x86_gcc_opts}::::::::::dlfcn:bsd-gcc-shared::-Wl,--image-base,\$\$((\$\$RANDOM
 %64/2*1048576+1577058304)):.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",

diff -buNr openssl.orig/distinfo openssl/distinfo
--- openssl.orig/distinfo       Tue Jan 11 21:45:27 2005
+++ openssl/distinfo    Tue Jan 11 21:47:37 2005
@@ -3,7 +3,7 @@
 SHA1 (openssl-0.9.7e.tar.gz) = b2eb7f13cc09655ec2378c3dde3025bf7072af54
 Size (openssl-0.9.7e.tar.gz) = 3043231 bytes
 SHA1 (patch-aa) = 5ab4ec9fdf15c9ded6a6205dc4801e053b3769fc
-SHA1 (patch-ac) = dce0f8e7722d852c9d7e822d3d86bbe9b97014fd
+SHA1 (patch-ac) = b9c2f230206b70b4159fb3dadb90e935f38cc970
 SHA1 (patch-ad) = 3d0a5534c6946aeda219d670f241a01e72d86c6a
 SHA1 (patch-ae) = cb3ce622ef9efc4098d57b10059e5424272520c8
 SHA1 (patch-af) = 6e1c0f674be9b0358b1e152b50eb5bc47f2fff17
diff -buNr openssl.orig/patches/patch-ac openssl/patches/patch-ac
--- openssl.orig/patches/patch-ac       Tue Jan 11 21:45:27 2005
+++ openssl/patches/patch-ac    Tue Jan 11 21:47:27 2005
@@ -1,8 +1,6 @@
-$NetBSD: patch-ac,v 1.22 2004/12/27 06:14:40 jlam Exp $
-
---- Configure.orig     Fri Oct  1 07:34:28 2004
-+++ Configure
-@@ -400,9 +400,23 @@ my %table=(
+--- Configure.orig     Fri Oct  1 20:34:28 2004
++++ Configure  Tue Jan 11 21:46:14 2005
+@@ -400,9 +400,23 @@
  "linux-ia64",   "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer 
-Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK 
RC4_CHAR:asm/ia64.o:::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  "linux-ia64-ecc",   "ecc:-DL_ENDIAN -DTERMIO -O2 
-Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK 
RC4_CHAR:asm/ia64.o:::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  "linux-x86_64", "gcc:-m64 -DL_ENDIAN -DTERMIO -O3 -Wall 
-DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK RC4_CHAR 
BF_PTR2 DES_INT 
DES_UNROLL:asm/x86_64-gcc.o:::::::::dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
@@ -25,11 +23,11 @@
 +"NetBSD-x86-aout", "gcc:-DTERMIOS -O2 -Wall::(unknown):::BN_LLONG 
${x86_gcc_des} 
${x86_gcc_opts}:${x86_out_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"NetBSD-x86-elf", "gcc:-DTERMIOS -O2 -Wall::(unknown):::BN_LLONG 
${x86_gcc_des} 
${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 +"NetBSD-x86_64", "gcc:-DTERMIOS -O2 
-DMD32_REG_T=int::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHAR BF_PTR2 DES_INT 
DES_UNROLL:asm/x86_64-gcc.o:::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-+"Interix3","gcc:-DTERMIOS -O2 -Wall::(unknown)::-ldl:BN_LLONG ${x86_gcc_des} 
${x86_gcc_opts}:::::::::::dlfcn:bsd-gcc-shared::-Wl,--image-base,\$\$((\$\$RANDOM
 %64/2*1048576+1577058304)):.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
++"Interix3","gcc:-DTERMIOS -O2 -Wall::(unknown)::-ldl:BN_LLONG ${x86_gcc_des} 
${x86_gcc_opts}::::::::::dlfcn:bsd-gcc-shared::-Wl,--image-base,\$\$((\$\$RANDOM
 %64/2*1048576+1577058304)):.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  "FreeBSD-elf",  "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 
-Wall::-pthread -D_REENTRANT -D_THREAD_SAFE -D_THREADSAFE:::BN_LLONG 
${x86_gcc_des} 
${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  "FreeBSD-sparc64","gcc:-DB_ENDIAN -DTERMIOS -O3 
-fomit-frame-pointer::-pthread -D_REENTRANT -D_THREAD_SAFE 
-D_THREADSAFE:::SIXTY_FOUR_BIT_LONG DES_INT DES_PTR DES_RISC2 
BF_PTR::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  "FreeBSD-ia64","gcc:-DL_ENDIAN -DTERMIOS -O 
-fomit-frame-pointer::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHUNK 
RC4_CHAR:asm/ia64-cpp.o:::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-@@ -832,6 +846,10 @@ PROCESS_ARGS:
+@@ -832,6 +846,10 @@
                                {
                                $libs.=$_." ";
                                }
@@ -40,7 +38,7 @@
                        elsif (/^-[^-]/ or /^\+/)
                                {
                                $flags.=$_." ";
-@@ -1167,8 +1185,8 @@ if ($fips)
+@@ -1167,8 +1185,8 @@
        }
  $des_obj=$des_enc     unless (!$fips && $des_obj =~ /\.o$/);
  my $fips_des_obj='asm/fips-dx86-elf.o';
@@ -51,7 +49,7 @@
  $bf_obj=$bf_enc               unless ($bf_obj =~ /\.o$/);
  $cast_obj=$cast_enc   unless ($cast_obj =~ /\.o$/);
  $rc4_obj=$rc4_enc     unless ($rc4_obj =~ /\.o$/);
-@@ -1297,7 +1315,7 @@ while (<IN>)
+@@ -1297,7 +1315,7 @@
        elsif ($shared_extension ne "" && $shared_extension =~ 
/^\.s([ol])\.[^\.]*\.[^\.]*$/)
                {
                my $sotmp = $1;




Home | Main Index | Thread Index | Old Index