Menu

#77 winexe failure with any samba newer than v4.1

none
open
nobody
high
2020-12-04
2015-12-06
No

You can find a thread that discusses the problem here - http://forums.fedoraforum.org/showthread.php?p=1749571&posted=1#post1749571

After commenting on that thread, I completed field-hackery of the winexe source, and after stripping every reference to anything relating to libsamba-debug-samba4, winexe compiled & linked. Now I won't get any output as those DEBUG macros (and 'DEBUGLVL' in one place) are not included in the binary, but as long as the thing works I don't care much.

Now the question is - is 'winexe' dead? Is anyone reading this?

Related

Bugs: #77

Discussion

<< < 1 2 3 4 (Page 4 of 4)
  • glebrun

    glebrun - 2019-05-20

    Thanks a lot

    On 2019-05-16 12:17 p.m., Brad Mustin wrote:

    Alan,
    I was able to get Winexe to build for Raspberry pi Streach, on the
    Rasbperry Pi. I had to use your Buster Build patch.

    Tested with command
    ./reevert-winexe-waf/source/build/winexe-static -U my_domain/my_user%my_pass //my_ip "msg * test popup"

    Thanks for your help and patches.

    I also had ran these commands belowI don't believe they were required,
    I was getting a python error until i applied your buster patch.

    apt-get install locales build-essential git gcc-mingw-w64 comerr-dev
    libpopt-dev libbsd-dev zlib1g-dev libc6-dev python-dev libgnutls28-dev
    devscripts pkg-config autoconf libldap2-dev libtevent-dev
    libtalloc-dev git python

    apt-get install gcc-mingw-w64 comerr-dev libpopt-dev libbsd-dev
    zlib1g-dev libc6-dev python-dev
    apt-get install python2.7 gcc-mingw-w64 libtevent-dev libgpgme11-dev
    samba-dev lmdb-utils libjansson-dev libarchive-dev
    apt-get install libacl1-dev libldap2-dev libpam0g-dev librpc-xml-perl
    python-dev pkg-config
    apt-get install autoconf gcc gcc-mingw-w64 pkg-config libtalloc-dev
    samba-dev libtevent-dev
    apt-get remove libbsd-devel


    [bugs:#77] https://sourceforge.net/p/winexe/bugs/77/ winexe failure
    with any samba newer than v4.1

    Status: open
    Group: none
    Labels: samba-library-incompatibility
    Created: Sun Dec 06, 2015 05:25 PM UTC by bill hudacek
    Last Updated: Thu Mar 14, 2019 04:25 PM UTC
    Owner: nobody

    You can find a thread that discusses the problem here -
    http://forums.fedoraforum.org/showthread.php?p=1749571&posted=1#post1749571

    After commenting on that thread, I completed field-hackery of the
    winexe source, and after stripping every reference to anything
    relating to libsamba-debug-samba4, winexe compiled & linked. Now I
    won't get any output as those DEBUG macros (and 'DEBUGLVL' in one
    place) are not included in the binary, but as long as the thing works
    I don't care much.

    Now the question is - is 'winexe' dead? Is anyone reading this?


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/winexe/bugs/77/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #77

  • Juergen

    Juergen - 2019-10-17

    Good morning, I want to install winexe ony my fresh installed Debian 10 x64 machine and I tried a lot of guides found in the internet. Everyone failed with different errors until now.

    Does anyone have a working way to install winexe on Debian 10?

     
  • Alan Baghumian

    Alan Baghumian - 2019-10-17

    Hi Juergen, I'm not sure how you compiled it, but seems like your binary is looking for a library that is in this package: https://packages.debian.org/jessie/libgnutls-deb0-28

    Try installing this and then run it to see what happens!

     
  • bill hudacek

    bill hudacek - 2020-11-29

    Funny, me resurrecting a thread I created 5 years ago :-)

    I'm back on this - situation is different, but I again need winexe. I have fedora 32 on backuppc server.

    My command line is also: ( ./waf --samba-dir=../samba configure build ) 2>&1 | tee ../waf-with-python2.7.log

    (This machine has python 3 as default. I got other errors trying to run 'waf' so flipped the symlink to python 2.7, and got the errors in the attached file below ("err: /usr/bin/ld: cannot find -lsmb_static").

    There are instructions in that BUILD file for Debian - anyone solved Fedora? @tlathm brought up issues like this in 2017, but never resolved them - or didn't document them (s/he posted later, in 2018, on other unrelated topics/issues).

    I've attached the full python2.7 log - any ideas? I don't know anything about python, but I'm going to have to look at this myself again. Help would be appreciated.

     
  • Henrique Martins

    I was able to build winexe for some Fedora 3x, maybe late 2x., still have that binary somewhere. However, if you are on Fedora 32 ,just do "dnf install samba-winexe"

     
    • bill hudacek

      bill hudacek - 2020-11-29

      WOW! Now that's what I call progress. Back in 2015, it was looking bleak. If it's actually in RPM via Yum repos now, I'm impressed. I'll have to test this out now.

      (yep, just installed it, I'm very impressed)

      Thanks for the pointer!

       
  • Henrique Martins

    You're welcome, and let's hope whoever put this together keeps up with any SMB changes.

     
  • Vaibhav Kumar Chaudhary

    Not really sure how this issue relates to this thread,but I was wondering is this the same winexe that is availabe on opensuse? It's version winexe version 4.8, but that isn't working anycommand

     
    • bill hudacek

      bill hudacek - 2020-12-03

      Vaibhav - Here's RPM/Yum info from fedora 32 - so you can compare. Hope this helps. I have not had SuSE since I stopped paying for it 15-20 years ago!

      rpm -q -i samba-winexe
      Name : samba-winexe
      Epoch : 2
      Version : 4.12.10
      Release : 0.fc32
      Architecture: x86_64
      Install Date: Sun 29 Nov 2020 09:54:02 AM EST
      Group : Unspecified
      Size : 105914
      License : GPLv3
      Signature : RSA/SHA256, Thu 05 Nov 2020 07:43:28 AM EST, Key ID 6c13026d12c944d0
      Source RPM : samba-4.12.10-0.fc32.src.rpm
      Build Date : Thu 05 Nov 2020 06:05:40 AM EST
      Build Host : buildvm-x86-24.iad2.fedoraproject.org
      Packager : Fedora Project
      Vendor : Fedora Project
      URL : https://www.samba.org
      Bug URL : https://bugz.fedoraproject.org/samba
      Summary : Samba Winexe Windows Binary
      Description :
      Winexe is a Remote Windows®-command executor

       
      • Vaibhav Kumar Chaudhary

        How can I setup this on ubuntu machine? any help would be really appreciated

         
<< < 1 2 3 4 (Page 4 of 4)

Log in to post a comment.