Thrift Make Error - cassandra

I can't compile thrift properly, when I use make, this is the output:
make all
make all-recursive
make[1]: Entering directory `/root/thrift'
Making all in compiler/cpp
make[2]: Entering directory `/root/thrift/compiler/cpp'
make all-am
make[3]: Entering directory `/root/thrift/compiler/cpp'
g++ -DHAVE_CONFIG_H -I. -I../.. -Wall -I./src -D PTHREAD_MUTEX_RECURSIVE_NP=PTHREAD_MUTEX_RECURSIVE -MT thrift-thrifty.o -MD -MP -MF .deps/thrift-thrifty.Tpo -c -o thrift-thrifty.o `test -f 'thrifty.cc' || echo './'`thrifty.cc
In file included from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:41,
from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr.h:162,
from /usr/include/c++/4.4/ext/atomicity.h:34,
from /usr/include/c++/4.4/bits/basic_string.h:41,
from /usr/include/c++/4.4/string:53,
from ./src/main.h:23,
from thrifty.yy:33:
/usr/include/pthread.h:55: error: redefinition of 'PTHREAD_MUTEX_RECURSIVE'
/usr/include/pthread.h:49: error: 'PTHREAD_MUTEX_RECURSIVE' previously defined here
make[3]: *** [thrift-thrifty.o] Error 1
make[3]: Leaving directory `/root/thrift/compiler/cpp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/thrift/compiler/cpp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/thrift'
make: *** [all] Error 2
Any ideas? thanks :)

Related

When i compile my C project , it gives me 'undefined reference'

I am trying to compile a project using a shared library. When I compile, It gives me undefined reference. I think there are problem in my make file (link with the .so file).
here is the part of the makefile used to call the libraries:
#Source Files
SOURCE = ./*.c
#LIBS to include
LIBS = -ldl
LIBS += -lpthread
LIBS += -lRTU_Module
I am using NetBeans and maybe i am doing something wrong in the creation of the project.
here is the message code :
CLEAN SUCCESSFUL (total time: 99ms)
cd '/home/owasys/workspace/AccelTest'
/usr/bin/make -f Makefile CONF=Debug
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/home/owasys/workspace/AccelTest'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU_linaro-Linux/acceltest
make[2]: Entering directory '/home/owasys/workspace/AccelTest'
mkdir -p build/Debug/GNU_linaro-Linux
rm -f "build/Debug/GNU_linaro-Linux/main.o.d"
arm-linux-gnueabihf-gcc -c -g -MMD -MP -MF "build/Debug/GNU_linaro-Linux/main.o.d" -o build/Debug/GNU_linaro-Linux/main.o main.c
mkdir -p dist/Debug/GNU_linaro-Linux
arm-linux-gnueabihf-gcc -o dist/Debug/GNU_linaro-Linux/acceltest build/Debug/GNU_linaro-Linux/main.o -L. libRTU_Module.so
make[2]: Leaving directory '/home/owasys/workspace/AccelTest'
make[1]: Leaving directory '/home/owasys/workspace/AccelTest'
Building owa4x_AN8 Object
arm-linux-gnueabihf-gcc -Wall -mthumb -mthumb-interwork -D_REENTRANT -oowa4x_AN8 main.c -ldl -lpthread -lRTU_Module
arm-linux-gnueabihf-strip owa4x_AN8
for CONF in Debug Release ; \
do \
"/usr/bin/make" -f nbproject/Makefile-${CONF}.mk QMAKE= SUBPROJECTS= .build-conf; \
done
make[1]: Entering directory '/home/owasys/workspace/AccelTest'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU_linaro-Linux/acceltest
make[2]: Entering directory '/home/owasys/workspace/AccelTest'
make[2]: 'dist/Debug/GNU_linaro-Linux/acceltest' is up to date.
make[2]: Leaving directory '/home/owasys/workspace/AccelTest'
make[1]: Leaving directory '/home/owasys/workspace/AccelTest'
make[1]: Entering directory '/home/owasys/workspace/AccelTest'
"/usr/bin/make" -f nbproject/Makefile-Release.mk dist/Release/GNU_linaro-Linux/acceltest
make[2]: Entering directory '/home/owasys/workspace/AccelTest'
mkdir -p dist/Release/GNU_linaro-Linux
arm-linux-gnueabihf-gcc -o dist/Release/GNU_linaro-Linux/acceltest build/Release/GNU_linaro-Linux/main.o
build/Release/GNU_linaro-Linux/main.o: In function `GetWakeUpreason':
main.c:(.text+0x72): undefined reference to `RTUGetWakeUpReason'
build/Release/GNU_linaro-Linux/main.o: In function `main':
main.c:(.text.startup+0xc): undefined reference to `RTUControl_Initialize'
main.c:(.text.startup+0x16): undefined reference to `RTUControl_Start'
main.c:(.text.startup+0xa6): undefined reference to `RTUEnterStandby'
main.c:(.text.startup+0xba): undefined reference to `RTUControl_Finalize'
main.c:(.text.startup+0xd2): undefined reference to `RTUEnterStop'
main.c:(.text.startup+0x16a): undefined reference to `RTUSetWakeUpTime'
main.c:(.text.startup+0x204): undefined reference to `RTUSetHWTime'
main.c:(.text.startup+0x224): undefined reference to `RTUGetHWTime'
main.c:(.text.startup+0x246): undefined reference to `RTUGetExtControllerVersion'
main.c:(.text.startup+0x284): undefined reference to `RTU_GetMovementSensor'
main.c:(.text.startup+0x2a4): undefined reference to `RTU_RemoveMovementSensor'
main.c:(.text.startup+0x2c6): undefined reference to `RTU_GetCfgMovement'
main.c:(.text.startup+0x368): undefined reference to `RTU_CfgMovementDetection'
main.c:(.text.startup+0x3cc): undefined reference to `RTU_CfgMovementSensor'
main.c:(.text.startup+0x3f4): undefined reference to `RTUGetBatteryState'
main.c:(.text.startup+0x414): undefined reference to `RTUResetMoved'
main.c:(.text.startup+0x43a): undefined reference to `RTUGetMoved'
main.c:(.text.startup+0x48c): undefined reference to `RTU_GetRawAcceleration'
collect2: error: ld returned 1 exit status
nbproject/Makefile-Release.mk:62: recipe for target 'dist/Release/GNU_linaro-Linux/acceltest' failed
make[2]: *** [dist/Release/GNU_linaro-Linux/acceltest] Error 1
make[2]: Leaving directory '/home/owasys/workspace/AccelTest'
nbproject/Makefile-Release.mk:59: recipe for target '.build-conf' failed
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory '/home/owasys/workspace/AccelTest'
nbproject/Makefile-impl.mk:59: recipe for target '.all-impl' failed
make: *** [.all-impl] Error 2
BUILD FAILED (exit value 2, total time: 651ms)
Thank you

Building Swift SourceKit on Linux

https://github.com/apple/swift/pull/3594#issuecomment-234169759
$ utils/build-script --libdispatch
$ utils/build-script --libdispatch --extra-cmake-options="-DSWIFT_BUILD_SOURCEKIT:BOOL=TRUE"
Looks like the second command does nothing to build the SourceKit. No binary created in build directory. Any advice what to do?
jara#jara-pc:~/swift-source/swift$ utils/build-script --libdispatch --extra-cmake-options="-DSWIFT_BUILD_SOURCEKIT:BOOL=TRUE"
+ mkdir -p /home/jara/swift-source/build/Ninja-DebugAssert
+ env HOST_VARIABLE_linux_x86_64__SWIFT_BENCHMARK_TARGETS= HOST_VARIABLE_linux_x86_64__SWIFT_RUN_BENCHMARK_TARGETS= HOST_VARIABLE_linux_x86_64__SWIFT_SDKS=LINUX HOST_VARIABLE_linux_x86_64__SWIFT_STDLIB_TARGETS=swift-test-stdlib-linux-x86_64 HOST_VARIABLE_linux_x86_64__SWIFT_TEST_TARGETS= /home/jara/swift-source/swift/utils/build-script-impl --workspace /home/jara/swift-source --build-dir /home/jara/swift-source/build/Ninja-DebugAssert --install-prefix /usr --host-target linux-x86_64 --stdlib-deployment-targets linux-x86_64 --host-cc /usr/bin/clang --host-cxx /usr/bin/clang++ --darwin-xcrun-toolchain default --darwin-deployment-version-osx=10.9 --darwin-deployment-version-ios=7.0 --darwin-deployment-version-tvos=9.0 --darwin-deployment-version-watchos=2.0 --cmake /usr/local/bin/cmake --cmark-build-type Debug --llvm-build-type Debug --swift-build-type Debug --swift-stdlib-build-type Debug --lldb-build-type Debug --foundation-build-type Debug --libdispatch-build-type Debug --xctest-build-type Debug --swift-enable-assertions true --swift-stdlib-enable-assertions true --swift-analyze-code-coverage false --cmake-generator Ninja --build-jobs 4 '--common-cmake-options=-G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++' --build-args=-j4 --cmark-cmake-options= '--llvm-cmake-options=-DLLVM_ENABLE_ASSERTIONS=TRUE -DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ' --swift-cmake-options= --libdispatch-cmake-options= --build-stdlib-deployment-targets all --ninja-bin=/usr/bin/ninja --skip-build-foundation --skip-build-xctest --skip-build-lldb --skip-build-llbuild --skip-build-swiftpm --skip-build-playgroundlogger --skip-build-playgroundsupport --build-swift-dynamic-stdlib --build-swift-dynamic-sdk-overlay --skip-build-ios-device --skip-build-ios-simulator --skip-build-tvos-device --skip-build-tvos-simulator --skip-build-watchos-device --skip-build-watchos-simulator --skip-build-android --skip-test-swift --skip-test-cmark --skip-test-lldb --skip-test-llbuild --skip-test-swiftpm --skip-test-xctest --skip-test-foundation --skip-test-libdispatch --skip-test-playgroundlogger --skip-test-playgroundsupport --skip-test-linux --skip-test-freebsd --skip-test-cygwin --skip-test-osx --skip-test-ios-host --skip-test-ios-simulator --skip-test-tvos-host --skip-test-tvos-simulator --skip-test-watchos-host --skip-test-watchos-simulator --skip-test-android-host --skip-test-benchmarks --skip-test-optimized --android-deploy-device-path /data/local/tmp --extra-cmake-options=-DSWIFT_BUILD_SOURCEKIT:BOOL=TRUE --llvm-lit-args=-sv
Building the standard library for: swift-test-stdlib-linux-x86_64
cmark: using gold linker
+ rm -rf /home/jara/swift-source/build/Ninja-DebugAssert/cmark-linux-x86_64/module-cache
+ mkdir -p /home/jara/swift-source/build/Ninja-DebugAssert/cmark-linux-x86_64/module-cache
+ /usr/local/bin/cmake --build /home/jara/swift-source/build/Ninja-DebugAssert/cmark-linux-x86_64 -- -j4 all
ninja: no work to do.
llvm: using gold linker
+ rm -rf /home/jara/swift-source/build/Ninja-DebugAssert/llvm-linux-x86_64/module-cache
+ mkdir -p /home/jara/swift-source/build/Ninja-DebugAssert/llvm-linux-x86_64/module-cache
symlinking the system headers (/usr/include/c++) into the local clang build directory (/home/jara/swift-source/build/Ninja-DebugAssert/llvm-linux-x86_64/include).
+ ln -s -f /usr/include/c++ /home/jara/swift-source/build/Ninja-DebugAssert/llvm-linux-x86_64/include
+ /usr/local/bin/cmake --build /home/jara/swift-source/build/Ninja-DebugAssert/llvm-linux-x86_64 -- -j4 all
ninja: no work to do.
swift: using gold linker
+ rm -rf /home/jara/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/module-cache
+ mkdir -p /home/jara/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/module-cache
+ /usr/local/bin/cmake --build /home/jara/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64 -- -j4 all swift-test-stdlib-linux-x86_64
ninja: no work to do.
libdispatch: using gold linker
Skipping reconfiguration of libdispatch
+ pushd /home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64
~/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64 ~/swift-source/swift
+ make
Making all in dispatch
make[1]: Entering directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/dispatch'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/dispatch'
Making all in libpwq
make[1]: Entering directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/libpwq'
make all-am
make[2]: Entering directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/libpwq'
make[2]: Leaving directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/libpwq'
make[1]: Leaving directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/libpwq'
Making all in libkqueue
make[1]: Entering directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/libkqueue'
make all-am
make[2]: Entering directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/libkqueue'
make[2]: Leaving directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/libkqueue'
make[1]: Leaving directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/libkqueue'
Making all in man
make[1]: Entering directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/man'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/man'
Making all in os
make[1]: Entering directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/os'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/os'
Making all in private
make[1]: Entering directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/private'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/private'
Making all in src
make[1]: Entering directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/src'
make all-am
make[2]: Entering directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/src'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/src'
make[1]: Leaving directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/src'
Making all in tests
make[1]: Entering directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/tests'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/tests'
make[1]: Entering directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64'
+ popd
~/swift-source/swift
+ pushd /home/jara/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/tests
~/swift-source/build/Ninja-DebugAssert/libdispatch-linux-x86_64/tests ~/swift-source/swift
+ make build-tests
make: Nothing to be done for `build-tests'.
+ popd
~/swift-source/swift
I have kept environment for building SourceKit on Linux since swift-3.0-PREVIEW-3.
https://github.com/norio-nomura/docker-sourcekit-builder/

How to install sendmail in CentOS?

I want ask " how to manual install sendmail in CentOS " .
I can install it by command "yum install" , but i need install manual .
I went to the homepage http://www.sendmail.com/sm/open_source/download/
and download the "sendmail.8.14.9.tar.gz" but do not know how to install It . I try unrar and type the command "./Build" but it is't work
Here is error :
/home/duc/Desktop/sendmail-8.14.9/libsm
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
cc -O2 -I. -I../../include -c -o assert.o assert.c
make[1]: cc: Command not found
make[1]: *** [assert.o] Error 127
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/libsmutil
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmutil
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmutil'
cc -O2 -I. -I../../sendmail -I../../include -DNOT_SENDMAIL -c -o debug.o debug.c
make[1]: cc: Command not found
make[1]: *** [debug.o] Error 127
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmutil'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/libsmdb
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmdb
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmdb'
cc -O2 -I. -I../../sendmail -I../../include -DNOT_SENDMAIL -c -o smdb.o smdb.c
make[1]: cc: Command not found
make[1]: *** [smdb.o] Error 127
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmdb'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/sendmail
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/sendmail
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/sendmail'
(cd ../../libsm; sh Build )
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm
make[2]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
cc -O2 -I. -I../../include -c -o assert.o assert.c
make[2]: cc: Command not found
make[2]: *** [assert.o] Error 127
make[2]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
make[1]: *** [/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm/libsm.a] Error 2
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/sendmail'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/editmap
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/editmap
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/editmap'
(cd ../../libsm; sh Build )
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm
make[2]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
cc -O2 -I. -I../../include -c -o assert.o assert.c
make[2]: cc: Command not found
make[2]: *** [assert.o] Error 127
make[2]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
make[1]: *** [/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm/libsm.a] Error 2
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/editmap'
Please help me !! Sorry for my bad english
It can't find C compiler:
make[1]: cc: Command not found
The build system is reading value of CC environment variable, so assign it a path to your compiler, e.g.
export CC=/usr/bin/gcc
As Oleksandr Kravchuk said, you need to link your gcc to cc. First try to execute below commands.
$ which gcc
If you have gcc packages on your server, you can see the output of your commands.
$ which gcc
/usr/bin/gcc
$
If you have root privileges, please make symbolic link of gcc to /usr/bin/cc.
$ sudo ln -s /usr/bin/gcc /usr/bin/cc
Then it'll be works.

FreeBSD phpEclipse installation error

Im new to FreeBSD and I'm attempting to install PHP-Eclipse. During the installation process I get the following error. Does anyone know what it mean and how to fix it? Thanks.
Below is the the output:
[echo] +---------------------------------------+
[echo] + Finishing ant project jaxws
[echo] +---------------------------------------+
BUILD SUCCESSFUL
Total time: 12 seconds
gmake[2]: Leaving directory `/usr/ports/java/openjdk6/work/jaxws/make'
/bin/mkdir -p /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir
/bin/mkdir -p /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/import
cd ./hotspot/make && \
gmake JDK_TOPDIR=/usr/ports/java/openjdk6/work/jdk JDK_MAKE_SHARED_DIR=/usr/ports/java/openjdk6/work/jdk/make/common/shared EXTERNALSANITYCONTROL=true TARGET_CLASS_VERSION=5 MILESTONE=fcs BUILD_NUMBER=b24 JDK_BUILD_NUMBER=b24 FULL_VERSION=1.6.0_30-b24 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.6.0_30 JDK_MKTG_VERSION=6u30 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=6 JDK_MICRO_VERSION=0 ARCH_DATA_MODEL=64 COOKED_JDK_UPDATE_VERSION=300 COOKED_BUILD_NUMBER=24 ANT_HOME="/usr/ports/java/openjdk6/work/apache-ant-1.8.2" ALT_OUTPUTDIR=/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir ALT_EXPORT_PATH=/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/import ALT_SLASH_JAVA=/NOT-SET ALT_BOOTDIR=/usr/local/jdk1.6.0 ALT_LANGTOOLS_DIST=/usr/ports/java/openjdk6/work/build/bsd-i386/langtools/dist all_product
gmake[2]: Entering directory `/usr/ports/java/openjdk6/work/hotspot/make'
Makefile:375: target `/Xusage.txt' given more than once in the same rule.
cd /usr/ports/java/openjdk6/work/hotspot/make; \
gmake VM_TARGET=product generic_build2 ALT_OUTPUTDIR=/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir
gmake[3]: Entering directory `/usr/ports/java/openjdk6/work/hotspot/make'
Makefile:375: target `/Xusage.txt' given more than once in the same rule.
mkdir -p /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir
cd /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir; \
gmake -f /usr/ports/java/openjdk6/work/hotspot/make/bsd/Makefile \
LP64=1 JAVA_HOME=/usr/local/jdk1.6.0 OUTPUTDIR=/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir GAMMADIR=/usr/ports/java/openjdk6/work/hotspot MAKE_VERBOSE=y HOTSPOT_RELEASE_VERSION=20.0-b12 JRE_RELEASE_VERSION=1.6.0_30-b24 HOTSPOT_BUILD_VERSION= product
gmake[4]: Entering directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir'
cd bsd_amd64_compiler2/product && gmake -w " LP64=1 "
gmake[5]: Entering directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
gmake[6]: Entering directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
Compiling /usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp
rm -f ../generated/adfiles/adlparse.o
/usr/bin/g++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm/prims -I/usr/ports/java/openjdk6/work/hotspot/src/cpu/x86/vm -I/usr/ports/java/openjdk6/work/hotspot/src/os/bsd/vm -I/usr/ports/java/openjdk6/work/hotspot/src/os_cpu/bsd_x86/vm -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc -I../generated -DASSERT -O2 -pipe -fno-strict-aliasing -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -Werror -g -c -o ../generated/adfiles/adlparse.o /usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp
/usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp:1: sorry, unimplemented: 64-bit mode not compiled in
gmake[6]: *** [../generated/adfiles/adlparse.o] Error 1
gmake[6]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
gmake[5]: *** [ad_stuff] Error 2
gmake[5]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
gmake[4]: *** [product] Error 2
gmake[4]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir'
gmake[3]: *** [generic_build2] Error 2
gmake[3]: Leaving directory `/usr/ports/java/openjdk6/work/hotspot/make'
gmake[2]: *** [product] Error 2
gmake[2]: Leaving directory `/usr/ports/java/openjdk6/work/hotspot/make'
gmake[1]: *** [hotspot-build] Error 2
gmake[1]: Leaving directory `/usr/ports/java/openjdk6/work'
gmake: *** [build_product_image] Error 2
*** Error code 1
Stop in /usr/ports/java/openjdk6.
*** Error code 1
Stop in /usr/ports/java/openjdk6.
*** Error code 1
Stop in /usr/ports/java/eclipse.
*** Error code 1
Stop in /usr/ports/java/eclipse.
*** Error code 1
Stop in /usr/ports/java/phpeclipse.
The problem seems to be the -m64 in the compiler flags.
Did you have set any custom CFLAGS or CPUTYPE in /etc/make.conf? If yes remove them
If not, you might try to install openjdk from a binart package with pkg_add

How can I link rpmdb library with makefile?

I try to install nautilus-rpm in Fedora 15.
This is error message.
[test#localhost nautilus-rpm-0.1]$ make
make all-recursive
make[1]: Entering directory `/home/designmade/다운로드/nautilus-rpm-0.1'
Making all in src
make[2]: Entering directory `/home/designmade/다운로드/nautilus-rpm-0.1/src'
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o librpmdb-method.la -rpath /usr/local/lib/gnome-vfs-2.0/modules -module -avoid-version rpmdb.lo -pthread -lgnomevfs-2 -lgconf-2 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lrpm -lrpmdb -lrpmio -lpopt
rm -fr .libs/librpmdb-method.la .libs/librpmdb-method.* .libs/librpmdb-method.*
gcc -shared rpmdb.lo -lgnomevfs-2 -lgconf-2 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lrpm -lrpmdb -lrpmio -lpopt -Wl,-soname -Wl,librpmdb-method.so -o .libs/librpmdb-method.so
/usr/bin/ld: cannot find -lrpmdb
collect2: ld returned 1 exit status
make[2]: *** [librpmdb-method.la] 오류 1
make[2]: Leaving directory `/home/designmade/다운로드/nautilus-rpm-0.1/src'
make[1]: *** [all-recursive] 오류 1
make[1]: Leaving directory `/home/designmade/다운로드/nautilus-rpm-0.1'
make: *** [all] 오류 2
and I try to find files about rpmdb.
[root#localhost nautilus-rpm-0.1]# find / -name *rpmdb*
/var/lib/yum/rpmdb-indexes
/usr/bin/rpmdb
/usr/lib/rpm/rpmdb_load
/usr/lib/rpm/rpmdb_verify
/usr/lib/rpm/rpmdb_loadcvt
/usr/lib/rpm/rpmdb_recover
/usr/lib/rpm/rpmdb_dump
/usr/lib/rpm/rpmdb_stat
/usr/lib/rpm/rpmdb_upgrade
/usr/include/rpm/rpmdb.h
/usr/share/man/man8/rpmdb.8.gz
/home/test/다운로드/nautilus-rpm-0.1/src/.deps/rpmdb.Plo
/home/test/다운로드/nautilus-rpm-0.1/src/rpmdb.desktop.in
/home/test/다운로드/nautilus-rpm-0.1/src/rpmdb.lo
/home/test/다운로드/nautilus-rpm-0.1/src/rpmdb.o
/home/test/다운로드/nautilus-rpm-0.1/src/rpmdb.conf
/home/designmade/다운로드/nautilus-rpm-0.1/src/rpmdb.c
/home/designmade/다운로드/nautilus-rpm-0.1/src/rpmdb.keys.in
I can't understand why it doesn't work.
You need a development package containing librpmdb.so.
librpmdb merged with librpm in 4.6:
http://community.ingres.com/forum/database-general/2467-gui-installer-wont-work-fedora-core-10-a.html
So use -lrpm instead.

Resources