LDAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesLDAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old April 7th, 2008, 04:27 AM
zifox zifox is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 2 zifox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 55 sec
Reputation Power: 0
Linking with LDAP C library

Hi everyone,

i'm trying to create a connector for my application to connect with ldap, but i'm stuck apparently because of a library version problem.

Here's the whole story.
I've downloaded the mozilla C SDK 2.4, and tried to create my app. I've included the headers, the lib files, and modified my makefile so the libraries of the sdk are used to link.

The compilation process goes fine, but the linker exits in error and prints hundred of errors like
getattr.o(.text+0xc6): undefined reference to `ber_scanf'
getattr.o(.text+0xda): undefined reference to `ber_set_option'
getattr.o(.text+0x110): undefined reference to `ber_free'
getattr.o(.text+0x13c): undefined reference to `ber_scanf'

Thing is, i have no object called getattr in my code, so i assume it is one of the ldap library.

Since i have ldap installed on the computer, i tried to compile with the files already installed on my system. In that case, the compiler throws errors, apparently the ldap.h in my usr/include is too old.

Another test i made is to compile using the sdk header and my usr/lib library. In that case, it works fine, but it seems a bit dirty to create an app like that.

Next step, i thought of upgrading the machine: it was running on a 2.4.9 kernel, which is quite old, i imagine it could be a libc version mismatch. I upgraded to a 2.4.21, and tried to recompile, hoping that it would solve my issue, but it did not, i have exactly the same behavior.

I even tried to download another sdk, a newer one, but it didn't work.

I'm quite lost here, i don't understand why i get these errors. What are these ber functions that the library uses and that my systems doesn't know ? Why don't i have the same errors when using the usr/lib library ?

Any help is highly appreciated.

(for information, i only have this issue with linux. I'm compiling the same code on hp, aix, windows, solaris without problem.)

edit: more info
I'm linking using static libraries

Reply With Quote
  #2  
Old April 11th, 2008, 02:30 AM
zifox zifox is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 2 zifox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 55 sec
Reputation Power: 0
Problem solved, it was a compatibility problem between the ldap static library and the lber one.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > Linking with LDAP C library


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway