Re: [ossec-list] on ubuntu compile windows 64bit error

2017-04-17 Thread weisst


在 2017年4月15日星期六 UTC+8上午3:18:42,dan (ddpbsd)写道:
>
> On Thu, Apr 13, 2017 at 9:24 PM, weisst  
> wrote: 
> > windows 2012 r2 error 
> > 问题签名: 
> >   问题事件名称:APPCRASH 
> >   应用程序名:win32ui.exe 
> >   应用程序版本:0.0.0.0 
> >   应用程序时间戳:58ef28a9 
> >   故障模块名称:StackHash_bc03 
> >   故障模块版本:6.3.9600.17415 
> >   故障模块时间戳:5450559e 
> >   异常代码:c374 
> >   异常偏移:PCH_B7_FROM_ntdll+0x000911FA 
> >   OS 版本:6.3.9600.2.0.0.272.7 
> >   区域设置 ID:2052 
> >   其他信息 1:bc03 
> >   其他信息 2:bc03b0099517a014308582161a3173b5 
> >   其他信息 3:e3d5 
> >   其他信息 4:e3d5a6322d624c2d8e59088803c5efc2 
> > 
>
> I have no idea. Never seen that, and not sure what to do with it. 
> Google translate translated it just fine though. 
> You should be able to setup ossec without the gui. Just modify the 
> ossec.conf and client.keys. You'll need to get the key format from the 
> server, and you'll need to add the correct server IP to the 
> ossec.conf. 
>
Thanks dan, i try start ossec service without the gui, and config correct 
client.keys and ossec.conf, also error
windows 64 bit system is almost a standard system, can hava a plan hava a 
64 bit ossec, thanks again

>
> > 联机阅读隐私声明: 
> >   http://go.microsoft.com/fwlink/?linkid=280262 
> > 
> > 如果无法获取联机隐私声明,请脱机阅读我们的隐私声明: 
> >   C:\Windows\system32\zh-CN\erofflps.txt 
> > 
> > 
> > 在 2017年4月14日星期五 UTC+8上午6:24:19,dan (ddpbsd)写道: 
> >> 
> >> On Thu, Apr 13, 2017 at 5:14 AM, weisst  wrote: 
> >> > Dear all 
> >> > 
> >> > i try compile windows 64bit on Ubuntu 16.10, and i install depend 
> >> > 
> >> > sudo apt-get install build-essential -y 
> >> > sudo apt-get install nsis nsis-common -y 
> >> > sudo apt-get install mingw-w64 mingw-w64-common mingw-w64-x86-64-dev 
> -y 
> >> > 
> >> > i find mingw use x86_64-w64-mingw32-gcc replace 
> amd64-mingw32msvc-gcc,so 
> >> > i 
> >> > mod Makefile 
> >> > 
> >> > ifneq (,$(shell which amd64-mingw32msvc-gcc)) 
> >> > MING_BASE:=amd64-mingw32msvc- 
> >> > 
> >> > to 
> >> > 
> >> > ifneq (,$(shell which x86_64-w64-mingw32-gcc)) 
> >> > MING_BASE:=x86_64-w64-mingw32- 
> >> > else 
> >> > 
> >> 
> >> You might have to make similar changes to 
> >> src/external/lua/src/Makefile.mingw 
> >> But I've never tried it. 
> >> 
> >> > then make TARGET=winagent , i get some error 
> >> > 
> >> > x86_64-w64-mingw32-gcc -shared -o lua52.dll lapi.o lcode.o lctype.o 
> >> > ldebug.o 
> >> > ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o 
> lparser.o 
> >> > lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o 
> >> > lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o 
> >> > lstrlib.o ltablib.o loadlib.o linit.o 
> >> > strip --strip-unneeded lua52.dll 
> >> > x86_64-w64-mingw32-gcc -o ossec-lua.exe -s lua.o lua52.dll -lm 
> >> > make[2]: Leaving directory 
> >> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src' 
> >> > make -f Makefile.mingw "LUAC_T=ossec-luac.exe" ossec-luac.exe 
> >> > make[2]: Entering directory 
> >> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src' 
> >> > x86_64-w64-mingw32-gcc -O2 -Wall -DLUA_COMPAT_ALL -c -o luac.o luac.c 
> >> > i686-w64-mingw32-ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o 
> ldo.o 
> >> > ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o 
> >> > lstate.o 
> >> > lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o 
> >> > lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o 
> >> > ltablib.o loadlib.o linit.o 
> >> > i686-w64-mingw32-ar: u' modifier ignored sinceD' is the default (see 
> >> > `U') 
> >> > i686-w64-mingw32-ranlib liblua.a 
> >> > x86_64-w64-mingw32-gcc -o ossec-luac.exe luac.o liblua.a -lm 
> >> > liblua.a: error adding symbols: Archive has no index; run ranlib to 
> add 
> >> > one 
> >> > collect2: error: ld returned 1 exit status 
> >> > Makefile.mingw:66: recipe for target 'ossec-luac.exe' failed 
> >> > make[2]: *** [ossec-luac.exe] Error 1 
> >> > make[2]: Leaving directory 
> >> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src' 
> >> > Makefile.mingw:112: recipe for target 'mingw' failed 
> >> > make[1]: *** [mingw] Error 2 
> >> > make[1]: Leaving directory 
> >> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src' 
> >> > Makefile:609: recipe for target 'winagent' failed 
> >> > make: *** [winagent] Error 2 
> >> > 
> >> > i try to fix the problem, then i mod lua-5.2.3/src/Makefile.mingw 
> >> > 
> >> > CC= i686-w64-mingw32-gcc 
> >> > CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS) 
> >> > LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) 
> >> > LIBS= -lm $(SYSLIBS) $(MYLIBS) 
> >> > 
> >> > AR= i686-w64-mingw32-ar rcu 
> >> > RANLIB= i686-w64-mingw32-ranlib 
> >> > RM= rm -f 
> >> > 
> >> > try replace all i686-w64-mingw32 to x86_64-w64-mingw32,then complie 
> >> > success 
> >> > but install on windows 64bit system,ossec agent can't start,have some 
> >> > error, 
> >> > help me fix it,thanks 

Re: [ossec-list] on ubuntu compile windows 64bit error

2017-04-14 Thread dan (ddp)
On Thu, Apr 13, 2017 at 9:24 PM, weisst  wrote:
> windows 2012 r2 error
> 问题签名:
>   问题事件名称:APPCRASH
>   应用程序名:win32ui.exe
>   应用程序版本:0.0.0.0
>   应用程序时间戳:58ef28a9
>   故障模块名称:StackHash_bc03
>   故障模块版本:6.3.9600.17415
>   故障模块时间戳:5450559e
>   异常代码:c374
>   异常偏移:PCH_B7_FROM_ntdll+0x000911FA
>   OS 版本:6.3.9600.2.0.0.272.7
>   区域设置 ID:2052
>   其他信息 1:bc03
>   其他信息 2:bc03b0099517a014308582161a3173b5
>   其他信息 3:e3d5
>   其他信息 4:e3d5a6322d624c2d8e59088803c5efc2
>

I have no idea. Never seen that, and not sure what to do with it.
Google translate translated it just fine though.
You should be able to setup ossec without the gui. Just modify the
ossec.conf and client.keys. You'll need to get the key format from the
server, and you'll need to add the correct server IP to the
ossec.conf.

> 联机阅读隐私声明:
>   http://go.microsoft.com/fwlink/?linkid=280262
>
> 如果无法获取联机隐私声明,请脱机阅读我们的隐私声明:
>   C:\Windows\system32\zh-CN\erofflps.txt
>
>
> 在 2017年4月14日星期五 UTC+8上午6:24:19,dan (ddpbsd)写道:
>>
>> On Thu, Apr 13, 2017 at 5:14 AM, weisst  wrote:
>> > Dear all
>> >
>> > i try compile windows 64bit on Ubuntu 16.10, and i install depend
>> >
>> > sudo apt-get install build-essential -y
>> > sudo apt-get install nsis nsis-common -y
>> > sudo apt-get install mingw-w64 mingw-w64-common mingw-w64-x86-64-dev -y
>> >
>> > i find mingw use x86_64-w64-mingw32-gcc replace amd64-mingw32msvc-gcc,so
>> > i
>> > mod Makefile
>> >
>> > ifneq (,$(shell which amd64-mingw32msvc-gcc))
>> > MING_BASE:=amd64-mingw32msvc-
>> >
>> > to
>> >
>> > ifneq (,$(shell which x86_64-w64-mingw32-gcc))
>> > MING_BASE:=x86_64-w64-mingw32-
>> > else
>> >
>>
>> You might have to make similar changes to
>> src/external/lua/src/Makefile.mingw
>> But I've never tried it.
>>
>> > then make TARGET=winagent , i get some error
>> >
>> > x86_64-w64-mingw32-gcc -shared -o lua52.dll lapi.o lcode.o lctype.o
>> > ldebug.o
>> > ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o
>> > lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o
>> > lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o
>> > lstrlib.o ltablib.o loadlib.o linit.o
>> > strip --strip-unneeded lua52.dll
>> > x86_64-w64-mingw32-gcc -o ossec-lua.exe -s lua.o lua52.dll -lm
>> > make[2]: Leaving directory
>> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src'
>> > make -f Makefile.mingw "LUAC_T=ossec-luac.exe" ossec-luac.exe
>> > make[2]: Entering directory
>> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src'
>> > x86_64-w64-mingw32-gcc -O2 -Wall -DLUA_COMPAT_ALL -c -o luac.o luac.c
>> > i686-w64-mingw32-ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o
>> > ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o
>> > lstate.o
>> > lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o
>> > lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o
>> > ltablib.o loadlib.o linit.o
>> > i686-w64-mingw32-ar: u' modifier ignored sinceD' is the default (see
>> > `U')
>> > i686-w64-mingw32-ranlib liblua.a
>> > x86_64-w64-mingw32-gcc -o ossec-luac.exe luac.o liblua.a -lm
>> > liblua.a: error adding symbols: Archive has no index; run ranlib to add
>> > one
>> > collect2: error: ld returned 1 exit status
>> > Makefile.mingw:66: recipe for target 'ossec-luac.exe' failed
>> > make[2]: *** [ossec-luac.exe] Error 1
>> > make[2]: Leaving directory
>> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src'
>> > Makefile.mingw:112: recipe for target 'mingw' failed
>> > make[1]: *** [mingw] Error 2
>> > make[1]: Leaving directory
>> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src'
>> > Makefile:609: recipe for target 'winagent' failed
>> > make: *** [winagent] Error 2
>> >
>> > i try to fix the problem, then i mod lua-5.2.3/src/Makefile.mingw
>> >
>> > CC= i686-w64-mingw32-gcc
>> > CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
>> > LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
>> > LIBS= -lm $(SYSLIBS) $(MYLIBS)
>> >
>> > AR= i686-w64-mingw32-ar rcu
>> > RANLIB= i686-w64-mingw32-ranlib
>> > RM= rm -f
>> >
>> > try replace all i686-w64-mingw32 to x86_64-w64-mingw32,then complie
>> > success
>> > but install on windows 64bit system,ossec agent can't start,have some
>> > error,
>> > help me fix it,thanks
>> >
>>
>> What error?
>>
>> >
>> > also publish on github
>> > issue:https://github.com/ossec/ossec-hids/issues/1110
>> >
>> > --
>> >
>> > ---
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "ossec-list" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to ossec-list+...@googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ossec-list" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> 

Re: [ossec-list] on ubuntu compile windows 64bit error

2017-04-14 Thread weisst
dear all
 sorry ,i'm in china, use chinese language,need i change language to 
english and past english error?

在 2017年4月14日星期五 UTC+8上午9:24:47,weisst写道:
>
> windows 2012 r2 error 
> 问题签名:
>   问题事件名称:APPCRASH
>   应用程序名:win32ui.exe
>   应用程序版本:0.0.0.0
>   应用程序时间戳:58ef28a9
>   故障模块名称:StackHash_bc03
>   故障模块版本:6.3.9600.17415
>   故障模块时间戳:5450559e
>   异常代码:c374
>   异常偏移:PCH_B7_FROM_ntdll+0x000911FA
>   OS 版本:6.3.9600.2.0.0.272.7
>   区域设置 ID:2052
>   其他信息 1:bc03
>   其他信息 2:bc03b0099517a014308582161a3173b5
>   其他信息 3:e3d5
>   其他信息 4:e3d5a6322d624c2d8e59088803c5efc2
>
> 联机阅读隐私声明:
>   http://go.microsoft.com/fwlink/?linkid=280262
>
> 如果无法获取联机隐私声明,请脱机阅读我们的隐私声明:
>   C:\Windows\system32\zh-CN\erofflps.txt
>
>
> 在 2017年4月14日星期五 UTC+8上午6:24:19,dan (ddpbsd)写道:
>>
>> On Thu, Apr 13, 2017 at 5:14 AM, weisst  wrote: 
>> > Dear all 
>> > 
>> > i try compile windows 64bit on Ubuntu 16.10, and i install depend 
>> > 
>> > sudo apt-get install build-essential -y 
>> > sudo apt-get install nsis nsis-common -y 
>> > sudo apt-get install mingw-w64 mingw-w64-common mingw-w64-x86-64-dev -y 
>> > 
>> > i find mingw use x86_64-w64-mingw32-gcc replace 
>> amd64-mingw32msvc-gcc,so i 
>> > mod Makefile 
>> > 
>> > ifneq (,$(shell which amd64-mingw32msvc-gcc)) 
>> > MING_BASE:=amd64-mingw32msvc- 
>> > 
>> > to 
>> > 
>> > ifneq (,$(shell which x86_64-w64-mingw32-gcc)) 
>> > MING_BASE:=x86_64-w64-mingw32- 
>> > else 
>> > 
>>
>> You might have to make similar changes to 
>> src/external/lua/src/Makefile.mingw 
>> But I've never tried it. 
>>
>> > then make TARGET=winagent , i get some error 
>> > 
>> > x86_64-w64-mingw32-gcc -shared -o lua52.dll lapi.o lcode.o lctype.o 
>> ldebug.o 
>> > ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o 
>> lparser.o 
>> > lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o 
>> > lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o 
>> > lstrlib.o ltablib.o loadlib.o linit.o 
>> > strip --strip-unneeded lua52.dll 
>> > x86_64-w64-mingw32-gcc -o ossec-lua.exe -s lua.o lua52.dll -lm 
>> > make[2]: Leaving directory 
>> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src' 
>> > make -f Makefile.mingw "LUAC_T=ossec-luac.exe" ossec-luac.exe 
>> > make[2]: Entering directory 
>> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src' 
>> > x86_64-w64-mingw32-gcc -O2 -Wall -DLUA_COMPAT_ALL -c -o luac.o luac.c 
>> > i686-w64-mingw32-ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o 
>> > ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o 
>> lstate.o 
>> > lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o 
>> > lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o 
>> > ltablib.o loadlib.o linit.o 
>> > i686-w64-mingw32-ar: u' modifier ignored sinceD' is the default (see 
>> `U') 
>> > i686-w64-mingw32-ranlib liblua.a 
>> > x86_64-w64-mingw32-gcc -o ossec-luac.exe luac.o liblua.a -lm 
>> > liblua.a: error adding symbols: Archive has no index; run ranlib to add 
>> one 
>> > collect2: error: ld returned 1 exit status 
>> > Makefile.mingw:66: recipe for target 'ossec-luac.exe' failed 
>> > make[2]: *** [ossec-luac.exe] Error 1 
>> > make[2]: Leaving directory 
>> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src' 
>> > Makefile.mingw:112: recipe for target 'mingw' failed 
>> > make[1]: *** [mingw] Error 2 
>> > make[1]: Leaving directory 
>> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src' 
>> > Makefile:609: recipe for target 'winagent' failed 
>> > make: *** [winagent] Error 2 
>> > 
>> > i try to fix the problem, then i mod lua-5.2.3/src/Makefile.mingw 
>> > 
>> > CC= i686-w64-mingw32-gcc 
>> > CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS) 
>> > LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) 
>> > LIBS= -lm $(SYSLIBS) $(MYLIBS) 
>> > 
>> > AR= i686-w64-mingw32-ar rcu 
>> > RANLIB= i686-w64-mingw32-ranlib 
>> > RM= rm -f 
>> > 
>> > try replace all i686-w64-mingw32 to x86_64-w64-mingw32,then complie 
>> success 
>> > but install on windows 64bit system,ossec agent can't start,have some 
>> error, 
>> > help me fix it,thanks 
>> > 
>>
>> What error? 
>>
>> > 
>> > also publish on github issue:
>> https://github.com/ossec/ossec-hids/issues/1110 
>> > 
>> > -- 
>> > 
>> > --- 
>> > You received this message because you are subscribed to the Google 
>> Groups 
>> > "ossec-list" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an 
>> > email to ossec-list+...@googlegroups.com. 
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ossec-list+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ossec-list] on ubuntu compile windows 64bit error

2017-04-13 Thread weisst
windows 2012 r2 error 
问题签名:
  问题事件名称:APPCRASH
  应用程序名:win32ui.exe
  应用程序版本:0.0.0.0
  应用程序时间戳:58ef28a9
  故障模块名称:StackHash_bc03
  故障模块版本:6.3.9600.17415
  故障模块时间戳:5450559e
  异常代码:c374
  异常偏移:PCH_B7_FROM_ntdll+0x000911FA
  OS 版本:6.3.9600.2.0.0.272.7
  区域设置 ID:2052
  其他信息 1:bc03
  其他信息 2:bc03b0099517a014308582161a3173b5
  其他信息 3:e3d5
  其他信息 4:e3d5a6322d624c2d8e59088803c5efc2

联机阅读隐私声明:
  http://go.microsoft.com/fwlink/?linkid=280262

如果无法获取联机隐私声明,请脱机阅读我们的隐私声明:
  C:\Windows\system32\zh-CN\erofflps.txt


在 2017年4月14日星期五 UTC+8上午6:24:19,dan (ddpbsd)写道:
>
> On Thu, Apr 13, 2017 at 5:14 AM, weisst  
> wrote: 
> > Dear all 
> > 
> > i try compile windows 64bit on Ubuntu 16.10, and i install depend 
> > 
> > sudo apt-get install build-essential -y 
> > sudo apt-get install nsis nsis-common -y 
> > sudo apt-get install mingw-w64 mingw-w64-common mingw-w64-x86-64-dev -y 
> > 
> > i find mingw use x86_64-w64-mingw32-gcc replace amd64-mingw32msvc-gcc,so 
> i 
> > mod Makefile 
> > 
> > ifneq (,$(shell which amd64-mingw32msvc-gcc)) 
> > MING_BASE:=amd64-mingw32msvc- 
> > 
> > to 
> > 
> > ifneq (,$(shell which x86_64-w64-mingw32-gcc)) 
> > MING_BASE:=x86_64-w64-mingw32- 
> > else 
> > 
>
> You might have to make similar changes to 
> src/external/lua/src/Makefile.mingw 
> But I've never tried it. 
>
> > then make TARGET=winagent , i get some error 
> > 
> > x86_64-w64-mingw32-gcc -shared -o lua52.dll lapi.o lcode.o lctype.o 
> ldebug.o 
> > ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o 
> > lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o 
> > lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o 
> > lstrlib.o ltablib.o loadlib.o linit.o 
> > strip --strip-unneeded lua52.dll 
> > x86_64-w64-mingw32-gcc -o ossec-lua.exe -s lua.o lua52.dll -lm 
> > make[2]: Leaving directory 
> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src' 
> > make -f Makefile.mingw "LUAC_T=ossec-luac.exe" ossec-luac.exe 
> > make[2]: Entering directory 
> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src' 
> > x86_64-w64-mingw32-gcc -O2 -Wall -DLUA_COMPAT_ALL -c -o luac.o luac.c 
> > i686-w64-mingw32-ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o 
> > ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o 
> lstate.o 
> > lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o 
> > lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o 
> > ltablib.o loadlib.o linit.o 
> > i686-w64-mingw32-ar: u' modifier ignored sinceD' is the default (see 
> `U') 
> > i686-w64-mingw32-ranlib liblua.a 
> > x86_64-w64-mingw32-gcc -o ossec-luac.exe luac.o liblua.a -lm 
> > liblua.a: error adding symbols: Archive has no index; run ranlib to add 
> one 
> > collect2: error: ld returned 1 exit status 
> > Makefile.mingw:66: recipe for target 'ossec-luac.exe' failed 
> > make[2]: *** [ossec-luac.exe] Error 1 
> > make[2]: Leaving directory 
> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src' 
> > Makefile.mingw:112: recipe for target 'mingw' failed 
> > make[1]: *** [mingw] Error 2 
> > make[1]: Leaving directory 
> > '/tmp/ossec-hids-master/src/external/lua-5.2.3/src' 
> > Makefile:609: recipe for target 'winagent' failed 
> > make: *** [winagent] Error 2 
> > 
> > i try to fix the problem, then i mod lua-5.2.3/src/Makefile.mingw 
> > 
> > CC= i686-w64-mingw32-gcc 
> > CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS) 
> > LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) 
> > LIBS= -lm $(SYSLIBS) $(MYLIBS) 
> > 
> > AR= i686-w64-mingw32-ar rcu 
> > RANLIB= i686-w64-mingw32-ranlib 
> > RM= rm -f 
> > 
> > try replace all i686-w64-mingw32 to x86_64-w64-mingw32,then complie 
> success 
> > but install on windows 64bit system,ossec agent can't start,have some 
> error, 
> > help me fix it,thanks 
> > 
>
> What error? 
>
> > 
> > also publish on github issue:
> https://github.com/ossec/ossec-hids/issues/1110 
> > 
> > -- 
> > 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "ossec-list" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to ossec-list+...@googlegroups.com . 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ossec-list+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ossec-list] on ubuntu compile windows 64bit error

2017-04-13 Thread dan (ddp)
On Thu, Apr 13, 2017 at 5:14 AM, weisst  wrote:
> Dear all
>
> i try compile windows 64bit on Ubuntu 16.10, and i install depend
>
> sudo apt-get install build-essential -y
> sudo apt-get install nsis nsis-common -y
> sudo apt-get install mingw-w64 mingw-w64-common mingw-w64-x86-64-dev -y
>
> i find mingw use x86_64-w64-mingw32-gcc replace amd64-mingw32msvc-gcc,so i
> mod Makefile
>
> ifneq (,$(shell which amd64-mingw32msvc-gcc))
> MING_BASE:=amd64-mingw32msvc-
>
> to
>
> ifneq (,$(shell which x86_64-w64-mingw32-gcc))
> MING_BASE:=x86_64-w64-mingw32-
> else
>

You might have to make similar changes to src/external/lua/src/Makefile.mingw
But I've never tried it.

> then make TARGET=winagent , i get some error
>
> x86_64-w64-mingw32-gcc -shared -o lua52.dll lapi.o lcode.o lctype.o ldebug.o
> ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o
> lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o
> lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o
> lstrlib.o ltablib.o loadlib.o linit.o
> strip --strip-unneeded lua52.dll
> x86_64-w64-mingw32-gcc -o ossec-lua.exe -s lua.o lua52.dll -lm
> make[2]: Leaving directory
> '/tmp/ossec-hids-master/src/external/lua-5.2.3/src'
> make -f Makefile.mingw "LUAC_T=ossec-luac.exe" ossec-luac.exe
> make[2]: Entering directory
> '/tmp/ossec-hids-master/src/external/lua-5.2.3/src'
> x86_64-w64-mingw32-gcc -O2 -Wall -DLUA_COMPAT_ALL -c -o luac.o luac.c
> i686-w64-mingw32-ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o
> ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o
> lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o
> lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o
> ltablib.o loadlib.o linit.o
> i686-w64-mingw32-ar: u' modifier ignored sinceD' is the default (see `U')
> i686-w64-mingw32-ranlib liblua.a
> x86_64-w64-mingw32-gcc -o ossec-luac.exe luac.o liblua.a -lm
> liblua.a: error adding symbols: Archive has no index; run ranlib to add one
> collect2: error: ld returned 1 exit status
> Makefile.mingw:66: recipe for target 'ossec-luac.exe' failed
> make[2]: *** [ossec-luac.exe] Error 1
> make[2]: Leaving directory
> '/tmp/ossec-hids-master/src/external/lua-5.2.3/src'
> Makefile.mingw:112: recipe for target 'mingw' failed
> make[1]: *** [mingw] Error 2
> make[1]: Leaving directory
> '/tmp/ossec-hids-master/src/external/lua-5.2.3/src'
> Makefile:609: recipe for target 'winagent' failed
> make: *** [winagent] Error 2
>
> i try to fix the problem, then i mod lua-5.2.3/src/Makefile.mingw
>
> CC= i686-w64-mingw32-gcc
> CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
> LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
> LIBS= -lm $(SYSLIBS) $(MYLIBS)
>
> AR= i686-w64-mingw32-ar rcu
> RANLIB= i686-w64-mingw32-ranlib
> RM= rm -f
>
> try replace all i686-w64-mingw32 to x86_64-w64-mingw32,then complie success
> but install on windows 64bit system,ossec agent can't start,have some error,
> help me fix it,thanks
>

What error?

>
> also publish on github issue:https://github.com/ossec/ossec-hids/issues/1110
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ossec-list" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ossec-list+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ossec-list+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.