Bug 9291 - perl: SysV message queues not configured, even if available
Summary: perl: SysV message queues not configured, even if available
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2016.02
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-22 06:56 UTC by mail2k
Modified: 2017-02-13 20:46 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mail2k 2016-09-22 06:56:14 UTC
Buildroot 2016.02 with perl-5.22.1 compiled for i686-linux:
Problem on the target: 
  perl -e "msgget(90001, 1);"
  msgget not implemented at -e line 1.

This is a configuration error. SysV-IPC is available on the target.
./configure in the perl directory gives the following:
...
Checking for msgctl ... found
Checking for msgget ... found
Checking for msgrcv ... found
Checking for msgsnd ... found
Checking for msync ... found
Checking for munmap ... found
...

Nevertheless, HAS_MSG is not defined in config.h and the message queues are not compiled in.
If I manually define HAS_MSG in config.h and do "make", I get a perl executable with msgget that works on my target. But that is not the way to solve this problem.
Comment 1 Thomas Petazzoni 2016-10-22 20:02:51 UTC
François Perrad, who takes care of the Perl packaging in Buildroot, has reported the issue upstream: https://github.com/arsv/perl-cross/issues/41. A fix has already been committed in perl-cross upstream, we need to backport it in Buildroot.
Comment 2 Thomas Petazzoni 2017-02-13 20:46:47 UTC
This issue has been fixed in perl-cross by commit https://github.com/arsv/perl-cross/commit/c707e92c99c9d468c490bf8aed0df95941da9c5c, which is in perl-cross since version 1.1.2, and Buildroot is currently using perl-cross 1.1.3.

Therefore, this bug is now fixed.