Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdnsrec 4.5.1 #77263

Closed
wants to merge 2 commits into from
Closed

Conversation

chenrui333
Copy link
Member

Created with brew bump-formula-pr.

@BrewTestBot BrewTestBot added bump-formula-pr PR was created using `brew bump-formula-pr` lua Lua use is a significant feature of the PR or issue labels May 14, 2021
@chenrui333
Copy link
Member Author

Error: Failed changing rpath in /opt/homebrew/Cellar/pdnsrec/4.5.1/sbin/pdns_recursor
  from /opt/homebrew/opt/boost/lib
    to @@HOMEBREW_PREFIX@@/opt/boost/lib
Error: Unrecognized Mach-O load command: 0x00

@carlocab
Copy link
Member

Error: Failed changing rpath in /opt/homebrew/Cellar/pdnsrec/4.5.1/sbin/pdns_recursor
  from /opt/homebrew/opt/boost/lib
    to @@HOMEBREW_PREFIX@@/opt/boost/lib
Error: Unrecognized Mach-O load command: 0x00

@woodruffw any chance you can take a look at this?

@carlocab
Copy link
Member

The problem seems to be that /usr/local/opt/boost/lib appears several times:

❯ otool -l pdns_recursor | rg -A2 LC_RPATH
          cmd LC_RPATH
      cmdsize 40
         path /usr/local/opt/boost/lib (offset 12)
--
          cmd LC_RPATH
      cmdsize 40
         path /usr/local/opt/boost/lib (offset 12)
--
          cmd LC_RPATH
      cmdsize 40
         path /usr/local/opt/boost/lib (offset 12)

@carlocab
Copy link
Member

Opened an issue at Homebrew/ruby-macho#356.

@carlocab
Copy link
Member

Should be fixed by Homebrew/brew#11387.

@carlocab
Copy link
Member

Fixed in Homebrew/brew#11391. Restarting CI.

@carlocab
Copy link
Member

Hmmm, looks like the fix didn't take.

@carlocab carlocab force-pushed the bump-pdnsrec-4.5.1 branch from 624077e to 47aca72 Compare May 16, 2021 22:45
@carlocab
Copy link
Member

Not sure why, as I can't reproduce the failure locally when I try to use MachO::Tools.change_rpath on it (which is essentially what brew does).

Let's try rebasing and see if that helps (even if I have no idea why it should). Otherwise, we can try deleting those LC_RPATH entries in the install method directly. They're not needed.

@carlocab
Copy link
Member

Ah, wait, no, the error is different:

Error: No such runtime path: /opt/homebrew/opt/boost/lib

I see. This can be fixed.

@carlocab
Copy link
Member

Homebrew/brew#11392

@carlocab
Copy link
Member

Missed the Mojave build failure:

Undefined symbols for architecture x86_64:
  "MOADNSParser::init(bool, std::__1::basic_string_view<char, std::__1::char_traits<char> > const&)", referenced from:
      MOADNSParser::MOADNSParser(bool, char const*, unsigned int) in axfr-retriever.o
      MOADNSParser::MOADNSParser(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ixfr.o
      MOADNSParser::MOADNSParser(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in pdns_recursor.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This was present also in previous runs, and is unrelated to the duplicate RPATH bug.

@carlocab carlocab added 10.14 Mojave is specifically affected build failure CI fails while building the software labels May 17, 2021
@carlocab
Copy link
Member

I think Mojave libc++ is just too old. See also PowerDNS/pdns#10270.

@carlocab
Copy link
Member

Added dependency on Catalina.

@carlocab carlocab removed the build failure CI fails while building the software label May 17, 2021
carlocab
carlocab previously approved these changes May 17, 2021
@carlocab carlocab dismissed their stale review May 17, 2021 11:18

Let's try to get this to build on Mojave first

@carlocab carlocab force-pushed the bump-pdnsrec-4.5.1 branch from fb86b07 to 4883bea Compare May 17, 2021 13:55
carlocab
carlocab previously approved these changes May 17, 2021
@carlocab carlocab added automerge-skip `brew pr-automerge` will skip this pull request and removed 10.14 Mojave is specifically affected labels May 17, 2021
This fails with system Clang.
@carlocab carlocab force-pushed the bump-pdnsrec-4.5.1 branch from 4883bea to b6b8e13 Compare May 17, 2021 14:27
@BrewTestBot BrewTestBot removed the automerge-skip `brew pr-automerge` will skip this pull request label May 17, 2021
@BrewTestBot
Copy link
Member

🤖 A scheduled task has triggered a merge.

@github-actions github-actions bot added the outdated PR was locked due to age label Jun 17, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2021
@chenrui333 chenrui333 deleted the bump-pdnsrec-4.5.1 branch July 3, 2021 21:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` lua Lua use is a significant feature of the PR or issue outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants