pkgsrc-WIP-discuss archive

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

failing to update OpenSSL package



Hello,

I'm having troubles updating wip/openssl to the latest released version
(0.9.8g). I'm using NetBSD/i386 4.99.31. A diff against current
wip/openssl is attached (patches/patch-ab needs to be removed).

During the `build' stage there are linker problems:

[...]
making all in engines...
gmake[1]: Entering directory 
`/b/build/pkg/3/wip/openssl/work/openssl-0.9.8g/engines'
gcc -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -pthread -D_THREAD_SAFE 
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O2 -DL_ENDIAN -DTERMIOS -O3 
-fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM   -c -o e_4758cca.o e_4758cca.c
[...]
gcc -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -pthread -D_THREAD_SAFE 
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O2 -DL_ENDIAN -DTERMIOS -O3 
-fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM   -c -o e_ubsec.o e_ubsec.c
gmake[2]: Entering directory 
`/b/build/pkg/3/wip/openssl/work/openssl-0.9.8g/engines'
/usr/lib/crt0.o(.text+0x86): In function `___start':
: undefined reference to `main'
gmake[2]: Leaving directory 
`/b/build/pkg/3/wip/openssl/work/openssl-0.9.8g/engines'
[...]
gmake[2]: Entering directory 
`/b/build/pkg/3/wip/openssl/work/openssl-0.9.8g/engines'
/usr/lib/crt0.o(.text+0x86): In function `___start':
: undefined reference to `main'
gmake[2]: Leaving directory 
`/b/build/pkg/3/wip/openssl/work/openssl-0.9.8g/engines'
gmake[1]: Leaving directory 
`/b/build/pkg/3/wip/openssl/work/openssl-0.9.8g/engines'
[...]

That's why the libraries in engines/ are not built, and thus the
`install' stage fails:

making install in engines...
gmake[1]: Entering directory 
`/b/build/pkg/3/wip/openssl/work/openssl-0.9.8g/engines'
installing 4758cca
cp: lib4758cca.so: No such file or directory
[...]
installing ubsec
cp: libubsec.so: No such file or directory
gmake[1]: *** [install] Error 1
gmake[1]: Leaving directory 
`/b/build/pkg/3/wip/openssl/work/openssl-0.9.8g/engines'
gmake: *** [install_sw] Error 1
*** Error code 2

However, if I just run the build stage, and then manually build the
libraries by doing

$ cd .../work/openssl-0.9.8g/engines
$ gmake clean
$ gmake

there are no undefined references, the libraries seem to be built just
fine, and running the `install' stage afterwards succeeds.

Because I don't understand why pkgsrc fails to build these libraries
I don't know how to fix the package... Help is appreciated.


Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
cvs diff: cannot find wip/openssl/patches/patch-ab
Index: wip/openssl/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc-wip/wip/openssl/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- wip/openssl/Makefile        29 Sep 2007 12:45:22 -0000      1.4
+++ wip/openssl/Makefile        21 Oct 2007 14:02:08 -0000
@@ -2,7 +2,7 @@
 
 OPENSSL_SNAPSHOT?=     # empty
 OPENSSL_STABLE?=       # empty
-OPENSSL_VERS?=         0.9.8e
+OPENSSL_VERS?=         0.9.8g
 
 .if empty(OPENSSL_SNAPSHOT)
 DISTNAME=      openssl-${OPENSSL_VERS}
@@ -24,7 +24,7 @@ MASTER_SITES= ftp://ftp.openssl.org/snap
 .  endif
 .endif
 
-PKGREVISION=   1
+#PKGREVISION=  1
 SVR4_PKGNAME=  ossl
 CATEGORIES=    security
 MAINTAINER=    j+pkgsrc%salmi.ch@localhost
Index: wip/openssl/PLIST.common
===================================================================
RCS file: /cvsroot/pkgsrc-wip/wip/openssl/PLIST.common,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST.common
--- wip/openssl/PLIST.common    2 Aug 2007 23:02:04 -0000       1.1.1.1
+++ wip/openssl/PLIST.common    21 Oct 2007 14:02:08 -0000
@@ -1092,7 +1092,6 @@ man/man3/openssl_ui_compat.3
 man/man3/openssl_x509.3
 man/man5/openssl_config.5
 man/man5/openssl_x509v3_config.5
-man/man7/Modes_of_DES.7
 man/man7/des_modes.7
 share/examples/openssl/CA.pl
 share/examples/openssl/CA.sh
Index: wip/openssl/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc-wip/wip/openssl/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- wip/openssl/distinfo        29 Sep 2007 12:45:22 -0000      1.6
+++ wip/openssl/distinfo        21 Oct 2007 14:02:08 -0000
@@ -1,14 +1,13 @@
 $NetBSD$
 
-SHA1 (openssl-0.9.8e.tar.gz) = b429872d2a287714ab37e42296e6a5fbe23d32ff
-RMD160 (openssl-0.9.8e.tar.gz) = c1a498606dc0fc7219376b950fab6b53687466db
-Size (openssl-0.9.8e.tar.gz) = 3341665 bytes
-SHA1 (patch-aa) = 95d8c8c65ef4c074159f7cfc2067eeec24145210
-SHA1 (patch-ab) = 3ab5b9d29e3912c32d3d959e5464450d332e2699
-SHA1 (patch-ac) = 06669a79ea92d4e09584c019e21e06e82ee3b217
+SHA1 (openssl-0.9.8g.tar.gz) = 4e9c5ced466715d18fd924de79bde5c15da80fa1
+RMD160 (openssl-0.9.8g.tar.gz) = f080a32da9becdc8b98c38744d62c6fd8664f603
+Size (openssl-0.9.8g.tar.gz) = 3354792 bytes
+SHA1 (patch-aa) = b28ec662bf0586e31d59cab45e3a28b91b10dac1
+SHA1 (patch-ac) = d0a479d0e87f108a39a9ae7e70f8ef67922982ca
 SHA1 (patch-ad) = bb86ac463fc4ab8b485df5f1a4fb9c13c1fc41c3
 SHA1 (patch-ae) = 7a58f1765a3761321dcc8dafc5fe2e33207be480
 SHA1 (patch-af) = 5e1082215e513b35c1650c6a1f796834f79d1d0e
-SHA1 (patch-ag) = 5259b96c385341957a81d531ebd8f3ea31801fdf
+SHA1 (patch-ag) = 48eac07ebc72eda51ea148a8aaf79b3721a9041a
 SHA1 (patch-ak) = 049250b9bd42e6f155145703135dab39a7ec17e0
 SHA1 (patch-al) = 076a606352bdeaeea1cc64f16be2ac1325882302
Index: wip/openssl/patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc-wip/wip/openssl/patches/patch-aa,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-aa
--- wip/openssl/patches/patch-aa        2 Aug 2007 23:02:05 -0000       1.1.1.1
+++ wip/openssl/patches/patch-aa        21 Oct 2007 14:02:08 -0000
@@ -1,7 +1,7 @@
 $NetBSD$
 
---- config.orig        2007-02-22 03:00:39.000000000 +0100
-+++ config     2007-07-31 18:02:29.000000000 +0200
+--- config.orig        2007-08-01 13:21:35.000000000 +0200
++++ config     2007-10-21 13:18:53.000000000 +0200
 @@ -49,6 +49,7 @@ done
  # First get uname entries that we use below
  
@@ -39,7 +39,7 @@ $NetBSD$
        ;;
  
      OpenBSD:*)
-@@ -654,13 +663,18 @@ case "$GUESSOS" in
+@@ -655,13 +664,18 @@ case "$GUESSOS" in
        ;;
    *-*-sunos4)         OUT="sunos-$CC" ;;
  
@@ -49,10 +49,8 @@ $NetBSD$
 +                      OUT="NetBSD-${MACHINE_ARCH}" ;;
 +
    *86*-*-bsdi4)               OUT="BSD-x86-elf"; options="$options no-sse2 
-ldl" ;;
--  alpha*-*-*bsd*)     OUT="BSD-generic64; options="$options -DL_ENDIAN" ;;
--  powerpc64-*-*bsd*)  OUT="BSD-generic64; options="$options -DB_ENDIAN" ;;
-+  alpha*-*-*bsd*)     OUT="BSD-generic64"; options="$options -DL_ENDIAN" ;;
-+  powerpc64-*-*bsd*)  OUT="BSD-generic64"; options="$options -DB_ENDIAN" ;;
+   alpha*-*-*bsd*)     OUT="BSD-generic64"; options="$options -DL_ENDIAN" ;;
+   powerpc64-*-*bsd*)  OUT="BSD-generic64"; options="$options -DB_ENDIAN" ;;
    sparc64-*-*bsd*)    OUT="BSD-sparc64" ;;
    ia64-*-*bsd*)               OUT="BSD-ia64" ;;
    amd64-*-*bsd*)      OUT="BSD-x86_64" ;;
@@ -61,7 +59,7 @@ $NetBSD$
                        if [ -L /usr/lib/libc.so ]; then        # [Free|Net]BSD
                            libc=/usr/lib/libc.so
                        else                                    # OpenBSD
-@@ -673,6 +687,8 @@ case "$GUESSOS" in
+@@ -674,6 +688,8 @@ case "$GUESSOS" in
                        esac ;;
    *-*-*bsd*)          OUT="BSD-generic32" ;;
  
Index: wip/openssl/patches/patch-ac
===================================================================
RCS file: /cvsroot/pkgsrc-wip/wip/openssl/patches/patch-ac,v
retrieving revision 1.2
diff -u -p -r1.2 patch-ac
--- wip/openssl/patches/patch-ac        4 Aug 2007 18:47:03 -0000       1.2
+++ wip/openssl/patches/patch-ac        21 Oct 2007 14:02:08 -0000
@@ -1,7 +1,7 @@
 $NetBSD$
 
---- Configure.orig     2007-08-04 20:40:08.000000000 +0200
-+++ Configure
+--- Configure.orig     2007-09-16 14:24:17.000000000 +0200
++++ Configure  2007-10-21 13:21:36.000000000 +0200
 @@ -194,7 +194,7 @@ my %table=(
  "solaris64-x86_64-gcc","gcc:-m64 -O3 -Wall -DL_ENDIAN 
-DMD32_REG_T=int::-D_REENTRANT::-lsocket -lnsl -ldl:SIXTY_FOUR_BIT_LONG 
RC4_CHUNK BF_PTR2 DES_INT 
DES_UNROLL:${x86_64_asm}:dlfcn:solaris-shared:-fPIC:-m64 -shared 
-static-libgcc:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
   
@@ -19,7 +19,7 @@ $NetBSD$
  "tru64-alpha-cc", "cc:-std1 -tune host -fast 
-readonly_strings::-pthread:::SIXTY_FOUR_BIT_LONG 
RC4_CHUNK:${no_asm}:dlfcn:alpha-osf1-shared::-msym:.so",
  
  ####
-@@ -369,6 +370,25 @@ my %table=(
+@@ -368,6 +369,25 @@ my %table=(
  "BSD-ia64",   "gcc:-DL_ENDIAN -DTERMIOS -O3 
-Wall::${BSDthreads}:::SIXTY_FOUR_BIT_LONG 
RC4_CHUNK:${ia64_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  "BSD-x86_64", "gcc:-DL_ENDIAN -DTERMIOS -O3 -DMD32_REG_T=int 
-Wall::${BSDthreads}:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT 
DES_UNROLL:${x86_64_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  
@@ -45,7 +45,7 @@ $NetBSD$
  "bsdi-elf-gcc",     "gcc:-DPERL5 -DL_ENDIAN -fomit-frame-pointer -O3 
-march=i486 -Wall::(unknown)::-ldl:BN_LLONG ${x86_gcc_des} 
${x86_gcc_opts}:${x86_elf_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
  
  "nextstep",   "cc:-O -Wall:<libc.h>:(unknown):::BN_LLONG ${x86_gcc_des} 
${x86_gcc_opts}:::",
-@@ -731,6 +751,10 @@ PROCESS_ARGS:
+@@ -734,6 +754,10 @@ PROCESS_ARGS:
                                {
                                $libs.=$_." ";
                                }
@@ -56,7 +56,7 @@ $NetBSD$
                        elsif (/^-[^-]/ or /^\+/)
                                {
                                $flags.=$_." ";
-@@ -1330,7 +1354,7 @@ while (<IN>)
+@@ -1371,7 +1395,7 @@ while (<IN>)
        elsif ($shared_extension ne "" && $shared_extension =~ 
/^\.s([ol])\.[^\.]*\.[^\.]*$/)
                {
                my $sotmp = $1;
Index: wip/openssl/patches/patch-ag
===================================================================
RCS file: /cvsroot/pkgsrc-wip/wip/openssl/patches/patch-ag,v
retrieving revision 1.4
diff -u -p -r1.4 patch-ag
--- wip/openssl/patches/patch-ag        4 Aug 2007 20:11:04 -0000       1.4
+++ wip/openssl/patches/patch-ag        21 Oct 2007 14:02:08 -0000
@@ -1,8 +1,8 @@
 $NetBSD$
 
---- Makefile.shared.orig       2007-08-04 21:41:16.000000000 +0200
-+++ Makefile.shared
-@@ -267,6 +267,11 @@ link_o.alpha-osf1:
+--- Makefile.shared.orig       2007-09-16 16:11:51.000000000 +0200
++++ Makefile.shared    2007-10-21 13:28:51.000000000 +0200
+@@ -273,6 +273,11 @@ link_o.alpha-osf1:
        @ if ${DETECT_GNU_LD}; then \
                $(DO_GNU_SO); \
        else \
@@ -14,7 +14,7 @@ $NetBSD$
                SHLIB=lib$(LIBNAME).so; \
                SHLIB_SUFFIX=; \
                SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed 
-e 's/ */:/'`; \
-@@ -276,11 +281,11 @@ link_o.alpha-osf1:
+@@ -282,11 +287,11 @@ link_o.alpha-osf1:
                        SHLIB_HIST="$(LIBVERSION)"; \
                fi; \
                SHLIB_SOVER=; \
@@ -22,14 +22,14 @@ $NetBSD$
 -              NOALLSYMSFLAGS='-none'; \
 +              ALLSYMSFLAGS="$${WL}-all"; \
 +              NOALLSYMSFLAGS="$${WL}-none"; \
-               SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared"; \
+               SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared 
-Wl,-B,symbolic"; \
                if [ -n "$$SHLIB_HIST" ]; then \
 -                      SHAREDFLAGS="$$SHAREDFLAGS -set_version $$SHLIB_HIST"; \
 +                      SHAREDFLAGS="$$SHAREDFLAGS 
$${WL}-set_version$${DELIM}$$SHLIB_HIST"; \
                fi; \
        fi; \
        $(LINK_SO_O)
-@@ -288,6 +293,11 @@ link_a.alpha-osf1:
+@@ -294,6 +299,11 @@ link_a.alpha-osf1:
        @ if ${DETECT_GNU_LD}; then \
                $(DO_GNU_SO); \
        else \
@@ -41,7 +41,7 @@ $NetBSD$
                SHLIB=lib$(LIBNAME).so; \
                SHLIB_SUFFIX=; \
                SHLIB_HIST=`echo "$(LIBCOMPATVERSIONS)" | cut -d';' -f2 | sed 
-e 's/ */:/'`; \
-@@ -297,11 +307,11 @@ link_a.alpha-osf1:
+@@ -303,11 +313,11 @@ link_a.alpha-osf1:
                        SHLIB_HIST="$(LIBVERSION)"; \
                fi; \
                SHLIB_SOVER=; \
@@ -49,7 +49,7 @@ $NetBSD$
 -              NOALLSYMSFLAGS='-none'; \
 +              ALLSYMSFLAGS="$${WL}-all"; \
 +              NOALLSYMSFLAGS="$${WL}-none"; \
-               SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared"; \
+               SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared 
-Wl,-B,symbolic"; \
                if [ -n "$$SHLIB_HIST" ]; then \
 -                      SHAREDFLAGS="$$SHAREDFLAGS -set_version $$SHLIB_HIST"; \
 +                      SHAREDFLAGS="$$SHAREDFLAGS 
$${WL}-set_version$${DELIM}$$SHLIB_HIST"; \
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss


Home | Main Index | Thread Index | Old Index