Hello,
I was trying to build the hello example.
Here I'm getting the following linking errors.
-bash-3.00$ make
[ 0%] Built target filetostring
[ 91%] Built target wt
[100%] Built target wthttp
Linking CXX executable hello.wt
Undefined first referenced
symbol in file
bind ../../src/http/libwthttp.so.2.2.0
if_indextoname ../../src/http/libwthttp.so.2.2.0
accept ../../src/http/libwthttp.so.2.2.0
listen ../../src/http/libwthttp.so.2.2.0
socket ../../src/http/libwthttp.so.2.2.0
recvmsg ../../src/http/libwthttp.so.2.2.0
sendmsg ../../src/http/libwthttp.so.2.2.0
setsockopt ../../src/http/libwthttp.so.2.2.0
getaddrinfo ../../src/http/libwthttp.so.2.2.0
getpeername ../../src/http/libwthttp.so.2.2.0
freeaddrinfo ../../src/http/libwthttp.so.2.2.0
inet_ntop ../../src/http/libwthttp.so.2.2.0
shutdown ../../src/http/libwthttp.so.2.2.0
ld: fatal: Symbol referencing errors. No output written to hello.wt
*** Error code 1
The following command caused the error:
cd /export/home/amitendra/WT_Build/wt-2.2.0/build/examples/hello &&
/export/home
/amitendra/CMake/bin/cmake -E cmake_link_script
CMakeFiles/hello.wt.dir/link.txt
--verbose=
make: Fatal error: Command failed for target `examples/hello/hello.wt'
Current working directory /export/home/amitendra/WT_Build/wt-2.2.0/build
*** Error code 1
The following command caused the error:
make -f examples/hello/CMakeFiles/hello.wt.dir/build.make
examples/hello/CMakeFi
les/hello.wt.dir/build
make: Fatal error: Command failed for target
`examples/hello/CMakeFiles/hello.wt
.dir/all'
Current working directory /export/home/amitendra/WT_Build/wt-2.2.0/build
*** Error code 1
The following command caused the error:
cd /export/home/amitendra/WT_Build/wt-2.2.0/build && make -f
CMakeFiles/Makefile
2 examples/hello/all
make: Fatal error: Command failed for target `all'
On 9/24/08, Amitendra Mukherjee <[EMAIL PROTECTED]> wrote:
>
> Thanks a lot friends, build & installation is complete.
>
> Now how can test it?
> I was trying to build the examples as written in the document with "make -C
> examples".
> But it is not working.
>
> -bash-3.00$ make -C examples
> Usage : make [ -f makefile ][ -K statefile ]... [ -d ][ -dd ][ -D ][ -DD ]
> [ -e ][ -i ][ -k ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S ][
> -t ]
> [ -u ][ -w ][ -V ][ target... ][ macro=value... ][ "macro
> +=value".
> .. ]
> make: Fatal error: Unknown option `-C'
> -bash-3.00$
>
> Amit
>
>
> On 9/23/08, Koen Deforche <[EMAIL PROTECTED]> wrote:
>>
>> Hey Amitenda,
>>
>> 2008/9/23 Amitendra Mukherjee <[EMAIL PROTECTED]>:
>> > Hello Koen,
>> >
>> > Now it gives the following error...
>> >
>> > ==============================================
>> > [100%] Building CXX object src/http/CMakeFiles/wthttp.dir/WServer.o
>> > "/export/home/amitendra/WT_Build/wt-2.2.0/src/http/WServer.C", line 241:
>> > Error:
>> > Too many arguments in call to "sigwait(sigset_t*)".
>> > 1 Error(s) detected.
>> > *** Error code 1
>> > The following command caused the error:
>> > cd /export/home/amitendra/WT_Build/wt-2.2.0/build/src/http &&
>> /usr/bin/CC
>> > -DTH
>> > READED -D_REENTRANT -DBOOST_SPIRIT_THREADSAFE -DWTHTTP_WITH_ZLIB
>> > -DBOOST_ASIO -D
>> > wthttp_EXPORTS -library=stlport4 -m64 -xO2 -KPIC
>>
>> You are missing the -D_POSIX_PTHREAD_SEMANTICS in your compile command:
>>
>> In your CMakeCache.txt you should have:
>>
>> CMAKE_CXX_FLAGS:STRING=-library=stlport4 -D_POSIX_PTHREAD_SEMANTICS
>>
>> Regards,
>> koen
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest