PAM plugin causes build failures on MacOS X

Bug #1012488 reported by Stewart Smith
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
Low
Stewart Smith
5.5
Fix Released
Low
Stewart Smith
percona-pam-for-mysql
Fix Released
Low
Stewart Smith

Bug Description

Gergo Erdosi <email address hidden> reported on percona-discuss that homebrew (tool for building software on MacOSX) couldn't build PS 5.5.24-26.0 due to this error:

/tmp/homebrew-percona-server-5.5.24-26.0-IocQ/Percona-Server-5.5.24-rel26.0/plugin/percona-pam-for-mysql/src/auth_pam_common.h:34:10:
fatal error: 'security/pam_misc.h' file not found

A solution was later found (again by Gergo):

   I did a quick test. If I add these lines to configure.cmake:

    CHECK_INCLUDE_FILES (security/pam_misc.h HAVE_SECURITY_PAM_MISC_H)
    CHECK_INCLUDE_FILES (security/openpam.h HAVE_SECURITY_OPENPAM_H)

    And change auth_pam_common.h to:

    #if HAVE_SECURITY_PAM_MISC_H
    #include <security/pam_misc.h>
    #elif HAVE_SECURITY_OPENPAM_H
    #include <security/openpam.h>
    #endif

    Then the package compiles. However I don't have the resources to
    actually test PAM authentication, so can't say for sure this is the
    solution.

    Gergo Erdosi

Tags: pam

Related branches

Stewart Smith (stewart)
Changed in percona-server:
status: New → In Progress
Changed in percona-pam-for-mysql:
status: New → In Progress
assignee: nobody → Stewart Smith (stewart)
importance: Undecided → Low
Stewart Smith (stewart)
Changed in percona-pam-for-mysql:
status: In Progress → Fix Released
Revision history for this message
Stewart Smith (stewart) wrote :

Setting to Fix Released as the PAM branches have been merged back, although I'm not sure when this specific fix hit PS.

Changed in percona-server:
status: Fix Committed → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1922

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.