zoukankan      html  css  js  c++  java
  • eXtremeDB

      I am doing a cluster test, why did I encounter the ld errorwhen compiling the several packages from /home/builder/master/master50/master_eXtremeDB_4.0.1780_linux/packs_x64.The error info is below:

    ly@localhost perf]$ makeSHOW_BUILD_LOG=on

    mkdir -p obj/

    mkdir -p obj/db/

    true  &&../../../../host/bin/mcocomp -x64 -Pobj/db/      perf.mco 

     

    eXtremeDB Data Definition LanguageProcessor (Build 1780)

    Copyright (c) 2001-2013 McObjectLLC.  All Rights Reserved.

     

    Compiled successfully: Sat Sep 2823:14:58 2013

     

    cc  -O3   -D_GNU_SOURCE -D_LINUX  -D_SMP -D_Ix86 -DMCO_PLATFORM_X64 -Wall  -m64-DMCO_CFG_USE_DIRECT_POINTERS   -DMCO_LARGE_DATABASE_SUPPORT -I../../../../include  -I../../../../include/ha -I../../../../tests/thlib-I../../../../include/ws -I../../../../samples/common -Iobj/db/ -I../../../../include/sql -I../../../../include/sql/odbc -c obj/db/perf.c -oobj/db/perf.o

    cc  -O3   -D_GNU_SOURCE -static  -m64   -L../../../../target/binobj/db/perf.o  obj/main.o ../../../../samples/common/common.o../../../../samples/common/initos.o   -lmcolib  -lmcovtmem -lmcoslnxp  -lmcomconv  -lmcotmursiw  -lmcolib  -lmcouwrt-lpthread -lm -ldl    -o../../../../target/bin/08-benchmarks-perf

    /usr/bin/ld: cannot find-lpthread

    collect2: ld returned 1 exitstatus

    make: ***[../../../../target/bin/08-benchmarks-perf] Error 1

     



    SOlution:

    1. Disable -static flag in theinclude/header.mak

    2. install the static version of pthread(depends on the distribution)


  • 相关阅读:
    Redis学习笔记
    Springboot + Tomcat跑项目出现端口被占用的问题
    按层打印二叉树
    打印二叉树的镜像——剑指offer
    判断树的子结构——剑指offer
    实习半个月的感想
    使用KMP算法判断是否为旋转词
    微信双开
    win10 右键添加cmd当前目录打开
    勒索邮件
  • 原文地址:https://www.cnblogs.com/fuhaots2009/p/3459252.html
Copyright © 2011-2022 走看看