ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:113195] [Ruby master Bug#19592] Unable to statically link a single extension in 3.2.x and >3.1.4
@ 2023-04-12 13:48 npic1 (Nat Pic1) via ruby-core
  2023-04-14  7:37 ` [ruby-core:113247] [Ruby master Bug#19592] Unable to statically link a single extension in 3.2.x and >=3.1.4 npic1 (Nat Pic1) via ruby-core
  2024-04-07  5:41 ` [ruby-core:117450] " nagachika (Tomoyuki Chikanaga) via ruby-core
  0 siblings, 2 replies; 3+ messages in thread
From: npic1 (Nat Pic1) via ruby-core @ 2023-04-12 13:48 UTC (permalink / raw
  To: ruby-core; +Cc: npic1 (Nat Pic1)

Issue #19592 has been reported by npic1 (Nat Pic1).

----------------------------------------
Bug #19592: Unable to statically link a single extension in 3.2.x and >3.1.4
https://bugs.ruby-lang.org/issues/19592

* Author: npic1 (Nat Pic1)
* Status: Open
* Priority: Normal
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
Hi,
I need to statically link a single extension (not all of them) by adding it to ext/Setup.
This worked until version 3.1.4 and 3.2.x. 

It appears that this change broke it: 
[https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/790cf4b6d0475614afb127b416e87cfa39044d67](https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/790cf4b6d0475614afb127b416e87cfa39044d67)
[https://github.com/ruby/ruby/pull/6756](https://github.com/ruby/ruby/pull/6756).

I have attached a script to reproduce the issue.

When running the script, `ldd` fails with:
```
ext/extinit.o: in function `Init_ext':
extinit.c:(.text+0x10): undefined reference to `ruby_init_ext'
```



---Files--------------------------------
ruby_static_test.sh (1.57 KB)


-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:113247] [Ruby master Bug#19592] Unable to statically link a single extension in 3.2.x and >=3.1.4
  2023-04-12 13:48 [ruby-core:113195] [Ruby master Bug#19592] Unable to statically link a single extension in 3.2.x and >3.1.4 npic1 (Nat Pic1) via ruby-core
@ 2023-04-14  7:37 ` npic1 (Nat Pic1) via ruby-core
  2024-04-07  5:41 ` [ruby-core:117450] " nagachika (Tomoyuki Chikanaga) via ruby-core
  1 sibling, 0 replies; 3+ messages in thread
From: npic1 (Nat Pic1) via ruby-core @ 2023-04-14  7:37 UTC (permalink / raw
  To: ruby-core; +Cc: npic1 (Nat Pic1)

Issue #19592 has been updated by npic1 (Nat Pic1).


npic1 (Nat Pic1) wrote:
> Hi,
> I need to statically link a single extension (not all of them) by adding it to ext/Setup.
> This worked until version 3.1.4 and 3.2.x. 
> 
> It appears that this change broke it: 
> [https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/790cf4b6d0475614afb127b416e87cfa39044d67](https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/790cf4b6d0475614afb127b416e87cfa39044d67)
> [https://github.com/ruby/ruby/pull/6756](https://github.com/ruby/ruby/pull/6756).
> 
> I have attached a script to reproduce the issue.
> 
> When running the script, `ldd` fails with:
> ```
> ext/extinit.o: in function `Init_ext':
> extinit.c:(.text+0x10): undefined reference to `ruby_init_ext'
> ```


cc: @alanwu

----------------------------------------
Bug #19592: Unable to statically link a single extension in 3.2.x and >=3.1.4
https://bugs.ruby-lang.org/issues/19592#change-102802

* Author: npic1 (Nat Pic1)
* Status: Open
* Priority: Normal
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
Hi,
I need to statically link a single extension (not all of them) by adding it to ext/Setup.
This worked until version 3.1.4 and 3.2.x. 

It appears that this change broke it: 
[https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/790cf4b6d0475614afb127b416e87cfa39044d67](https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/790cf4b6d0475614afb127b416e87cfa39044d67)
[https://github.com/ruby/ruby/pull/6756](https://github.com/ruby/ruby/pull/6756).

I have attached a script to reproduce the issue.

When running the script, `ldd` fails with:
```
ext/extinit.o: in function `Init_ext':
extinit.c:(.text+0x10): undefined reference to `ruby_init_ext'
```



---Files--------------------------------
ruby_static_test.sh (1.57 KB)


-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:117450] [Ruby master Bug#19592] Unable to statically link a single extension in 3.2.x and >=3.1.4
  2023-04-12 13:48 [ruby-core:113195] [Ruby master Bug#19592] Unable to statically link a single extension in 3.2.x and >3.1.4 npic1 (Nat Pic1) via ruby-core
  2023-04-14  7:37 ` [ruby-core:113247] [Ruby master Bug#19592] Unable to statically link a single extension in 3.2.x and >=3.1.4 npic1 (Nat Pic1) via ruby-core
@ 2024-04-07  5:41 ` nagachika (Tomoyuki Chikanaga) via ruby-core
  1 sibling, 0 replies; 3+ messages in thread
From: nagachika (Tomoyuki Chikanaga) via ruby-core @ 2024-04-07  5:41 UTC (permalink / raw
  To: ruby-core; +Cc: nagachika (Tomoyuki Chikanaga)

Issue #19592 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 3.1: REQUIRED, 3.2: REQUIRED to 3.1: REQUIRED, 3.2: DONE

ruby_3_2 baa5bc16c17e3b4dac7b590ed5d6b7e705535e15 merged revision(s) adaff1fc496b6f01fb1c4c812b9b4082618e2f79.

----------------------------------------
Bug #19592: Unable to statically link a single extension in 3.2.x and >=3.1.4
https://bugs.ruby-lang.org/issues/19592#change-107834

* Author: npic1 (Nat Pic1)
* Status: Closed
* Backport: 3.1: REQUIRED, 3.2: DONE
----------------------------------------
Hi,
I need to statically link a single extension (not all of them) by adding it to ext/Setup.
This worked until version 3.1.4 and 3.2.x. 

It appears that this change broke it: 
[https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/790cf4b6d0475614afb127b416e87cfa39044d67](https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/790cf4b6d0475614afb127b416e87cfa39044d67)
[https://github.com/ruby/ruby/pull/6756](https://github.com/ruby/ruby/pull/6756).

I have attached a script to reproduce the issue.

When running the script, `ldd` fails with:
```
ext/extinit.o: in function `Init_ext':
extinit.c:(.text+0x10): undefined reference to `ruby_init_ext'
```



---Files--------------------------------
ruby_static_test.sh (1.57 KB)


-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-07  5:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-12 13:48 [ruby-core:113195] [Ruby master Bug#19592] Unable to statically link a single extension in 3.2.x and >3.1.4 npic1 (Nat Pic1) via ruby-core
2023-04-14  7:37 ` [ruby-core:113247] [Ruby master Bug#19592] Unable to statically link a single extension in 3.2.x and >=3.1.4 npic1 (Nat Pic1) via ruby-core
2024-04-07  5:41 ` [ruby-core:117450] " nagachika (Tomoyuki Chikanaga) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).