Programming :: Compiling Sample LDAP Plug-in On RHDS?
Feb 24, 2010
I am writing an sample LDAP Plug-in on RHDS. While compiling plug-in file, i am getting an error related to missing header files(prtypes.h, prprf.h etc..) 'slapi-plugin.h' file is generated in the path /usr/include/dirsrv. But inside this file, they are using some other header files like prtypes.h, prprf.h, etc. But there is no files generated with this names. Because of this i am getting "No such file or directory" error for these files. I can get these header files from Netscape coporation(Thirdpary), but can we use the same header files for Redhat or is there any separate header files are there for RHDS.
I am writing an sample LDAP Plug-in on RHDS. While compiling plug-in file, i am getting an error related to missing header files(prtypes.h, prprf.h etc..).
'slapi-plugin.h' file is generated in the path /usr/include/dirsrv. But inside this file, they are using some other header files like prtypes.h, prprf.h, etc. But there is no files generated with this names. Because of this i am getting "No such file or directory" error for these files. I can get these header files from Netscape coporation(Thirdpary), but can we use the same header files for Redhat or is there any separate header files are there for RHDS.
I am writing an sample LDAP Plug-in on RHDS. While compiling plug-in file, i am getting an error related to missing header files(prtypes.h, prprf.h etc..).
'slapi-plugin.h' file is generated in the path /usr/include/dirsrv. But inside this file, they are using some other header files like prtypes.h, prprf.h, etc. But there is no files generated with this names. Because of this i am getting "No such file or directory" error for these files. I can get these header files from Netscape coporation(Thirdpary), but can we use the same header files for Redhat or is there any separate header files are there for RHDS.
I have Fedoara 11 install on my PC. I want to compile program as 32 by g++ option -m32. I have 32 bit library install on my machine which present in path
When i compile my sample program with -c & -m32 option it compile correctly
I'm checking with a sniffer and there's activity going on between the client and the LDAP server... as a matter of fact, the sniffer shows that the search is producing one ldap item, however, php says it can't contact the ldap server (after it has bound and everything):
The script is working beautifully on another host with debian.
i have my directory server user as dn = sunil.kumarinfotech.com i want to make this user to login into my windows xp in client edition.its wking fine in linux client even we get the whole profile .so similar i want with xp m/c also please suggest the only way is to intigrate it with samba or wtever it is?also my mc is in workgoup i have my dns [URL] wan to add my m/c on this domain.
A couple years ago I tried to enable LDAP/Kerberos sign-on from Active Directory 2003. Ran into a whole bunch of issues (mostly related to our Red Hat ES3 servers). I'm going to start looking into this again. We still have our old Red Hat ES3 servers (along with AS4 and 5.5).
So my options are basically this: - Try again to integrate with Active Directory - Setup an RHDS server (completely separate from AD) - Setup an RHDS server and sync with AD
I'm looking for a simple method that is reliable. Integrating with AD left a bad taste because of all the weird issues we ran into but I was trying to integrate using LDAP and Kerberos (and as I understand it we can authenticate using LDAP only) . I need to be able to restrict access to groups of users and groups of servers which I know is possible in RHDS. I've read a few documents from Red Hat about RHDS and it sounds like a good product, but there aren't many impressions from actual users on the internet.
How to read the content of a shared object inside my c/c++ source code. Let me explain more.
Imagine i have a main.c file and it can get 2 int numbers and add them, then i compile this file using gcc and then i have an executable file.
After a while i notice that i like to add subtraction ability(function) to my simple program. there are 4 major way to do it:
1) adding the code inside to source file (main.c) and recompiling it.
2) creating another source file and implementing the new function into it, then compiling it as an static or shared object and the recompiling the main.c against this object file
3) using and embedding an scripting language, say perl or lua, to add the new functionality as scripts files into our executable program. this approach is useful in some situation, but here you have to force the end user to download another program (perl, lua, ...) to be able to run your app correctly, or it would lack a lot of functionalities, though you won't need to recompile your app.
4) embedding a peace of code, i mean new function into main.c to read and deal with the content of a directory, say "./plugin" at runtime and checking if there is any shared library within the directory, if any, reading their contents and adding the extra functionality to the main program on the fly.
How can we implement the fourth approach? in other words, how can we read the content of shared objects on the fly?
I am searching for the IDE that can compile and debug a NASM code. I am using ubuntu 10.04 and I can make compile via terminal but I must view registers for educational purposes.
I am trying to cross-compile my Qt application for armhf on Jessie, so what I did was install qt5-default:armhf, but when I tried running qmake I found out that it contains also an armhf version of qmake so I was not able to run it.Then I installed the amd64 version to have at least a runnable version of qmake, but it was only to find out that qmake contains only hardcoded paths, so I could not use it for the armhf libraries, well I could but I had to run qmake (amd64 version) and afterwards open the makefile and change all paths from amd64 to armhf.
But as this is not so convenient I was wondering if there is a normal way to do this, I know you can compile the source yourself but I had quite a lot of problems with dependencies there. Is it possible with the standard repository binaries or should I just go back to compiling the source myself? Maybe I can compile only the building tools without building all the libraries I already got from the repository.
I'm trying to learn how to cross-compile libraries (static and shared) and executables for the Blackfin + uClinux environment.At this point, I can successfully compile a stand-alone "Hello, world" but fail when trying to add a (static) library to the mix.Here's the source code I wrote:
I am trying to use the QT4 frontend of poppler library in my application so I need to compile the library.In its main directory ./configure can be run but I got
Code:
checking which font configuration to use... fontconfig checking for FONTCONFIG... no configure: error: Package requirements (fontconfig >= 2.0.0) were not met: No package 'fontconfig' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables FONTCONFIG_CFLAGS and FONTCONFIG_LIBS to avoid the need to call pkg-config.See the pkg-config man page for more details.
I have fontconfig installed (ubuntu):
2.8.0-2.1ubuntu3 (fontconfig)
However I have no idea where those flags are and what to set them to.
I have been using gcc to compile C programs. I want to know what exactly is the meaning of Compiling a C program. I checked cc -S prog.c will give an .S file and if you analyze the hexdump I saw some assembly instructions. So what does the compiler do which is not required in case of interpreted languages?
i have some perl codes for using ldap,but i don't know why don't work any error handling When i use msg->code for sample. an example:
[Code],,,,
In this case,if $msg->code return zero(or null) every thing work correctly but if it not zero don't give any message(eg."error result").What is problem?
I did see another topic on this forum regarding VSTs in LMMS, but it didn't solve my problem. I am running using the 64-bit testing branch of debian, which may be causing some of my problems. I tried compiling LMMS myself, but I ran into an issue with wine when it tried to compile RemoteVstPlugin.
It seems as though wine didn't install winegcc or any other tools like that. After a while, I did manage to find winegcc and some of the other tools in /usr/lib/x86_64-linux-gnu/wine/bin. I decided to add some symlinks in /usr/local/bin to point to winegcc, wineg++, winecpp, and winebuild. After that, it seemed to give a different error message, but still failed to compile. It now gives me the following error:
Code: Select all[ 83%] Generating RemoteVstPlugin /usr/bin/ld: Relocatable linking with relocations from format elf64-x86-64 (/usr/lib/x86_64-linux-gnu/wine/wine/libwinecrt0.a(exe_entry.o)) to format elf32-i386 (RemoteVstPlugin.Azfbf1.o) is not supported winebuild: /usr/bin/ld failed with status 1
[Code] ....
I may be missing some dependencies because I couldn't run build-dep without removing skype but I don't think that's the problem. I thought the above problem may have something to do with wine, so I was going to try compiling wine to. I ran into problems with that, and ditched that idea. I really don't know what to do anymore. I can't just disable VST support, because that's why I tried to compile LMMS by myself to begin with!
I have written a program that I would like to cross compile for x86 and x86_64 architectures. I have tried google and the search function here to no success, most information I find is too specific (instructions for a specific program), or dealing with cross compiling for windows on linux.Does anyone know of a tutorial dealing with straight making a 32 bit binary on a 64 bit processor (both are intel)?
How can I compile a C++ application using g++ with x86 platform settings on a x86_64 machine ? What are the possible negative side-effects of compiling a C++ application with x86 settings on a x86_64 platform ?
compiling and linking using gcc: What does a file name with a suffix '.a' represent? If I have multiple .c and .h files, how can I link them together? How can I create the .a file?
I am trying to compile certain Linux general utilities like ls, lsof, ping, netstat with static linkers and not sure how do that. Does any one aware how to compile the application with statically rather than dynamically.
I`m trying to compile sources of kernel module which has been written for kernel 2.6.9. There were many changes in kernel headers since then in current kernel sources. I`ve found that old /asm/system.h was moved under architecture dedicated directory /arch/*/include/asm/system.h. Anyway during sources compilation I`m having errors related to kernel sources. It looks like there is something wrong with this /asm/system.h
Code:
../asm/system.h: In function �__cmpxchg�: ../asm/system.h:248: error: expected string literal before �LOCK_PREFIX� ../asm/system.h:254: error: expected string literal before �LOCK_PREFIX�
I had developed a C program on linux (x86). Now I need to port it to HP-UX OS on IA/PA 64 bit arch. What are the options to be used with cc compiler, on linux (x86), so that this could be done, if at all.
I am trying to compile systemc. Configuration is done OK and Makefiles are created. As soon as the "make" command i issue, recursively reaches the "utils" directory, errors are produced -declaration and include errors.
The files referenced by the errors DO exist and i hava managed to give g++ "-I ${LD_INCLUDE_PATH}, ie the variable, where all header dirs are listed. Libraries and compilers for gcc3.3 and g++3.3, i believe, are installed OK. code...