Summary: | sys-cluster/vzctl-4.9.4 : config.c:1250:10: error: called object 'major' is not a function or function pointer | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | moonwalker |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 575232 | ||
Attachments: |
config.log
emerge-history.txt environment etc.portage.tbz2 sys-cluster:vzctl-4.9.4:20161231-014709.log |
Description
Toralf Förster
2016-12-31 09:27:14 UTC
Created attachment 458100 [details]
config.log
Created attachment 458102 [details]
emerge-history.txt
Created attachment 458104 [details]
environment
Created attachment 458106 [details]
etc.portage.tbz2
Created attachment 458108 [details]
sys-cluster:vzctl-4.9.4:20161231-014709.log
script mistake, sorry So, if I understand this correctly the simple fix here is to add the line #include <sys/sysmacros.h> to /src/lib/config.c which seems to be a fairly simple operation, if you know how to write a patch for the ebuild adding this... if someone just is willing to post the proper bits here, I'm willing to copy/paste and test it ;-) btw, I opened #633710 as somehow my search never picked up this one, while google did as went for a solution to my problem. Obviously a duplicate... *** Bug 633710 has been marked as a duplicate of this bug. *** Actually, I think I have solved it, probably not the most elegant solution but hey I'm not a C or C++ developer ;-) So I spent some time reading the dev manual and then added a batch of sed calls into src_prepare, injecting #include <sys/sysmacros.h> on line preceeding types.h in all .c and .h files, plus config.guess This is probably not the solution wanted here as a path would probably be better, but it works for me and I just need this package to compile for now as I'm on a tight Monday 10am leach to have my box up an running. Once that's done I may spend some time on testing if all those injections really are needed or not and present a final list of sed injections. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=671e279dc14f829cf52b0bf95df2b4221edf54ba commit 671e279dc14f829cf52b0bf95df2b4221edf54ba Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2017-10-20 21:28:30 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2017-10-20 21:28:30 +0000 sys-cluster/vzctl: Fix build with glibc-2.25, bug 604230 Closes: https://bugs.gentoo.org/604230 Package-Manager: Portage-2.3.12, Repoman-2.3.3 .../vzctl/files/vzctl-4.9.4-glibc225-2.patch | 33 ++++++++++++++++++++++ sys-cluster/vzctl/files/vzctl-4.9.4-glibc225.patch | 11 ++++++++ sys-cluster/vzctl/vzctl-4.9.4.ebuild | 5 +++- 3 files changed, 48 insertions(+), 1 deletion(-) |