This appears to be the relevant output. It looks like PEM and TXT
files are deleted in addition to C files.

$ make dclean
...
making dclean in apps...
...
making dclean in test...
/opt/local/bin/perl5 -pe 'if (/^# DO NOT DELETE THIS LINE/) {print;
exit(0);}' Makefile >Makefile.new
mv -f Makefile.new Makefile
rm -f bntest.c ectest.c  ecdsatest.c ecdhtest.c ideatest.c md2test.c
md4test.c md5test.c hmactest.c wp_test.c rc2test.c rc4test.c rc5test.c
destest.c shatest.c sha1test.c mdc2test.c rmdtest.c randtest.c
dhtest.c enginetest.c casttest.c bftest.c  ssltest.c dsatest.c
exptest.c rsa_test.c fips_shatest.c fips_desmovs.c fips_randtest.c
fips_aesavs.c fips_hmactest.c fips_rsavtest.c fips_rsastest.c
fips_rsagtest.c fips_gcmtest.c fips_dssvs.c fips_dsatest.c
fips_rngvs.c fips_drbgvs.c fips_test_suite.c fips_dhvs.c
fips_ecdsavs.c fips_ecdhvs.c fips_cmactest.c fips_algvs.c evp_test.c
igetest.c jpaketest.c v3nametest.c gost2814789t.c heartbeat_test.c
p5_crpt2_test.c constant_time_test.c testutil.c sha256t.c sha512t.c
evptests.txt newkey.pem testkey.pem \
            testreq.pem
...
making dclean in tools...
...

On Mon, Aug 25, 2014 at 9:30 PM, Jeffrey Walton <[email protected]> wrote:
> A fresh clone results in duplicate symbols if a "make dclean" is performed:
>
>     duplicate symbol _main in:
>         heartbeat_test.o
>         testutil.o
>     ld: 1 duplicate symbol for architecture x86_64
>
> It appears "make dclean" deletes the test/ directory. After the
> directory is deleted, all hell breaks loose.
>
> One of the folks on Stack Overflow suggested a "git checkout --
> 'test/*.c' ", which appears to resolve the issue. The re-checkout
> needs to be performed after the "make dclean".
>
> **********
>
> git clone git://git.openssl.org/openssl.git openssl-test
> cd openssl-test
>
> # Generate a makefile
> ./config
>
> # Clean everything (git has 630KB+ of developer cruft)
> make clean
> make dclean
>
> # Compile for real (OS X 10.8.5). Options don't matter
> export KERNEL_BITS=64
> ./config no-ssl2 enable-ec_nistp_64_gcc_128
>
> # Compile it. Omitting 'make depend' does not matter
> make depend && make
>
> ...
> duplicate symbol _main in:
>     heartbeat_test.o
>     testutil.o
> ld: 1 duplicate symbol for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> make[2]: *** [link_app.] Error 1
> make[1]: *** [heartbeat_test] Error 2
> make: *** [build_tests] Error 1

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to