×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

最近快被这个Redhat下编译器搞死了,连接时总是报错,那位给个建议?

/usr/local/ldap/lib/libldap50.a(search.o)(.text+0x882): In function `put_filter_list':
: undefined reference to `__ctype_b'
/usr/local/ldap/lib/libldap50.a(search.o)(.text+0x915): In function `is_valid_attr':
: undefined reference to `__ctype_b'
/usr/local/ldap/lib/libldap50.a(getvalues.o)(.text+0x332): In function `parse_subtypes':
: undefined reference to `__ctype_toupper'
/usr/local/ldap/lib/libldap50.a(getvalues.o)(.text+0x4d9): In function `check_lang_match':
: undefined reference to `__ctype_toupper'
/usr/local/ldap/lib/libldap50.a(getvalues.o)(.text+0x56d): In function `check_base_match':
: undefined reference to `__ctype_toupper'
collect2: ld returned 1 exit status
make: *** [mybusiness.exe] Error 1

g++ 版本是3.4.3. 现在不知道是LDAP库的问题还是glibc的问题.LDAP库只有一个别人下载的现成的,找不到地方去下载(Netscape Directory SDK for c);glibc已经是比较新的版本了.头疼啊
Report

Replies, comments and Discussions:

  • 工作学习 / 专业技术讨论 / 最近快被这个Redhat下编译器搞死了,连接时总是报错,那位给个建议?
    /usr/local/ldap/lib/libldap50.a(search.o)(.text+0x882): In function `put_filter_list':
    : undefined reference to `__ctype_b'
    /usr/local/ldap/lib/libldap50.a(search.o)(.text+0x915): In function `is_valid_attr':
    : undefined reference to `__ctype_b'
    /usr/local/ldap/lib/libldap50.a(getvalues.o)(.text+0x332): In function `parse_subtypes':
    : undefined reference to `__ctype_toupper'
    /usr/local/ldap/lib/libldap50.a(getvalues.o)(.text+0x4d9): In function `check_lang_match':
    : undefined reference to `__ctype_toupper'
    /usr/local/ldap/lib/libldap50.a(getvalues.o)(.text+0x56d): In function `check_base_match':
    : undefined reference to `__ctype_toupper'
    collect2: ld returned 1 exit status
    make: *** [mybusiness.exe] Error 1

    g++ 版本是3.4.3. 现在不知道是LDAP库的问题还是glibc的问题.LDAP库只有一个别人下载的现成的,找不到地方去下载(Netscape Directory SDK for c);glibc已经是比较新的版本了.头疼啊
    • Opensource 的好处就资源多阿。。。
      • thanks a lot. really made sense
    • 1. Get Openldap 2.Link the system lib
      • seems the trouble was fixed up. Thanks anyway:-)