Any way to avoid linking against libssl/libcrypto in latest version 2.1.3?

89 views
Skip to first unread message

Houzuo Guo

unread,
Jan 24, 2018, 4:44:56 AM1/24/18
to phantomjs
Good day.

So glad to see PhantomJS coming back to life!

I've been using PhantomJS 2.1.1 for a while and it is absolutely capable of browsing all kinds of TLS-enabled sites, despite that the executable itself is not linked against libssl/libcrypto:

        linux-vdso.so.1 (0x00007ffd354d1000)
        libz.so.1 => /lib64/libz.so.1 (0x00007fbb1ff38000)
        libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007fbb1fcf3000)
        libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fbb1fa55000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fbb1f851000)
        librt.so.1 => /lib64/librt.so.1 (0x00007fbb1f649000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fbb1f42b000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fbb1f0a3000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fbb1ed58000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fbb1eb41000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fbb1e787000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fbb2014f000)
        libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007fbb1e555000)
        libbz2.so.1 => /usr/lib64/libbz2.so.1 (0x00007fbb1e338000)
        libpng16.so.16 => /usr/lib64/libpng16.so.16 (0x00007fbb1e0f5000)

With the latest release 2.1.3 however, the executable is now dynamically linked against libssl and libcrypto:

        ./phantomjs: /usr/lib64/libssl.so.1.0.0: version `OPENSSL_1.0.0' not found (required by ./phantomjs)
        ./phantomjs: /usr/lib64/libcrypto.so.1.0.0: version `OPENSSL_1.0.0' not found (required by ./phantomjs)

The trouble is that I have to run phantomjs across a diverse selection of Linux distributions, and not all of them satisfy those library dependencies.

So would there be a way to build PhantomJS without linking to those libraries, and still be able to browse TLS-enabled sites with the result executable?

Many thanks.

Kind regards,
Howard

Aaron S. Hawley

unread,
Jan 24, 2018, 8:47:23 AM1/24/18
to phan...@googlegroups.com
There are a lot of people on this mailing list, so this is probably
better taken up on the phantomjs-dev mailing list, or as an issue in
the repo:

https://github.com/ariya/phantomjs/issues/new
> --
> You received this message because you are subscribed to the Google Groups
> "phantomjs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phantomjs+...@googlegroups.com.
> Visit this group at https://groups.google.com/group/phantomjs.
> For more options, visit https://groups.google.com/d/optout.



--
In general, we reserve the right to have a poor
memory--the computer, however, is supposed to
remember! Poor computer. -- Guy Lewis Steele Jr.
Reply all
Reply to author
Forward
0 new messages