Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Does I forget something?

Does I forget something? 12 years 10 months ago #2184

  • hfuhuang
  • hfuhuang's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 53
  • Karma: 0
Hi Claes/Robert,

I tried to build the source again and failed. My steps:
1. Download the pwrsrc_4.8.1-2
2, upzip and followed the instructions in build-howto.info, then run the \"easy way\", that is \"make\"

But I got a link error:
/home/hfu/workspace/pwrsrc_4.8.1-2/xtt/exe/rt_xtt/gtk/.os_linux/.hw_x86
make[1]: Entering directory `/home/hfu/workspace/pwrsrc_4.8.1-2/xtt/exe/rt_xtt/gtk/.os_linux/.hw_x86'
Linking /home/hfu/workspace/pwrsrc_4.8.1-2/rls/os_linux/hw_x86/xtt/exe/rt_xtt
/home/hfu/workspace/pwrsrc_4.8.1-2/rls/os_linux/hw_x86/xtt/lib/libpwr_xtt.a(xtt_hist.o): In function `Hist::get_hist_list()':
/home/hfu/workspace/pwrsrc_4.8.1-2/xtt/lib/xtt/src/.os_linux/.hw_x86/../../xtt_hist.cpp:271: undefined reference to `db_create'
/home/hfu/workspace/pwrsrc_4.8.1-2/xtt/lib/xtt/src/.os_linux/.hw_x86/../../xtt_hist.cpp:274: undefined reference to `db_strerror'
/home/hfu/workspace/pwrsrc_4.8.1-2/xtt/lib/xtt/src/.os_linux/.hw_x86/../../xtt_hist.cpp:290: undefined reference to `db_strerror'
/home/hfu/workspace/pwrsrc_4.8.1-2/xtt/lib/xtt/src/.os_linux/.hw_x86/../../xtt_hist.cpp:303: undefined reference to `db_strerror'
/home/hfu/workspace/pwrsrc_4.8.1-2/xtt/lib/xtt/src/.os_linux/.hw_x86/../../xtt_hist.cpp:344: undefined reference to `db_strerror'
/home/hfu/workspace/pwrsrc_4.8.1-2/xtt/lib/xtt/src/.os_linux/.hw_x86/../../xtt_hist.cpp:353: undefined reference to `db_strerror'
/home/hfu/workspace/pwrsrc_4.8.1-2/rls/os_linux/hw_x86/xtt/lib/libpwr_xtt.a(xtt_hist.o):/home/hfu/workspace/pwrsrc_4.8.1-2/xtt/lib/xtt/src/.os_linux/.hw_x86/../../xtt_hist.cpp:359: more undefined references to `db_strerror' follow
/home/hfu/workspace/pwrsrc_4.8.1-2/rls/os_linux/hw_x86/exp/lib/libpwr_co.a(co_user.o): In function `UserList::pwcrypt(char const*)':
/home/hfu/workspace/pwrsrc_4.8.1-2/src/lib/co/src/os_linux/.hw_x86/../../co_user.cpp:945: undefined reference to `crypt'
collect2: ld returned 1 exit status
make[1]: *** [/home/hfu/workspace/pwrsrc_4.8.1-2/rls/os_linux/hw_x86/xtt/exe/rt_xtt] Error 1
make[1]: Leaving directory `/home/hfu/workspace/pwrsrc_4.8.1-2/xtt/exe/rt_xtt/gtk/.os_linux/.hw_x86'

My system is:
hfu@hfu-HP:~/workspace/pwrsrc_4.8.1-2$ uname -a
Linux hfu-HP 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 athlon i386 GNU/Linux

Do you know what is wrong here? Thanks!
The administrator has disabled public write access.

Re:Does I forget something? 12 years 10 months ago #2187

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi Hongfu,

It's the BerkeleyDB functions that are undefined, have you installed libdb4.8-dev ?
You can compare you config file under pwrsrc_4.8.1-2/rls with the one below and see what you are missing (possibly also libcrypt?).

[code:1]#!/bin/bash
#
# pwre configuration file
#
# Generated by pwre_configure 2011-05-15 10:30:41 AM
# Do not edit this file
#
export PWRE_CONF_GTK=1
export PWRE_CONF_MRM=0
export PWRE_CONF_LIBANTLR=1
export PWRE_CONF_LIBRPCSVC=1
export PWRE_CONF_LIBASOUND=1
export PWRE_CONF_LIBPTHREAD=1
export PWRE_CONF_LIBM=1
export PWRE_CONF_LIBDB=1
export PWRE_CONF_LIBDB_CXX=1
export PWRE_CONF_LIBZ=1
export PWRE_CONF_LIBCRYPT=1
export PWRE_CONF_MYSQL=1
export PWRE_CONF_MQ=0
export PWRE_CONF_WMQ=0
export PWRE_CONF_PNAK=0
export PWRE_CONF_LIBUSB=1
export PWRE_CONF_LIBRT=1
export PWRE_CONF_LIBFL=1
export PWRE_CONF_LIBX11=1
export PWRE_CONF_ANTLR=1
export PWRE_CONF_GTK=1
export PWRE_CONF_JNI=1
export PWRE_CONF_JNI=1
export pwre_conf_cc_define=\"-DOS_LINUX=1 -DHW_X86=1 -DOS=linux -DHW=x86 -D_LINUX -DPWRE_CONF_MYSQL=1 -DPWRE_CONF_LIBUSB=1 -DPWRE_CONF_ANTLR=1 -DPWRE_CONF_GTK=1 -DPWRE_CONF_JNI=1\"
export pwre_conf_libpwrco=\"-lpwr_co\"
export pwre_conf_libpwrrt=\"-lpwr_rt -lpwr_co -lpwr_statussrv -lpwr_msg_dummy\"
export pwre_conf_libpwrdtt=\"-lpwr_dtt\"
export pwre_conf_libpwrotherio=\"-lpwr_usbio_dummy -lpwr_usb_dummy\"
export pwre_conf_libpwrprofibus=\"-lpwr_pnak_dummy\"
export pwre_conf_libpwrxtt=\"-lpwr_xtt -lpwr_ge -lpwr_cow -lpwr_flow -lpwr_glow\"
export pwre_conf_libpwrxttgtk=\" -lpwr_xtt_gtk -lpwr_ge_gtk -lpwr_cow_gtk -lpwr_flow_gtk -lpwr_glow_gtk\"
export pwre_conf_libpwrxttmotif=\" -lpwr_xtt_motif -lpwr_ge_motif -lpwr_cow_motif -lpwr_flow_motif -lpwr_glow_motif\"
export pwre_conf_libpwrwb=\"-lpwr_wb\"
export pwre_conf_libpwrwbgtk=\"-lpwr_wb_gtk\"
export pwre_conf_libpwrwbmotif=\"-lpwr_wb_motif\"
export pwre_conf_libpwropc=\"-lpwr_opc\"
export pwre_conf_libpwrremote=\"-lpwr_remote\"
export pwre_conf_libpwrnmps=\"-lpwr_nmps\"
export pwre_conf_libpwrtlog=\"-lpwr_tlog\"
export pwre_conf_libpwrsev=\"-lpwr_sev\"
export pwre_conf_lib=\" -lrpcsvc -lasound -lpthread -lm -ldb -lz -lcrypt -lmysqlclient -lusb-1.0 -lrt -lfl -lX11\"
export pwre_conf_libwb=\" -lantlr -ldb_cxx\"
export pwre_conf_libmq=\"\"
export pwre_conf_libwmq=\"\"
export pwre_conf_libgtk=\" \`pkg-config --libs gtk+-2.0\`\"
export pwre_conf_libmotif=\"\"
export pwre_conf_libdir=\" -L/usr/local/lib\"
export pwre_conf_incdir=\" -I/usr/local/include/antlr -I/usr/include/gtk-2.0/gtk -I/usr/local/jdk1.6.0_13/include -I/usr/local/jdk1.6.0_13/include/linux\"
export pwre_conf_incdirgtk=\" \`pkg-config --cflags gtk+-2.0\`\"
[/code:1]

/Claes
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 7.825 seconds