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