Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Build error: multiple definition of `OPENSSL_cpuid_setup' #8462

Closed
ningji2 opened this issue Sep 28, 2014 · 7 comments
Closed

Build error: multiple definition of `OPENSSL_cpuid_setup' #8462

ningji2 opened this issue Sep 28, 2014 · 7 comments

Comments

@ningji2
Copy link

ningji2 commented Sep 28, 2014

flock /keep/node-v0.10.31/out/Release/linker.lock g++ -pthread -rdynamic
-Wl,--whole-archive /keep/node-v0.10.31/out/Release/libopenssl.a
-Wl,--no-whole-archive -Wl,--whole-archive
/keep/node-v0.10.31/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a
-Wl,--no-whole-archive -pthread -o /keep/node-v0.10.31/out/Release/node
-Wl,--start-group
/keep/node-v0.10.31/out/Release/obj.target/node/src/fs_event_wrap.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/cares_wrap.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/handle_wrap.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node_buffer.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node_constants.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node_extensions.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node_file.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node_http_parser.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node_javascript.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node_main.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node_os.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node_script.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node_stat_watcher.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node_string.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node_zlib.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/pipe_wrap.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/signal_wrap.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/string_bytes.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/stream_wrap.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/slab_allocator.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/tcp_wrap.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/timer_wrap.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/tty_wrap.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/process_wrap.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/v8_typed_array.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/udp_wrap.o
/keep/node-v0.10.31/out/Release/obj.target/node/src/node_crypto.o
/keep/node-v0.10.31/out/Release/obj.target/deps/openssl/libopenssl.a
/keep/node-v0.10.31/out/Release/obj.target/deps/zlib/libchrome_zlib.a
/keep/node-v0.10.31/out/Release/obj.target/deps/http_parser/libhttp_parser.a
/keep/node-v0.10.31/out/Release/obj.target/deps/cares/libcares.a
/keep/node-v0.10.31/out/Release/obj.target/deps/uv/libuv.a
/keep/node-v0.10.31/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a
/keep/node-v0.10.31/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a
-Wl,--end-group -lm -ldl -lrt
/keep/node-v0.10.31/out/Release/libopenssl.a(armcap.o): In function
OPENSSL_cpuid_setup': armcap.c:(.text.startup+0x0): multiple definition ofOPENSSL_cpuid_setup'
/keep/node-v0.10.31/out/Release/libopenssl.a(cryptlib.o):cryptlib.c:(.text+0x2d0):
first defined here
/keep/node-v0.10.31/out/Release/libopenssl.a(armcap.o): In function
OPENSSL_rdtsc': armcap.c:(.text+0x2c): undefined reference to_armv7_tick'
/keep/node-v0.10.31/out/Release/libopenssl.a(armcap.o): In function
OPENSSL_cpuid_setup': armcap.c:(.text.startup+0xd8): undefined reference to_armv7_neon_probe'
armcap.c:(.text.startup+0xe8): undefined reference to _armv7_tick' collect2: ld returned 1 exit status make[1]: *** [/keep/node-v0.10.31/out/Release/node] Error 1 make[1]: Leaving directory/keep/node-v0.10.31/out'
make: *** [node] Error 2

i was doing this:

./configure --without-snapshot
make

(note, just do "configure", the build will freeze at snapshot for this arm7
board)

uname -a

Linux utilite-ubuntu-desktop 3.0.35-cm-fx6-6.1 #1 SMP PREEMPT Tue Sep 2
22:27:45 EDT 2014 armv7l armv7l armv7l GNU/Linux

Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

GNU Make 3.81
Python 2.7.3 (default, Feb 27 2014, 21:36:45)

Thanks for your help !

@indutny
Copy link
Member

indutny commented Sep 29, 2014

Give a try to v0.10.32, I think it should be fixed.

@indutny indutny closed this as completed Sep 29, 2014
@ningji2
Copy link
Author

ningji2 commented Sep 29, 2014

Fedor,

The good news is it builds now. i did "make install" successfully as well.
The bad news is, when i just type "node", nothing comes back in my arm
board, it just stays there until did ctrl-c.

Now in the same board, i did "make uninstall", reboot, the node version is
0.6.12.
If i type "node", the node prompt is there ">".
i can also run the very basic "node hello_world.js".

Please let me know if i need to submit another post or now.

Thanks again !

On Mon, Sep 29, 2014 at 1:17 AM, Fedor Indutny notifications@github.com
wrote:

Closed #8462 #8462.


Reply to this email directly or view it on GitHub
#8462 (comment).

@ningji2
Copy link
Author

ningji2 commented Sep 30, 2014

Fedor,

actually this only happens on arm board, not my linux pc.

On the other hand, 0.6.12 seems to be fine.

any suggest appreciated, thanks !

On Mon, Sep 29, 2014 at 1:37 PM, Ning Ji ning883@gmail.com wrote:

Fedor,

The good news is it builds now. i did "make install" successfully as well.
The bad news is, when i just type "node", nothing comes back in my arm
board, it just stays there until did ctrl-c.

Now in the same board, i did "make uninstall", reboot, the node version is
0.6.12.
If i type "node", the node prompt is there ">".
i can also run the very basic "node hello_world.js".

Please let me know if i need to submit another post or now.

Thanks again !

On Mon, Sep 29, 2014 at 1:17 AM, Fedor Indutny notifications@github.com
wrote:

Closed #8462 #8462.


Reply to this email directly or view it on GitHub
#8462 (comment).

@indutny
Copy link
Member

indutny commented Sep 30, 2014

@BiLin Is there any way I could ssh into that box and see what's happening here in details? Also what arm board are you using?

@ningji2
Copy link
Author

ningji2 commented Sep 30, 2014

sure, i'll set it up and let you know, thanks very much !

On Tue, Sep 30, 2014 at 9:51 AM, Fedor Indutny notifications@github.com
wrote:

@BiLin https://github.com/bilin Is there any way I could ssh into that
box and see what's happening here in details? Also what arm board are you
using?


Reply to this email directly or view it on GitHub
#8462 (comment).

@ningji2
Copy link
Author

ningji2 commented Oct 1, 2014

Fedor,

May i ask if this time works for you, 9:00pm ~ 9:00am EST for every night,
i can turn it on.
Let me know, thanks very much !

On Tue, Sep 30, 2014 at 9:51 AM, Fedor Indutny notifications@github.com
wrote:

@BiLin https://github.com/bilin Is there any way I could ssh into that
box and see what's happening here in details? Also what arm board are you
using?


Reply to this email directly or view it on GitHub
#8462 (comment).

@ningji2
Copy link
Author

ningji2 commented Oct 2, 2014

ok, it's up and will be up for days.

ssh user2@108.49.98.138
password: user2

i built the nodejs from ~user2/web:
./configure --without-snapshot
make
sudo make install
then rebooted this board.

To scp from this board to outside world, you may need:
LD_LIBRARY_PATH=/lib/arm-linux-gnueabi scp .........

The problem is "node" command just hangs.
I'll be online till 11:30 pm EST. Then all daytime hours.

Thanks very much !

On Tue, Sep 30, 2014 at 9:51 AM, Fedor Indutny notifications@github.com
wrote:

@BiLin https://github.com/bilin Is there any way I could ssh into that
box and see what's happening here in details? Also what arm board are you
using?


Reply to this email directly or view it on GitHub
#8462 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants