亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3005 | 回復: 6
打印 上一主題 下一主題

[FastDFS] okapis:fastDFS 1.8在64位freebsd7.0下編譯出錯 [復制鏈接]

論壇徽章:
4
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT運維版塊每日發(fā)帖之星
日期:2016-08-11 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-08-15 06:20:00
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2009-02-21 09:54 |只看該作者 |倒序瀏覽
okapis:freebsd6.*可以正常編譯通過,在7.0下編譯出錯,
錯誤信息如下:
# ./make.sh -f Makefile.freebsd
cc -Wall -O2 -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD -o fdfs_trackerd fdfs_trackerd.c  ../common/hash.o ../common/fdfs_define.o ../common/chain.o  ../common/shared_func.o ../common/ini_file_reader.o  ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o  tracker_proto.o tracker_mem.o tracker_service.o  tracker_global.o tracker_func.o  -L/usr/local/lib -lc_r -I../common -I../tracker -I/usr/local/include
fdfs_trackerd.c: In function 'main':
fdfs_trackerd.c:188: warning: cast to pointer from integer of different size
/usr/bin/ld: cannot find -lc_r
*** Error code 1

Stop in /dist/FastDFS/tracker.
cc -Wall -O2 -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD -o fdfs_storaged fdfs_storaged.c  ../common/hash.o ../common/fdfs_define.o ../common/chain.o  ../common/shared_func.o ../common/ini_file_reader.o  ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o  ../common/fdfs_base64.o  ../tracker/tracker_proto.o tracker_client_thread.o  storage_global.o storage_func.o storage_service.o  storage_sync.o  -L/usr/local/lib -lc_r -I../common -I../tracker -I/usr/local/include
fdfs_storaged.c: In function 'main':
fdfs_storaged.c:249: warning: cast to pointer from integer of different size
/usr/bin/ld: cannot find -lc_r
*** Error code 1

Stop in /dist/FastDFS/storage.
cc -Wall -O2 -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD -o fdfs_monitor fdfs_monitor.c  ../common/hash.o ../common/fdfs_define.o ../common/chain.o  ../common/shared_func.o ../common/ini_file_reader.o  ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o  ../common/fdfs_base64.o  ../tracker/tracker_proto.o tracker_client.o client_func.o  client_global.o storage_client.o  -L/usr/local/lib -lc_r -I../common -I../tracker -I/usr/local/include
fdfs_monitor.c: In function 'main':
fdfs_monitor.c:86: warning: format '%lld' expects type 'long long int', but argument 4 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 7 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 8 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 9 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 10 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 11 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 12 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 13 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 14 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 15 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 16 has type 'int64_t'
/usr/bin/ld: cannot find -lc_r
*** Error code 1

論壇徽章:
4
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT運維版塊每日發(fā)帖之星
日期:2016-08-11 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-08-15 06:20:00
2 [報告]
發(fā)表于 2009-02-21 09:57 |只看該作者

動態(tài)庫的問題

happy_fish100:我在FreeBSD 4.11上測試通過的?磥鞡SD 7上沒有動態(tài)庫libc_r.so了。你試試修改一下Makefile,將-lc_r 刪除后試試能否編譯通過。

okapis:還是編譯出錯
刪除以后 依然編譯不通過

happy_fish100:什么出錯信息呢,能否貼上來看看?

okapis:錯誤信息和上次是一樣的
這個全部的出錯信息 freebsd6編譯通過
cc -Wall -O2 -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD -o fdfs_trackerd fdfs_trackerd.c  ../common/hash.o ../common/fdfs_define.o ../common/chain.o  ../common/shared_func.o ../common/ini_file_reader.o  ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o  tracker_proto.o tracker_mem.o tracker_service.o  tracker_global.o tracker_func.o  -L/usr/local/lib -lc_r -I../common -I../tracker -I/usr/local/include
fdfs_trackerd.c: In function 'main':
fdfs_trackerd.c:188: warning: cast to pointer from integer of different size
/usr/bin/ld: cannot find -lc_r
*** Error code 1

Stop in /dist/FastDFS/tracker.
cc -Wall -O2 -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD -o fdfs_storaged fdfs_storaged.c  ../common/hash.o ../common/fdfs_define.o ../common/chain.o  ../common/shared_func.o ../common/ini_file_reader.o  ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o  ../common/fdfs_base64.o  ../tracker/tracker_proto.o tracker_client_thread.o  storage_global.o storage_func.o storage_service.o  storage_sync.o  -L/usr/local/lib -lc_r -I../common -I../tracker -I/usr/local/include
fdfs_storaged.c: In function 'main':
fdfs_storaged.c:249: warning: cast to pointer from integer of different size
/usr/bin/ld: cannot find -lc_r
*** Error code 1

Stop in /dist/FastDFS/storage.
cc -Wall -O2 -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD -o fdfs_monitor fdfs_monitor.c  ../common/hash.o ../common/fdfs_define.o ../common/chain.o  ../common/shared_func.o ../common/ini_file_reader.o  ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o  ../common/fdfs_base64.o  ../tracker/tracker_proto.o tracker_client.o client_func.o  client_global.o storage_client.o  -L/usr/local/lib -lc_r -I../common -I../tracker -I/usr/local/include
fdfs_monitor.c: In function 'main':
fdfs_monitor.c:86: warning: format '%lld' expects type 'long long int', but argument 4 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 7 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 8 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 9 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 10 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 11 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 12 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 13 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 14 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 15 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 16 has type 'int64_t'
/usr/bin/ld: cannot find -lc_r
*** Error code 1

Stop in /dist/FastDFS/client.

論壇徽章:
4
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT運維版塊每日發(fā)帖之星
日期:2016-08-11 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-08-15 06:20:00
3 [報告]
發(fā)表于 2009-02-21 09:58 |只看該作者

回復:動態(tài)庫的問題

happy_fish100:應該修改文件Makefile.freebsd。我看你貼的出錯信息和上次的是一樣的,是不是修改成Makefile了?
Wty:我修改的就是makefile.freebsd 這是其中的一個
.SUFFIXES: .c .o

COMPILE = $(CC) -Wall -O2 -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD
#COMPILE = $(CC) -Wall -g -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD -D__DEBUG__
INC_PATH = -I../common -I../tracker -I/usr/local/include
TARGET_PATH = /usr/local/bin
COMMON_LIB =
SHARED_OBJS = ../common/hash.o ../common/fdfs_define.o ../common/chain.o \
              ../common/shared_func.o ../common/ini_file_reader.o \
              ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o \
              ../common/fdfs_base64.o \
              ../tracker/tracker_proto.o tracker_client_thread.o \
              storage_global.o storage_func.o storage_service.o \
              storage_sync.o

ALL_OBJS = $(SHARED_OBJS)

ALL_PRGS = fdfs_storaged

all: $(ALL_OBJS) $(ALL_PRGS)
.o:
$(COMPILE) -o $@ $<  $(SHARED_OBJS) $(COMMON_LIB) $(LIB_PATH) $(INC_PATH)
.c:
$(COMPILE) -o $@ $<  $(ALL_OBJS) $(COMMON_LIB) $(LIB_PATH) $(INC_PATH)
.c.o:
$(COMPILE) -c -o $@ $<  $(INC_PATH)
install:
cp -f $(ALL_PRGS) $(TARGET_PATH)
clean:
rm -f $(ALL_OBJS) $(ALL_PRGS)

論壇徽章:
4
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT運維版塊每日發(fā)帖之星
日期:2016-08-11 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-08-15 06:20:00
4 [報告]
發(fā)表于 2009-02-21 10:01 |只看該作者

Wty:修改

Wty:修改的是storage 和tracker 下面的makefile.freebsd
一直編譯不過去
有解決的辦法嗎
不會必須將系統(tǒng)做到6以下把???

happy_fish100:我這邊沒有bsd7的編譯環(huán)境。去掉-lc_r后,能否把錯誤信息重新貼一下?你上面貼的貌似不對啊。
Makefile.freebsd中,你進行如下設置
LIB_PATH = -L/usr/local/lib -lpthread
試試能否編譯通過。

Wty:你看看錯在哪里了 謝謝
storage 下makefile.freebsd

.SUFFIXES: .c .o

COMPILE = $(CC) -Wall -O2 -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD
#COMPILE = $(CC) -Wall -g -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD -D__DEBUG__
INC_PATH = -I../common -I../tracker -I/usr/local/include
LIB_PATH = -L/usr/local/lib -lpthread
TARGET_PATH = /usr/local/bin
COMMON_LIB =
SHARED_OBJS = ../common/hash.o ../common/fdfs_define.o ../common/chain.o \
              ../common/shared_func.o ../common/ini_file_reader.o \
              ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o \
              ../common/fdfs_base64.o \
              ../tracker/tracker_proto.o tracker_client_thread.o \
              storage_global.o storage_func.o storage_service.o \
              storage_sync.o

ALL_OBJS = $(SHARED_OBJS)

ALL_PRGS = fdfs_storaged

all: $(ALL_OBJS) $(ALL_PRGS)
.o:
$(COMPILE) -o $@ $<  $(SHARED_OBJS) $(COMMON_LIB) $(LIB_PATH) $(INC_PATH)
.c:
$(COMPILE) -o $@ $<  $(ALL_OBJS) $(COMMON_LIB) $(LIB_PATH) $(INC_PATH)
.c.o:
$(COMPILE) -c -o $@ $<  $(INC_PATH)
install:
cp -f $(ALL_PRGS) $(TARGET_PATH)
clean:
rm -f $(ALL_OBJS) $(ALL_PRGS)

tracker 下makefile.freebsd

.SUFFIXES: .c .o

COMPILE = $(CC) -Wall -O2 -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD
#COMPILE = $(CC) -Wall -g -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD -D__DEBUG__
INC_PATH = -I../common -I../tracker -I/usr/local/include
LIB_PATH = -L/usr/local/lib -lpthread
TARGET_PATH = /usr/local/bin

COMMON_LIB =
SHARED_OBJS = ../common/hash.o ../common/fdfs_define.o ../common/chain.o \
              ../common/shared_func.o ../common/ini_file_reader.o \
              ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o \
              tracker_proto.o tracker_mem.o tracker_service.o \
              tracker_global.o tracker_func.o

ALL_OBJS = $(SHARED_OBJS)

ALL_PRGS = fdfs_trackerd

all: $(ALL_OBJS) $(ALL_PRGS)
.o:
$(COMPILE) -o $@ $<  $(SHARED_OBJS) $(COMMON_LIB) $(LIB_PATH) $(INC_PATH)
.c:
$(COMPILE) -o $@ $<  $(ALL_OBJS) $(COMMON_LIB) $(LIB_PATH) $(INC_PATH)
.c.o:
$(COMPILE) -c -o $@ $<  $(INC_PATH)
install:
cp -f $(ALL_PRGS) $(TARGET_PATH)
clean:
rm -f $(ALL_OBJS) $(ALL_PRGS)

編譯出錯信息

cc -Wall -O2 -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD -o fdfs_trackerd fdfs_trackerd.c  ../common/hash.o ../common/fdfs_define.o ../common/chain.o  ../common/shared_func.o ../common/ini_file_reader.o  ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o  tracker_proto.o tracker_mem.o tracker_service.o  tracker_global.o tracker_func.o  -L/usr/local/lib -lpthread -I../common -I../tracker -I/usr/local/include
fdfs_trackerd.c: In function 'main':
fdfs_trackerd.c:188: warning: cast to pointer from integer of different size
cc -Wall -O2 -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD -o fdfs_storaged fdfs_storaged.c  ../common/hash.o ../common/fdfs_define.o ../common/chain.o  ../common/shared_func.o ../common/ini_file_reader.o  ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o  ../common/fdfs_base64.o  ../tracker/tracker_proto.o tracker_client_thread.o  storage_global.o storage_func.o storage_service.o  storage_sync.o  -L/usr/local/lib -lpthread -I../common -I../tracker -I/usr/local/include
fdfs_storaged.c: In function 'main':
fdfs_storaged.c:249: warning: cast to pointer from integer of different size
cc -Wall -O2 -D_FILE_OFFSET_BITS=64 -DOS_FREEBSD -o fdfs_monitor fdfs_monitor.c  ../common/hash.o ../common/fdfs_define.o ../common/chain.o  ../common/shared_func.o ../common/ini_file_reader.o  ../common/logger.o ../common/sockopt.o ../common/fdfs_global.o  ../common/fdfs_base64.o  ../tracker/tracker_proto.o tracker_client.o client_func.o  client_global.o storage_client.o  -L/usr/local/lib -lc_r -I../common -I../tracker -I/usr/local/include
fdfs_monitor.c: In function 'main':
fdfs_monitor.c:86: warning: format '%lld' expects type 'long long int', but argument 4 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 7 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 8 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 9 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 10 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 11 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 12 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 13 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 14 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 15 has type 'int64_t'
fdfs_monitor.c:140: warning: format '%lld' expects type 'long long int', but argument 16 has type 'int64_t'
/usr/bin/ld: cannot find -lc_r
*** Error code 1

Stop in /dist/FastDFS/client.



錯誤好像是一樣的

論壇徽章:
4
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT運維版塊每日發(fā)帖之星
日期:2016-08-11 06:20:00IT運維版塊每日發(fā)帖之星
日期:2016-08-15 06:20:00
5 [報告]
發(fā)表于 2009-02-21 10:02 |只看該作者

回復:你看看錯在哪里了 謝謝

happy_fish100:看你貼出的編譯信息,tracker和storage應該都編譯通過了,warning信息是沒問題的,可以忽略。trakcer和storage這兩個目錄下的Makefile.freebsd你應該都修改過了。client目錄下的Makefile.freebsd還需要修改一下,然后重新編譯應該就可以了。

Wty:謝謝。編譯通過,我試試客戶端調用

happy_fish100:V1.10統(tǒng)一了FreeBSD和Linux下的編譯方法,解決了在FreeBSD7.0下編譯出錯的問題。歡迎大家下載使用。

論壇徽章:
0
6 [報告]
發(fā)表于 2009-06-16 10:23 |只看該作者
支持~~~不錯~~~呵呵~~~

論壇徽章:
0
7 [報告]
發(fā)表于 2009-06-16 10:30 |只看該作者
不錯~~~支持~~~呵呵~~~~
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP