QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2452|回复: 5

编译 krb5 出这个问题怎么解决?

[复制链接]
发表于 2009-6-16 21:23:53 | 显示全部楼层 |阅读模式

  1. (cd ../../lib && ln -s ../util/support/libkrb5support.a .)
  2. gcc -fPIC -DSHARED   -I../../include -I./../../include -I. -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE=1 -I/usr/include/et -O2 -g -pipe -mabi=64 -I/usr/include/et -fPIC -pthread -c threads.c -o threads.so.o && mv -f threads.so.o threads.so
  3. In file included from threads.c:34:
  4. ../../include/k5-platform.h:378:3: error: #error "Don't know how to do unload-time finalization for this configuration."
  5. threads.c:37: warning: data definition has no type or storage class
  6. threads.c:37: warning: parameter names (without types) in function declaration
  7. make[2]: *** [threads.so] Error 1
  8. make[2]: Leaving directory `/usr/src/redhat/BUILD/krb5-1.5/src/util/support'
  9. make[1]: *** [all-recurse] Error 1
  10. make[1]: Leaving directory `/usr/src/redhat/BUILD/krb5-1.5/src/util'
  11. make: *** [all-recurse] Error 1
复制代码
发表于 2009-6-17 09:27:54 | 显示全部楼层
交叉编译的时候出现的?
为什么要交叉krb5啊。
给gcc 加上lpthread试试。
回复

使用道具 举报

 楼主| 发表于 2009-6-17 11:29:23 | 显示全部楼层
我一直是本地编译……
回复

使用道具 举报

发表于 2009-6-17 13:07:58 | 显示全部楼层
本地编译应该不出现这个才对。
具体的解决办法我也不太清楚了,不过交叉的时候有时候会出现这个。降级试试。
回复

使用道具 举报

 楼主| 发表于 2009-6-17 14:08:40 | 显示全部楼层
回复

使用道具 举报

 楼主| 发表于 2009-6-21 19:39:55 | 显示全部楼层
  1. diff -Nur krb5-1.5.ori/src/config/libobj.in krb5-1.5/src/config/libobj.in
  2. --- krb5-1.5.ori/src/config/libobj.in   2009-06-21 18:48:36.000000000 +0800
  3. +++ krb5-1.5/src/config/libobj.in       2009-06-21 18:49:31.000000000 +0800
  4. @@ -9,7 +9,7 @@

  5. .SUFFIXES: .c .so .po
  6. .c.so:
  7. -       $(CC) $(PICFLAGS) -DSHARED $(ALL_CFLAGS) -c $< -o $*.so.o && $(MV) $*.so.o $*.so
  8. +       $(CC) $(PICFLAGS) $(ALL_CFLAGS) -c $< -o $*.so.o && $(MV) $*.so.o $*.so
  9. .c.po:
  10.         $(CC) $(PROFFLAGS) $(ALL_CFLAGS) -c $< -o $*.po.o && $(MV) $*.po.o $*.po

复制代码
他非要用 shared 方式编译,但问题是这个 header 里面写最后一步才检测是不是 shared ,前面两个不知道为什么全都不满足。只好去搞定第三个条件了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-3-29 05:45 , Processed in 0.075079 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表