I think you should use -static for LDAP build too.

понедельник, 23 июля 2012 г., 8:50:03 UTC+4 пользователь 文冰华佗 написал:
>
> if I use node.js install by default.
> node will make some system link
> mars@titan:~/Downloads/node-v0.8.3$ ldd node
> linux-vdso.so.1 =>  (0x00007fff0faba000)
> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f12d9837000)
> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f12d9633000)
> libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 
> (0x00007f12d9332000)
> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f12d9038000)
> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f12d8e22000)
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
> (0x00007f12d8c04000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f12d8847000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f12d9a58000)
>
> so I only change build configure in common.gypi
>       [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
>         'cflags': [ '-Wall', '-pthread', ],
>         'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
>         'ldflags': [ '-pthread', '-static'],
>         'conditions': [
>
> on the other hands, I am really sure, there is only node 0.8.3 in my 
> system. no 0.4 0.6
>
>
> On Sunday, July 22, 2012 8:51:24 PM UTC+8, Oleg Efimov (Sannis) wrote:
>>
>> Looks like some misunderstand happened in this thread.
>>
>> If you need static-linker executable that does not rely on system 
>> libraries, you should use
>>
>> $> ./configure
>> $> make & sudo make install
>>
>> Node.js builds statically by default.
>>
>> "undefined symbol: ev_default_loop_ptr" error message may be in case you 
>> use different node version installed and that was installed when you 
>> compile LDAP module. Node addons are not binary compatible across 
>> 0.4-0.6-0.8 node versions.
>>
>> пятница, 20 июля 2012 г., 20:44:09 UTC+4 пользователь 文冰华佗 написал:
>>>
>>> I find nodejs module [email protected], use it, works great.
>>>
>>> but my prod env need static complie node, so...I compile nodejs --static
>>>
>>> ldd /usr/local/bin/node
>>>     not a dynamic executable
>>>
>>> run server...
>>> Error: /home/mars/node_modules/LDAP/build/Release/LDAP.node: undefined 
>>> symbol: ev_default_loop_ptr, node was compiled --static
>>>
>>> if nodejs compiled dynamicly,  LDAP module works well, very very well
>>>
>>> Puzzle~~~~
>>>
>>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to