[SM-Grimoire-Bugs] [Bug 15113] New: popen: function not implemented (glibc, linux-headers)

bugzilla-daemon at bugs.sourcemage.org bugzilla-daemon at bugs.sourcemage.org
Tue Mar 17 06:41:41 EDT 2009


http://bugs.sourcemage.org/show_bug.cgi?id=15113

           Summary: popen: function not implemented (glibc, linux-headers)
           Product: Codex
           Version: test grimoire
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: libs
        AssignedTo: sm-grimoire-bugs at lists.ibiblio.org
        ReportedBy: drjschn at gmx.de


I noted this when exec() calls stopped working from php. Curiously a small test
progrogram showed that exec/fork/popen/... actually worked.

>From the results you can find by searching the web for: glibc popen "not
implemented" i found this one to be most concise and least confused:

http://sources.redhat.com/bugzilla/show_bug.cgi?id=9685

#include <grp.h>
#include <stdio.h>
main()
{
    getgrnam("root");
    if (!popen("ls", "r"))
        perror("popen()");
}

YMMV but it seems the relevant versions are glibc-9 and linux-2.27 ...
linux-2.28. The fix that works here is to compile glibc with sanitized linux
headers:

GLIBC_SANITIZE_HEADERS="y"

-- 
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the SM-Grimoire-Bugs mailing list