Bug 971821 - vzctl-4.3.1-2.fc18 is FTBFS
Summary: vzctl-4.3.1-2.fc18 is FTBFS
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: vzctl
Version: 18
Hardware: s390x
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Glauber Costa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker
TreeView+ depends on / blocked
 
Reported: 2013-06-07 10:43 UTC by Dan Horák
Modified: 2013-06-18 01:38 UTC (History)
2 users (show)

Fixed In Version: vzctl-4.3.1-3.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-16 06:08:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Fix compilation on architectures without support for VZ (1.12 KB, patch)
2013-06-07 11:20 UTC, Andrey Vagin
no flags Details | Diff
Fix compilation on architectures without support for VZ (404 bytes, patch)
2013-06-07 11:23 UTC, Andrey Vagin
no flags Details | Diff

Description Dan Horák 2013-06-07 10:43:27 UTC
current vzctl fails to build on s390x with

...
  CCLD   arpsend
  CCLD   ndsend
  CCLD   vzcalc
  CCLD   vzcfgvalidate
  CCLD   vzcptcheck
lib/.libs/libvzctl.so: undefined reference to `clean_hardlink_dir'
collect2: error: ld returned 1 exit status
make[2]: *** [vzcalc] Error 1
make[2]: *** Waiting for unfinished jobs....
lib/.libs/libvzctl.so: undefined reference to `clean_hardlink_dir'
collect2: error: ld returned 1 exit status
make[2]: *** [vzcfgvalidate] Error 1
...

The clean_hardlink_dir() function is defined in lib/hooks_vz.c, but this file is compiled only when the kernel support for VZ exists ("if HAVE_VZ_KERNEL" is in Makefile.am).

Version-Release number of selected component (if applicable):
vzctl-4.3.1-2.fc18

Comment 1 Andrey Vagin 2013-06-07 11:20:32 UTC
Created attachment 758136 [details]
Fix compilation on architectures without support for VZ

Dan, thank you for the report. Could you try out this patch?

Comment 2 Andrey Vagin 2013-06-07 11:23:25 UTC
Created attachment 758138 [details]
Fix compilation on architectures without support for VZ

Comment 3 Dan Horák 2013-06-07 11:52:13 UTC
(In reply to Andrey Vagin from comment #2)
> Created attachment 758138 [details]
> Fix compilation on architectures without support for VZ

yes, this patch fixes the build. Maybe there would be a better place for the fallback implementation of clean_hardlink_dir() as there are 2 places where it is used - env.c and cpt.c.

Comment 4 Andrey Vagin 2013-06-07 11:59:32 UTC
clean_hardlink_dir makes sense only for VZ kernel. Actually not all VZ specific functionality is moved out in hooks_vz, when this work will be completed, we will remove this workaround.

Comment 5 Dan Horák 2013-06-07 13:12:16 UTC
(In reply to Andrey Vagin from comment #4)
> clean_hardlink_dir makes sense only for VZ kernel. Actually not all VZ
> specific functionality is moved out in hooks_vz, when this work will be
> completed, we will remove this workaround.

no objections :-) Are you going to build updates packages with this workaround included or should I take care of it?

Comment 6 Fedora Update System 2013-06-07 18:14:09 UTC
vzctl-4.3.1-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/vzctl-4.3.1-3.fc18

Comment 7 Fedora Update System 2013-06-07 18:14:18 UTC
vzctl-4.3.1-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/vzctl-4.3.1-3.fc19

Comment 8 Fedora Update System 2013-06-08 02:58:55 UTC
Package vzctl-4.3.1-3.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing vzctl-4.3.1-3.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-10371/vzctl-4.3.1-3.fc19
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2013-06-16 06:08:30 UTC
vzctl-4.3.1-3.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2013-06-18 01:38:01 UTC
vzctl-4.3.1-3.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.