Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile the ppm module #10

Closed
chanurahemal opened this issue Mar 28, 2018 · 14 comments
Closed

Can't compile the ppm module #10

chanurahemal opened this issue Mar 28, 2018 · 14 comments
Assignees
Labels

Comments

@chanurahemal
Copy link

chanurahemal commented Mar 28, 2018

Hi,
I cloned ppm module and tried to compile with openldap 2.4.46 source. Initially it gave following error when i execute make CONFIG=.......... command.

****ppm.c:11:10: fatal error: 'portable.h' file not found
Then i renamed portable.hin file(with some other files as ell) to portable.h and that error was gone. But still i am getting following error.

In file included from ppm.c:12:
In file included from ../../../servers/slapd/slap.h:37:
../../../include/ac/regex.h:29:2: error: "No POSIX REGEX available."
#error "No POSIX REGEX available."
 ^
In file included from ppm.c:12:
In file included from ../../../servers/slapd/slap.h:55:
In file included from ../../../include/ldap_pvt.h:531:
In file included from ../../../include/ldap_pvt_uc.h:27:
../../../include/ac/bytes.h:31:3: error: "AC_INT4_TYPE?"
#       error "AC_INT4_TYPE?"
        ^ 

Please someone can help me to solve this problem as it is very very urgent.

Thank you

@davidcoutadeur
Copy link
Collaborator

Looking at this point

@davidcoutadeur
Copy link
Collaborator

@chanurahemal: which ppm version did you use? 1.6 release or last master?
If using last master, please consider the new Makefile option OLDAP_SOURCES variable to point to your openldap source installation directory.

By the way, ppm master compiles correctly against last 2.4.46 openldap

@chanurahemal
Copy link
Author

chanurahemal commented Mar 30, 2018 via email

@davidcoutadeur
Copy link
Collaborator

@chanurahemal: and so it is working for you now ?

@chanurahemal
Copy link
Author

chanurahemal commented Mar 30, 2018 via email

@davidcoutadeur
Copy link
Collaborator

Can't reproduce the error...
Which operating system?
Did you use official OpenLDAP 2.4.46 release?

@chanurahemal
Copy link
Author

chanurahemal commented Mar 31, 2018 via email

@chanurahemal
Copy link
Author

chanurahemal commented Mar 31, 2018 via email

@davidcoutadeur
Copy link
Collaborator

The link is ok.
You should not rename files .hin.
portable.h is available in directory include/portable.h, once you have compiled OpenLDAP:

./configure
make

So you should just compile OpenLDAP first.

@chanurahemal
Copy link
Author

chanurahemal commented Apr 1, 2018 via email

@davidcoutadeur
Copy link
Collaborator

davidcoutadeur commented Apr 2, 2018

As you are on a specific machine (MacOS), you may have to provide specific options as mentioned:

  • build
  • host
  • target

I don't know very well these options. If you experience difficulties with them, I suggest you read this: http://www.openldap.org/doc/admin24/install.html, then contact OpenLDAP community on their mailing list: http://www.openldap.org/lists/

As it is not a problem in ppm library, I close this issue. You can reoppen if you face new problem after you succeed in compiling OpenLDAP.

@chanurahemal
Copy link
Author

chanurahemal commented Apr 2, 2018 via email

@davidcoutadeur
Copy link
Collaborator

What error did you get?
Error when compiling OpenLDAP or while compiling ppm?
Did you try compiling OpenLDAP first?

@coudot
Copy link
Member

coudot commented Apr 3, 2018

@chanurahemal note that I compiled it yesterday to build OpenLDAP RPM and it worked well. See https://github.com/ltb-project/openldap-rpm/blob/master/SPECS/openldap-ltb.spec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants