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

GLOBAL symbol failure on install #386

Open
coke opened this issue Sep 26, 2022 · 12 comments
Open

GLOBAL symbol failure on install #386

coke opened this issue Sep 26, 2022 · 12 comments

Comments

@coke
Copy link

coke commented Sep 26, 2022

$ zef install --force-install --verbose Whateverable
The following candidates are already installed: Whateverable
===> Searching for: Whateverable
===> Found: Whateverable:ver<1.0.11> [via Zef::Repository::Ecosystems<rea>]
===> Fetching [OK]: Whateverable:ver<1.0.11> to /tmp/.zef/1664227963.10229.4815.0995966892315/Whateverable%3Aver%3C1.0.11%3E%3Aauth%3Cgithub%3ARaku%3E.tar.gz
===> Extraction [OK]: Whateverable to /tmp/.zef/Whateverable%3Aver%3C1.0.11%3E%3Aauth%3Cgithub%3ARaku%3E.tar.gz
===> Testing: Whateverable:ver<1.0.11>
===> Testing [OK] for Whateverable:ver<1.0.11>
===> Installing: Whateverable:ver<1.0.11>
===> Install [FAIL] for Whateverable:ver<1.0.11>: ===SORRY!=== Error while compiling /home/coke/home#sources/FFCE30B7629EBB9BF4F889999F97C35CAC8EA91C (Whateverable)
Merging GLOBAL symbols failed: duplicate definition of symbol SSL
at /home/coke/home#sources/FFCE30B7629EBB9BF4F889999F97C35CAC8EA91C (Whateverable):28

===SORRY!=== Error while compiling /home/coke/home#sources/FFCE30B7629EBB9BF4F889999F97C35CAC8EA91C (Whateverable)
Merging GLOBAL symbols failed: duplicate definition of symbol SSL
at /home/coke/home#sources/FFCE30B7629EBB9BF4F889999F97C35CAC8EA91C (Whateverable):28

... but after failing the install, Whateverable reports as installed (and then I had to force it to run it again to capture this virtually identical output.)

@coke
Copy link
Author

coke commented Oct 4, 2022

As I understand it, this is blocking Blin, which in turn is blocking a Rakudo release.

@coke
Copy link
Author

coke commented Oct 4, 2022

This happens even without installing.

$ raku -I. xbin/Benchable.p6
===SORRY!=== Error while compiling /home/coke/sandbox/whateverable/xbin/Benchable.p6
===SORRY!=== Error while compiling /home/coke/sandbox/whateverable/lib/Whateverable.pm6 (Whateverable)
Merging GLOBAL symbols failed: duplicate definition of symbol SSL
at /home/coke/sandbox/whateverable/lib/Whateverable.pm6 (Whateverable):28

at /home/coke/sandbox/whateverable/xbin/Benchable.p6:19

@coke
Copy link
Author

coke commented Oct 4, 2022

As I understand it, this is blocking Blin, which in turn is blocking a Rakudo release.

This particular issue isn't blocking the release, but it's definitely blocking me setting up Blin so I can run the tests.

@hythm7
Copy link

hythm7 commented Oct 4, 2022

Pinning IRC::Client dependency to IRC::Client:ver<3.007010> (and removing higher versions from repos so it doesn't get loaded) worked for me. The SSL Error no longer shows and installed fine.

May be higher versions of IRC::Client will work, but I was having other dependencies errors, so I did not try other versions, since 3.007010 already worked .

@lizmat
Copy link
Contributor

lizmat commented Oct 4, 2022

Interesting. Could you make an issue for that for IRC::Client?

@hythm7
Copy link

hythm7 commented Oct 4, 2022

Interesting. Could you make an issue for that for IRC::Client?

done lizmat/IRC-Client#66
I'm not sure if its related to IRC::Client or its dependency IO::Socket::Async::SSL.

@AlexDaniel
Copy link
Member

I did not see this issue when working with the bots in 2023. This ticket is still open though: lizmat/IRC-Client#66. I'll keep it open for now, but I think this can be closed.

@coke
Copy link
Author

coke commented Aug 31, 2024

I just hit this again on an ubuntu install with 2024.08 raku. Setting up an azure VM from scratch, the Whateverable install required for Blin dies with the same error. The suggested workaround in the linked ticket above doesn't work, Whateverable doesn't seem to compile with that older version of IRC::Client anymore.

@coke
Copy link
Author

coke commented Aug 31, 2024

Here's golfed code that has the same error:

$ raku -I. -e 'use IRC::Client; use Whateverable::Bits'
===SORRY!=== Error while compiling -e
Merging GLOBAL symbols failed: duplicate definition of symbol SSL
at -e:1

@AlexDaniel
Copy link
Member

AlexDaniel commented Aug 31, 2024

@coke Bits is a relatively small file. The only big thing it imports is Cro::HTTP::Client;. I'm not sure what's going on here and lizmat/IRC-Client#66 is still open. @lizmat maybe you have an idea?

@coke
Copy link
Author

coke commented Aug 31, 2024

Still golfing. Yes, my current golf is:

$ raku -I. -e 'use IRC::Client; use Cro::HTTP::Client'
===SORRY!=== Error while compiling -e
Merging GLOBAL symbols failed: duplicate definition of symbol SSL
at -e:1

Which requires no Whateverable at all.

@coke
Copy link
Author

coke commented Aug 31, 2024

$ raku -I. -e 'use IRC::Client; use IO::Socket::Async::SSL'
===SORRY!=== Error while compiling -e
Merging GLOBAL symbols failed: duplicate definition of symbol SSL
at -e:1

I am unable to reduce this to another module, this appears to be the root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants