[Olsr-users] Compiling Error for olsrd
Bruce Ford
(spam-protected)
Wed Mar 23 13:11:01 CET 2011
v0.6.1 tarball on home page of www.olsr.org builds with cygwin gcc 3.4.4
under Windows XP SP3 after the minor correction below:
---------------------------------------------------------------------------
$ diff -p olsrd-0.6.1_unmodified/src/main.c olsrd-0.6.1/src/main.c
*** olsrd-0.6.1_unmodified/src/main.c 2010-11-12 02:07:55.000000000 +1000
--- olsrd-0.6.1/src/main.c 2011-03-23 21:51:00.834116800 +1000
*************** static int olsr_create_lock_file(bool no
*** 130,136 ****
#ifdef WIN32
HANDLE lck = CreateEvent(NULL, TRUE, FALSE, lock_file_name);
if (NULL == lck || ERROR_ALREADY_EXISTS == GetLastError()) {
! if (noenoExitOnFail) {
return -1;
}
if (NULL == lck) {
--- 130,136 ----
#ifdef WIN32
HANDLE lck = CreateEvent(NULL, TRUE, FALSE, lock_file_name);
if (NULL == lck || ERROR_ALREADY_EXISTS == GetLastError()) {
! if (noExitOnFail) {
return -1;
}
if (NULL == lck) {
---------------------------------------------------------------------------
make clean_all
make build_all
with an edit of main.c before a second "make build_all".
Executables can be made available if desired.
Bruce Ford
On Wed, Mar 23, 2011 at 9:01 PM, Markus Kittenberger <
(spam-protected)> wrote:
> btw are you trying to compile olsrd on windows? or crosscompiling?
>
> i did compile olsrd for windows 2 months sago, and had no problems,.. (the
> binary worked aswell *G)
>
> but i was using a different makefile (as i have a special one for all my
> crosscompile needs and i simple added windows as another target,..)
>
> btw if u desperately need a somewhat recent win32 binary, you will find
> them there
> http://193.238.157.78/~markus/olsrd/cross/arch_win32/i586/
>
> Markus
>
>
> On Wed, Mar 23, 2011 at 11:52 AM, Markus Kittenberger <
> (spam-protected)> wrote:
>
>>
>>
>> On Wed, Mar 23, 2011 at 7:23 AM, Henning Rogge <(spam-protected)>wrote:
>>
>>> On Wednesday 23 March 2011 02:53:09 you wrote:
>>> > This is the error message:
>>> >
>>> > $ make build_all
>>> > /usr/bin/ccache gcc -Wall -Wextra -Wold-style-definition
>>> > -Wdeclaration-after-sta tement -Wmissing-prototypes -Wstrict-prototypes
>>> > -Wmissing-declarations -Wsign-co mpare -Waggregate-return
>>> > -Wmissing-noreturn -Wmissing-format-attribute -Wno-mult ichar
>>> > -Wno-deprecated-declarations -Wendif-labels -Wwrite-strings
>>> -Wbad-function
>>> > -cast -Wpointer-arith -Wcast-qual -Wshadow -Wsequence-point
>>> > -Wpointer-arith -Wca st-align -Wnested-externs -Winline
>>> > -Wdisabled-optimization -finline-functions-ca lled-once
>>> -funit-at-a-time
>>> > -fearly-inlining -finline-limit=350 -mno-cygwin -gg db -Isrc
>>> -DUSE_FPM
>>> > -DWIN32 -D_WIN32_WINNT=0x0600 -I./src/win32 -DDEBUG -c - o
>>> > src/common/autobuf.o src/common/autobuf.c
>>>
>>
>> what about this:
>>
>>> > gcc: The -mno-cygwin flag has been removed; use a mingw-targeted
>>> > cross-compiler.
>>
>> maybe doing this will help?
>>
>>
>>
>>> >
>>> > make: *** [src/common/autobuf.o] Error 1
>>> Okay, that doesn't help a lot... does someone has an idea what is going
>>> on
>>> there ?
>>>
>>> Henning Rogge
>>> --
>>> 1) You can't win.
>>> 2) You can't break even.
>>> 3) You can't leave the game.
>>> — The Laws of Thermodynamics, summarized
>>>
>>> --
>>> Olsr-users mailing list
>>> (spam-protected)
>>> http://lists.olsr.org/mailman/listinfo/olsr-users
>>>
>>
>>
>
> --
> Olsr-users mailing list
> (spam-protected)
> http://lists.olsr.org/mailman/listinfo/olsr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20110323/2dcfaff1/attachment.html>
More information about the Olsr-users
mailing list