Re: [v8-users] Undefined reference to v8::platform::NewDefaultPlatform

2018-01-02 Thread Zac Hansen
The problem is that when you *compile* with libstdc++ when building against the v8 external API header, it generates object files looking for symbols with the libstdc++ names. At that point there's no winning because you have v8 libs which need libc++ and your object files which need libstdc++.

Re: [v8-users] Undefined reference to v8::platform::NewDefaultPlatform

2018-01-02 Thread Bogdan Padalko
Indeed. By "relocation" I mean that it was built using one stdlib and moved to the system with another one, but I agree that it's more correct to name as stdlib issue rather then relocation issue. I tried to link with libc++.so that generated by v8 build, though, no luck with it for some

Re: [v8-users] Undefined reference to v8::platform::NewDefaultPlatform

2018-01-01 Thread Zac Hansen
It's not a "relocation" issue, I'm pretty sure -- it's a stdlib issue. It looks like the first symbol was from libc++ (the __1 gives it away) and the second was most likely from libstdc++. <== just a guess but pretty consistent with stuff I've seen before. On Monday, January 1, 2018 at

Re: [v8-users] Undefined reference to v8::platform::NewDefaultPlatform

2018-01-01 Thread Ben Noordhuis
On Mon, Jan 1, 2018 at 3:00 PM, Bogdan Padalko wrote: > Hi Zac, thanks for the quick reply! > > Here's what I see in library: > > $ objdump -T /opt/libv8-6.5/lib/libv8_libplatform.so | grep NewDefault > a850 gDF .text012e Base >

Re: [v8-users] Undefined reference to v8::platform::NewDefaultPlatform

2017-12-31 Thread Zac Hansen
If you look at the symbols in your libs is it in there anywhere? On Saturday, December 30, 2017 at 10:01:28 AM UTC-8, Bogdan Padalko wrote: > > Thanks for quick reply! Unfortunately, it's the same. I ended up with > hello world example after to trying out to use NewDefaultPlatform with > php-v8

Re: [v8-users] Undefined reference to v8::platform::NewDefaultPlatform

2017-12-30 Thread Bogdan Padalko
Thanks for quick reply! Unfortunately, it's the same. I ended up with hello world example after to trying out to use NewDefaultPlatform with php-v8 (https://github.com/pinepain/php-v8/blob/53a562e10c23e5f835b2ccdb20967f9c4aef529e/src/php_v8_a.cc#L34), which yield me there

Re: [v8-users] Undefined reference to v8::platform::NewDefaultPlatform

2017-12-30 Thread Ben Noordhuis
On Sat, Dec 30, 2017 at 5:54 PM, Bogdan Padalko wrote: > Hi! > > I'm trying to adapt changes from > https://github.com/v8/v8/commit/ffee558e14e28fc8b1f9a3c10ea3615e0d686c7b to > replace CreateDefaultPlatform with NewDefaultPlatform calls, however, for > some reason I'm

[v8-users] Undefined reference to v8::platform::NewDefaultPlatform

2017-12-30 Thread Bogdan Padalko
Hi! I'm trying to adapt changes from https://github.com/v8/v8/commit/ffee558e14e28fc8b1f9a3c10ea3615e0d686c7b to replace CreateDefaultPlatform with NewDefaultPlatform calls, however, for some reason I'm getting /home/vagrant/php-v8/scripts/test_v8/hello_world.cpp:21: undefined reference to