Menu

#35 compilation fix for fedora 6 (maybe earlier)

open
nobody
None
5
2006-12-18
2006-12-18
Devin Reade
No

This is a change that was necessary to get CPU to compile under fedora core 6. I seem to recall that I also had to apply it to an earlier fedora release, but don't recall the details.

In src/plugins/ldap/commandline.c around line 86 there is the following line:

(int) passent->sp_lstchg = passent->sp_min = passent->sp_max = -10;

which results in "commandline.c:86: error: invalid lvalue in assignment"

Changing it to be the following fixed the problem:

passent->sp_lstchg = -10;
passent->sp_min = -10;
passent->sp_max = -10;

Discussion

  • Nobody/Anonymous

    Logged In: NO

    this needs to be changed for RHEL 5 as well.

     
  • Charlie Brady

    Charlie Brady - 2007-07-24

    Logged In: YES
    user_id=345312
    Originator: NO

    I think this patch is sufficient:

    -(int) passent->sp_lstchg = passent->sp_min = passent->sp_max = -10;
    +passent->sp_lstchg = passent->sp_min = passent->sp_max = -10;

     

Log in to post a comment.

MongoDB Logo MongoDB