Subject: Re: pkg/28787: security/openssl broken on 1.6 PowerPC and i386
To: Johnny C. Lam <jlam@netbsd.org>
From: John Klos <john@ziaspace.com>
List: pkgsrc-bugs
Date: 12/26/2004 15:19:30
> I believe this is working correctly for i386, but I need to see the
> .work.log file on macppc to see what's going on.

Here's where it fails on m68k (essentially, the same as ppc):

gcc -I. -I.. -I../include bsd-gcc-shared -DOPENSSL_NO_KRB5 
-DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -O2 -m68060 -O2 
-DTERMIOS -O2 -m68020-40 -Wall -DB_ENDIAN    -c -o cryptlib.o cryptlib.c
gcc: cannot specify -o with -c or -S and multiple compilations
gmake[1]: *** [cryptlib.o] Error 1

And the work log (pretty much the same):

[*] /usr/pkgsrc/security/openssl/work/.wrapper/bin/gcc -dumpversion
     (wrapper.sh) append args: -I/usr/pkgsrc/security/openssl/work/.buildlink/include -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
     (arg-source) push: -dumpversion
     (arg-source) push: -I/usr/pkgsrc/security/openssl/work/.buildlink/include
     (arg-source) push: -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
     (logic) pop:  -dumpversion
     (logic) to:   -dumpversion
     (logic) push: -dumpversion
     (logic) pop:  -I/usr/pkgsrc/security/openssl/work/.buildlink/include
     (logic) to:   -I/usr/pkgsrc/security/openssl/work/.buildlink/include
     (logic) push: -I/usr/pkgsrc/security/openssl/work/.buildlink/include
     (logic) pop:  -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
     (logic) to:   -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
     (logic) push: -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
     (cmd-sink) pop: -dumpversion
     (cmd-sink) pop: -I/usr/pkgsrc/security/openssl/work/.buildlink/include
     (cmd-sink) pop: -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
<.> /usr/pkgsrc/security/openssl/work/.gcc/bin/gcc -dumpversion -I/usr/pkgsrc/security/openssl/work/.buildlink/include -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
[*] /usr/pkgsrc/security/openssl/work/.wrapper/bin/gcc -I. -I.. -I../include bsd-gcc-shared -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -O2 -m68060 -O2 -DTERMIOS -O2 -m68020-40 -Wall -DB_ENDIAN -c -o cryptlib.o cryptlib.c
     (wrapper.sh) append args: -I/usr/pkgsrc/security/openssl/work/.buildlink/include -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
     (arg-source) push: -I.
     (arg-source) push: -I..
     (arg-source) push: -I../include
     (arg-source) push: bsd-gcc-shared
     (arg-source) push: -DOPENSSL_NO_KRB5
     (arg-source) push: -DOPENSSL_NO_IDEA
     (arg-source) push: -DOPENSSL_NO_RC5
     (arg-source) push: -DOPENSSL_NO_MDC2
     (arg-source) push: -O2
     (arg-source) push: -m68060
     (arg-source) push: -O2
     (arg-source) push: -DTERMIOS
     (arg-source) push: -O2
     (arg-source) push: -m68020-40
     (arg-source) push: -Wall
     (arg-source) push: -DB_ENDIAN
     (arg-source) push: -c
     (arg-source) push: -o
     (arg-source) push: cryptlib.o
     (arg-source) push: cryptlib.c
     (arg-source) push: -I/usr/pkgsrc/security/openssl/work/.buildlink/include
     (arg-source) push: -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
     (logic) pop:  -I.
     (logic) to:   -I.
     (logic) push: -I.
     (logic) pop:  -I..
     (logic) to:   -I..
     (logic) push: -I..
     (logic) pop:  -I../include
     (logic) to:   -I../include
     (logic) push: -I../include
     (logic) pop:  bsd-gcc-shared
     (logic) to:   bsd-gcc-shared [untransformed]
     (logic) push: bsd-gcc-shared
     (logic) pop:  -DOPENSSL_NO_KRB5
     (logic) to:   -DOPENSSL_NO_KRB5
     (logic) push: -DOPENSSL_NO_KRB5
     (logic) pop:  -DOPENSSL_NO_IDEA
     (logic) to:   -DOPENSSL_NO_IDEA
     (logic) push: -DOPENSSL_NO_IDEA
     (logic) pop:  -DOPENSSL_NO_RC5
     (logic) to:   -DOPENSSL_NO_RC5
     (logic) push: -DOPENSSL_NO_RC5
     (logic) pop:  -DOPENSSL_NO_MDC2
     (logic) to:   -DOPENSSL_NO_MDC2
     (logic) push: -DOPENSSL_NO_MDC2
     (logic) pop:  -O2
     (logic) to:   -O2
     (logic) push: -O2
     (logic) pop:  -m68060
     (logic) to:   -m68060
     (logic) push: -m68060
     (logic) pop:  -O2
     (logic) to:   -O2 [cached]
     (logic) push: -O2
     (logic) pop:  -DTERMIOS
     (logic) to:   -DTERMIOS
     (logic) push: -DTERMIOS
     (logic) pop:  -O2
     (logic) to:   -O2 [cached]
     (logic) push: -O2
     (logic) pop:  -m68020-40
     (logic) to:   -m68020-40
     (logic) push: -m68020-40
     (logic) pop:  -Wall
     (logic) to:   -Wall
     (logic) push: -Wall
     (logic) pop:  -DB_ENDIAN
     (logic) to:   -DB_ENDIAN
     (logic) push: -DB_ENDIAN
     (logic) pop:  -c
     (logic) to:   -c
     (logic) push: -c
     (logic) pop:  -o
     (logic) to:   -o
     (logic) push: -o
     (logic) pop:  cryptlib.o
     (logic) push: cryptlib.o
     (logic) pop:  cryptlib.c
     (logic) to:   cryptlib.c [untransformed]
     (logic) push: cryptlib.c
     (logic) pop:  -I/usr/pkgsrc/security/openssl/work/.buildlink/include
     (logic) to:   -I/usr/pkgsrc/security/openssl/work/.buildlink/include [cached]
     (logic) push: -I/usr/pkgsrc/security/openssl/work/.buildlink/include
     (logic) pop:  -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
     (logic) to:   -L/usr/pkgsrc/security/openssl/work/.buildlink/lib [cached]
     (logic) push: -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
     (cmd-sink) pop: -I.
     (cmd-sink) pop: -I..
     (cmd-sink) pop: -I../include
     (cmd-sink) pop: bsd-gcc-shared
     (cmd-sink) pop: -DOPENSSL_NO_KRB5
     (cmd-sink) pop: -DOPENSSL_NO_IDEA
     (cmd-sink) pop: -DOPENSSL_NO_RC5
     (cmd-sink) pop: -DOPENSSL_NO_MDC2
     (cmd-sink) pop: -O2
     (cmd-sink) pop: -m68060
     (cmd-sink) pop: -O2
     (cmd-sink) pop: -DTERMIOS
     (cmd-sink) pop: -O2
     (cmd-sink) pop: -m68020-40
     (cmd-sink) pop: -Wall
     (cmd-sink) pop: -DB_ENDIAN
     (cmd-sink) pop: -c
     (cmd-sink) pop: -o
     (cmd-sink) pop: cryptlib.o
     (cmd-sink) pop: cryptlib.c
     (cmd-sink) pop: -I/usr/pkgsrc/security/openssl/work/.buildlink/include
     (cmd-sink) pop: -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
<.> /usr/pkgsrc/security/openssl/work/.gcc/bin/gcc -I. -I.. -I../include bsd-gcc-shared -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -O2 -m68060 -O2 -DTERMIOS -O2 -m68020-40 -Wall -DB_ENDIAN -c -o cryptlib.o cryptlib.c -I/usr/pkgsrc/security/openssl/work/.buildlink/include -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
[*] /usr/pkgsrc/security/openssl/work/.wrapper/bin/gcc -I. -I.. -I../include bsd-gcc-shared -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -O2 -m68060 -O2 -DTERMIOS -O2 -m68020-40 -Wall -DB_ENDIAN -c -o cryptlib.o cryptlib.c
     (wrapper.sh) append args: -I/usr/pkgsrc/security/openssl/work/.buildlink/include -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
     (arg-source) push: -I.
     (arg-source) push: -I..
     (arg-source) push: -I../include
     (arg-source) push: bsd-gcc-shared
     (arg-source) push: -DOPENSSL_NO_KRB5
     (arg-source) push: -DOPENSSL_NO_IDEA
     (arg-source) push: -DOPENSSL_NO_RC5
     (arg-source) push: -DOPENSSL_NO_MDC2
     (arg-source) push: -O2
     (arg-source) push: -m68060
     (arg-source) push: -O2
     (arg-source) push: -DTERMIOS
     (arg-source) push: -O2
     (arg-source) push: -m68020-40
     (arg-source) push: -Wall
     (arg-source) push: -DB_ENDIAN
     (arg-source) push: -c
     (arg-source) push: -o
     (arg-source) push: cryptlib.o
     (arg-source) push: cryptlib.c
     (arg-source) push: -I/usr/pkgsrc/security/openssl/work/.buildlink/include
     (arg-source) push: -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
     (logic) pop:  -I.
     (logic) to:   -I. [cached]
     (logic) push: -I.
     (logic) pop:  -I..
     (logic) to:   -I.. [cached]
     (logic) push: -I..
     (logic) pop:  -I../include
     (logic) to:   -I../include [cached]
     (logic) push: -I../include
     (logic) pop:  bsd-gcc-shared
     (logic) to:   bsd-gcc-shared [untransformed]
     (logic) push: bsd-gcc-shared
     (logic) pop:  -DOPENSSL_NO_KRB5
     (logic) to:   -DOPENSSL_NO_KRB5 [cached]
     (logic) push: -DOPENSSL_NO_KRB5
     (logic) pop:  -DOPENSSL_NO_IDEA
     (logic) to:   -DOPENSSL_NO_IDEA [cached]
     (logic) push: -DOPENSSL_NO_IDEA
     (logic) pop:  -DOPENSSL_NO_RC5
     (logic) to:   -DOPENSSL_NO_RC5 [cached]
     (logic) push: -DOPENSSL_NO_RC5
     (logic) pop:  -DOPENSSL_NO_MDC2
     (logic) to:   -DOPENSSL_NO_MDC2 [cached]
     (logic) push: -DOPENSSL_NO_MDC2
     (logic) pop:  -O2
     (logic) to:   -O2 [cached]
     (logic) push: -O2
     (logic) pop:  -m68060
     (logic) to:   -m68060 [cached]
     (logic) push: -m68060
     (logic) pop:  -O2
     (logic) to:   -O2 [cached]
     (logic) push: -O2
     (logic) pop:  -DTERMIOS
     (logic) to:   -DTERMIOS [cached]
     (logic) push: -DTERMIOS
     (logic) pop:  -O2
     (logic) to:   -O2 [cached]
     (logic) push: -O2
     (logic) pop:  -m68020-40
     (logic) to:   -m68020-40 [cached]
     (logic) push: -m68020-40
     (logic) pop:  -Wall
     (logic) to:   -Wall [cached]
     (logic) push: -Wall
     (logic) pop:  -DB_ENDIAN
     (logic) to:   -DB_ENDIAN [cached]
     (logic) push: -DB_ENDIAN
     (logic) pop:  -c
     (logic) to:   -c [cached]
     (logic) push: -c
     (logic) pop:  -o
     (logic) to:   -o [cached]
     (logic) push: -o
     (logic) pop:  cryptlib.o
     (logic) push: cryptlib.o
     (logic) pop:  cryptlib.c
     (logic) to:   cryptlib.c [untransformed]
     (logic) push: cryptlib.c
     (logic) pop:  -I/usr/pkgsrc/security/openssl/work/.buildlink/include
     (logic) to:   -I/usr/pkgsrc/security/openssl/work/.buildlink/include [cached]
     (logic) push: -I/usr/pkgsrc/security/openssl/work/.buildlink/include
     (logic) pop:  -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
     (logic) to:   -L/usr/pkgsrc/security/openssl/work/.buildlink/lib [cached]
     (logic) push: -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
     (cmd-sink) pop: -I.
     (cmd-sink) pop: -I..
     (cmd-sink) pop: -I../include
     (cmd-sink) pop: bsd-gcc-shared
     (cmd-sink) pop: -DOPENSSL_NO_KRB5
     (cmd-sink) pop: -DOPENSSL_NO_IDEA
     (cmd-sink) pop: -DOPENSSL_NO_RC5
     (cmd-sink) pop: -DOPENSSL_NO_MDC2
     (cmd-sink) pop: -O2
     (cmd-sink) pop: -m68060
     (cmd-sink) pop: -O2
     (cmd-sink) pop: -DTERMIOS
     (cmd-sink) pop: -O2
     (cmd-sink) pop: -m68020-40
     (cmd-sink) pop: -Wall
     (cmd-sink) pop: -DB_ENDIAN
     (cmd-sink) pop: -c
     (cmd-sink) pop: -o
     (cmd-sink) pop: cryptlib.o
     (cmd-sink) pop: cryptlib.c
     (cmd-sink) pop: -I/usr/pkgsrc/security/openssl/work/.buildlink/include
     (cmd-sink) pop: -L/usr/pkgsrc/security/openssl/work/.buildlink/lib
<.> /usr/pkgsrc/security/openssl/work/.gcc/bin/gcc -I. -I.. -I../include bsd-gcc-shared -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -O2 -m68060 -O2 -DTERMIOS -O2 -m68020-40 -Wall -DB_ENDIAN -c -o cryptlib.o cryptlib.c -I/usr/pkgsrc/security/openssl/work/.buildlink/include -L/usr/pkgsrc/security/openssl/work/.buildlink/lib