Summary: | USE="anacron" emerge cronie - readtab.c:33:21: fatal error: obstack.h: No such file or directory- on musl system | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Amadeusz Sławiński <amade> |
Component: | Current packages | Assignee: | Anthony Basile <blueness> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
musl-obstack-cflags.patch |
Description
Amadeusz Sławiński
2018-06-23 16:14:38 UTC
Can you test the following ebuild and tell me if it works. If it does, I'll move it from the overlay to the tree. https://github.com/gentoo/musl/commit/1e32d2f6293bbb06bdd23f8bc4ac5d84f56c2b01 even with obstack installed and -lobstack in LDFLAGS it still fails x86_64-gentoo-linux-musl-gcc -I.. -O2 -pipe -Wl,-O1 -Wl,--as-needed -lobstack -o anacron gregor.o lock.o log.o main.o matchrx.o readtab.o runjob.o -lpam -ldl readtab.o: In function `read_tab': readtab.c:(.text+0x2e3): undefined reference to `_obstack_begin' readtab.c:(.text+0x2fd): undefined reference to `_obstack_begin' readtab.c:(.text+0x3ec): undefined reference to `_obstack_newchunk' readtab.c:(.text+0x523): undefined reference to `obstack_free' readtab.c:(.text+0x53c): undefined reference to `_obstack_newchunk' readtab.c:(.text+0x71d): undefined reference to `_obstack_newchunk' readtab.c:(.text+0x795): undefined reference to `_obstack_newchunk' readtab.c:(.text+0xc01): undefined reference to `_obstack_newchunk' readtab.c:(.text+0xc3b): undefined reference to `_obstack_newchunk' readtab.o:readtab.c:(.text+0xefa): more undefined references to `_obstack_newchunk' follow collect2: error: ld returned 1 exit status I only managed to compile it with this use elibc_musl && append-cflags "-lobstack" Created attachment 536988 [details, diff] musl-obstack-cflags.patch this is patch for commit https://github.com/gentoo/musl/commit/1e32d2f6293bbb06bdd23f8bc4ac5d84f56c2b01 Updated ebuild works. its in the tree ~arch and in the overlay stabilized for all arches supported on musl |