Closed pvi-github closed 3 years ago
Hi @pvi-github, thanks for opening this issue, and I'm sorry you're having issues.
I'm unable to reproduce this on Ubuntu Linux, so this may be something specific to Mageia (which I'm not very familiar with).
I'll keep trying to reproduce, but in the meantime, can you please paste the output from nokogiri -v
so we can see how Nokogiri was built?
Hello @flavorjones,
thanks for the quick answer.
Here is the output on mageia 7 :
$ nokogiri -v
# Nokogiri (1.11.1)
---
warnings: []
nokogiri:
version: 1.11.1
cppflags:
- "-I/home/git/.gem/ruby/2.5.0/gems/nokogiri-1.11.1-x86_64-linux/ext/nokogiri"
- "-I/home/git/.gem/ruby/2.5.0/gems/nokogiri-1.11.1-x86_64-linux/ext/nokogiri/include"
- "-I/home/git/.gem/ruby/2.5.0/gems/nokogiri-1.11.1-x86_64-linux/ext/nokogiri/include/libxml2"
ruby:
version: 2.5.8
platform: x86_64-linux
gem_platform: x86_64-linux
description: ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-linux]
engine: ruby
libxml:
source: packaged
precompiled: true
patches:
- 0001-Revert-Do-not-URI-escape-in-server-side-includes.patch
- 0002-Remove-script-macro-support.patch
- 0003-Update-entities-to-remove-handling-of-ssi.patch
- 0004-libxml2.la-is-in-top_builddir.patch
- 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch
- 0006-htmlParseComment-treat-as-if-it-closed-the-comment.patch
- 0007-use-new-htmlParseLookupCommentEnd-to-find-comment-en.patch
- '0008-use-glibc-strlen.patch'
- '0009-avoid-isnan-isinf.patch'
libxml2_path: "/home/git/.gem/ruby/2.5.0/gems/nokogiri-1.11.1-x86_64-linux/ext/nokogiri"
iconv_enabled: true
compiled: 2.9.10
loaded: 2.9.10
libxslt:
source: packaged
precompiled: true
patches: []
compiled: 1.1.34
loaded: 1.1.34
other_libraries:
zlib: 1.2.11
And on Mageia 8 :
$ ~/bin/nokogiri -v
# Nokogiri (1.11.1)
---
warnings: []
nokogiri:
version: 1.11.1
cppflags:
- "-I/home/git/.gem/ruby/gems/nokogiri-1.11.1-x86_64-linux/ext/nokogiri"
- "-I/home/git/.gem/ruby/gems/nokogiri-1.11.1-x86_64-linux/ext/nokogiri/include"
- "-I/home/git/.gem/ruby/gems/nokogiri-1.11.1-x86_64-linux/ext/nokogiri/include/libxml2"
ruby:
version: 2.7.2
platform: x86_64-linux
gem_platform: x86_64-linux
description: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
engine: ruby
libxml:
source: packaged
precompiled: true
patches:
- 0001-Revert-Do-not-URI-escape-in-server-side-includes.patch
- 0002-Remove-script-macro-support.patch
- 0003-Update-entities-to-remove-handling-of-ssi.patch
- 0004-libxml2.la-is-in-top_builddir.patch
- 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch
- 0006-htmlParseComment-treat-as-if-it-closed-the-comment.patch
- 0007-use-new-htmlParseLookupCommentEnd-to-find-comment-en.patch
- '0008-use-glibc-strlen.patch'
- '0009-avoid-isnan-isinf.patch'
libxml2_path: "/home/git/.gem/ruby/gems/nokogiri-1.11.1-x86_64-linux/ext/nokogiri"
iconv_enabled: true
compiled: 2.9.10
loaded: 2.9.10
libxslt:
source: packaged
precompiled: true
patches: []
compiled: 1.1.34
loaded: 1.1.34
other_libraries:
zlib: 1.2.11
@pvi-github OK, I'm able to reproduce this -- but ONLY if I have libxml2-devel
and libxslt-devel
installed. I'm not familiar enough with Mageia to have a theory as to why this would be. Any ideas?
extconf.rb has $LDFLAGS.gsub!('-Wl,--no-undefined', '')
but it also needs $DLDFLAGS.gsub!('-Wl,--no-undefined', '')
Is one of those causing -Wl,--no-undefined
to be added to the link line?
(I was too slow!)
I'm not familiar with DLDFLAGS
, but that certainly seems easy enough to try!
I am not familiar either but I found it coming from there in the Makefile :)
@pterjan Nailed it! That works. I'll create a PR now.
You rock guys B-)
@flavorjones Can you release a tagged version for this please so that it can be used with gem ?
There are a few more fixes I'd like to get into the next release, but my goal is to ship it (potentially with @stevecheckoway's help) in the next few days.
I’m happy to help however I can.
@pvi-github Version 2.0.5 just shipped with this fix. Thanks for your patience!
Hello,
Tested on various linux distributions.
Here is the symptom on Mageia :
It seems that the link with nokoguri is not made no matter if nokoguriwas installed with the system installer or with gem install
Tested and failed with nokogumbo v 2.0.2, 2.0.3, 2.0.4 on ruby 2.7.2 + gem 3.1.4 and ruby 2.5.8 + gem 2.6.14
All failed