Menu

#58 Waf: Leaving directory `/var/opt/winexe-waf/source/build' Build failed -> task in 'winexe-static' failed (exit status 1): {task 39056336: cprogram winexe.c.6.o,svcinstall.c.6.o,async.c.6.o,winexesvc32_exe.c.6.o,winexesvc64_exe.c.6.o -> winexe-static} ['/usr/bin/gcc', '-pthread', 'winexe.c.6.o', 'svcinstall.c.6.o', 'async.c.6.o', 'winexesvc32_exe.c.6.o', 'winexesvc64_exe.c.6.o', '-o', '/var/opt/winexe-waf/source/build/winexe-static', '-Wl,-Bstatic', '-L/var/opt/winexe-waf/source/smb_static/build', '-lsmb_static', '-lbsd', '-lz', '-lresolv', '-lrt', '-Wl,-Bdynamic', '-ldl']

none
open
nobody
None
medium
2015-02-23
2014-11-12
Renga
No

Team,

After following readme file of the source code .I am getting below error.

Waf: Leaving directory `/var/opt/winexe-waf/source/build'
Build failed
-> task in 'winexe-static' failed (exit status 1):
{task 39056336: cprogram winexe.c.6.o,svcinstall.c.6.o,async.c.6.o,winexesvc32_exe.c.6.o,winexesvc64_exe.c.6.o -> winexe-static}
['/usr/bin/gcc', '-pthread', 'winexe.c.6.o', 'svcinstall.c.6.o', 'async.c.6.o', 'winexesvc32_exe.c.6.o', 'winexesvc64_exe.c.6.o', '-o', '/var/opt/winexe-waf/source/build/winexe-static', '-Wl,-Bstatic', '-L/var/opt/winexe-waf/source/smb_static/build', '-lsmb_static', '-lbsd', '-lz', '-lresolv', '-lrt', '-Wl,-Bdynamic', '-ldl']

I am building it on a Centos 6 machine . Please help

Discussion

  • ahajda

    ahajda - 2014-11-12

    I suspect there is more precise description of this error before lines you have posted. Please post it. Now I can try to guess it could be a problem of wrong permissions, maybe directory/file ownership???

     
  • Renga

    Renga - 2014-11-12

    Thanks for immediate reply ahajda.

    Steps followed as per http://sourceforge.net/p/winexe/bugs/50/

    Please find the attached log while running
    sudo ./waf --samba-dir=../../samba configure build

    Permissions: -

    [rsss@test build]$ ls -arlt
    total 16
    drwxr-xr-x. 28 root root 4096 Nov 12 12:21 ..
    drwxr-xr-x 5 root root 4096 Nov 12 12:30 winexe-winexe-waf
    drwxr-xr-x 4 root root 4096 Nov 12 12:30 .
    drwxr-xr-x 34 root root 4096 Nov 12 12:31 samba

     
    • Holger Pandel

      Holger Pandel - 2015-02-05

      Try this:
      1) checkout latest git
      2) open file "wscript_build" in "source" folder
      3) find section "if bld.env.SAMBA_DIR..." (at the end of the file)
      4) append "gcrypt gnutls" to "stlib='smb_static ...'" line
      5) run build and fingers crossed

      You can add additional missing libraries in the same manner. I had to give up because currently, no libp11-kit.a file exists for Debian Wheezy so static linking is not possible for me... if I don't recompile p11-kit on my own...

       
  • Renga

    Renga - 2014-11-14

    Hi,

    Please can you help on the above winexe 1.1 pre release code

    thanks

     
  • jmenan

    jmenan - 2014-12-01

    hello,

    I tried to compile winexe pre release on redhat EL6.

    I have this similar ERROR :

    Waf: Leaving directory /root/winexe11/samba/bin' 'build' finished successfully (4.061s) Checking for library smb_static : yes Checking for library popt : yes Checking for library com_err : yes Checking for library bsd : yes Checking for library z : yes Checking for library resolv : yes Checking for library rt : yes Checking for library dl : yes Checking for program i386-mingw32-gcc,i386-mingw32msvc-gcc,i386-w64-mingw32-gcc,i586-mingw32-gcc,i586-mingw32msvc-gcc,i586-w64-mingw32-gcc,i686-mingw32-gcc,i686-mingw32msvc-gcc,i686-w64-mingw32-gcc : /usr/bin/i686-w64-mingw32-gcc Checking for program x86_64-mingw32-gcc,x86_64-mingw32msvc-gcc,x86_64-w64-mingw32-gcc,amd64-mingw32-gcc,amd64-mingw32msvc-gcc,amd64-w64-mingw32-gcc : /usr/bin/x86_64-w64-mingw32-gcc 'configure' finished successfully (1m43.535s) Waf: Entering directory/root/winexe11/winexe-waf/source/build'
    [ 1/16] c: winexesvc_launch.c -> build/winexesvc_launch.c.1.o
    [ 2/16] c: winexesvc_loop.c -> build/winexesvc_loop.c.1.o
    [ 3/16] c: winexesvc_launch.c -> build/winexesvc_launch.c.2.o
    [ 4/16] c: winexesvc_loop.c -> build/winexesvc_loop.c.2.o
    [ 5/16] c: bin2c.c -> build/bin2c.c.3.o
    [ 6/16] c: winexe.c -> build/winexe.c.6.o
    [ 7/16] c: svcinstall.c -> build/svcinstall.c.6.o
    [ 8/16] c: async.c -> build/async.c.6.o
    [ 9/16] cprogram: build/winexesvc_launch.c.1.o build/winexesvc_loop.c.1.o -> build/winexesvc32.exe
    [10/16] cprogram: build/winexesvc_launch.c.2.o build/winexesvc_loop.c.2.o -> build/winexesvc64.exe
    [11/16] cprogram: build/bin2c.c.3.o -> build/bin2c
    [12/16] bin2c: build/bin2c build/winexesvc32.exe -> build/winexesvc32_exe.c
    [13/16] bin2c: build/bin2c build/winexesvc64.exe -> build/winexesvc64_exe.c
    [14/16] c: build/winexesvc32_exe.c -> build/winexesvc32_exe.c.6.o
    [15/16] c: build/winexesvc64_exe.c -> build/winexesvc64_exe.c.6.o
    [16/16] cprogram: build/winexe.c.6.o build/svcinstall.c.6.o build/async.c.6.o build/winexesvc32_exe.c.6.o build/winexesvc64_exe.c.6.o -> build/winexe-static
    /usr/bin/ld: cannot find -lz
    collect2: ld returned 1 exit status
    Waf: Leaving directory `/root/winexe11/winexe-waf/source/build'
    Build failed
    -> task in 'winexe-static' failed (exit status 1):
    {task 25720400: cprogram winexe.c.6.o,svcinstall.c.6.o,async.c.6.o,winexesvc32_exe.c.6.o,winexesvc64_exe.c.6.o -> winexe-static}
    ['/usr/bin/gcc', '-pthread', 'winexe.c.6.o', 'svcinstall.c.6.o', 'async.c.6.o', 'winexesvc32_exe.c.6.o', 'winexesvc64_exe.c.6.o', '-o', '/root/winexe11/winexe-waf/source/build/winexe-static', '-Wl,-Bstatic', '-L/root/winexe11/winexe-waf/source/smb_static/build', '-lsmb_static', '-lbsd', '-lz', '-lresolv', '-lrt', '-Wl,-Bdynamic', '-ldl']

     
  • Federico

    Federico - 2015-02-23

    Hi, I'm New Here.
    I'm trying to build winexe-waf 1.1 on a RedHat EL 7.
    I am using samba4.1.16.
    I followed the steps in the README file.
    when I run the command "./waf --samba-dir = / tmp / samba-4.1.16 configure build"
    get as output this message:

    Waf: Leaving directory `/tmp/winexe-waf/source/build'
    Build failed
    -> task in 'winexe-static' failed (exit status 1):
    {task 35262608: cprogram winexe.c.6.o,svcinstall.c.6.o,async.c.6.o,winexesvc32_exe.c.6.o,winexesvc64_exe.c.6.o -> winexe-static}
    ['/usr/bin/gcc', '-pthread', 'winexe.c.6.o', 'svcinstall.c.6.o', 'async.c.6.o', 'winexesvc32_exe.c.6.o', 'winexesvc64_exe.c.6.o', '-o', '/tmp/winexe-waf/source/build/winexe-static', '-Wl,-Bstatic', '-L/tmp/winexe-waf/source/smb_static/build', '-lsmb_static', '-lbsd', '-lz', '-lresolv', '-lrt', '-Wl,-Bdynamic', '-ldl']

    Please, I need help.
    thanks!

     

Log in to post a comment.

MongoDB Logo MongoDB