Page 1 of 1

Does ESP32 provide samba support at IDF?

Posted: Tue Sep 24, 2019 6:45 am
by anghockleong501
Hi Sir/Madam/Miss,
From old source code of a old project, I found IDF library components has samba source code. There is compilation error has for this samba source code, other code is able to compile. The unknown samba source code is at file name smbserver.tar.gz and be attached to this email.

The error is below:
CXX build/smbserver/src/SystemFreeRTOS.o
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp: In function 'unsigned char* SysOpenEx(const char*, unsigned int, int*)':
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp:1715:13: warning: unused variable 'sStat' [-Wunused-variable]
FILINFO sStat;
^
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp: In function 'SysPos SysSeekEx(SysFile, SysPos, int)':
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp:1866:9: warning: unused variable 'iPos' [-Wunused-variable]
SysPos iPos;
^
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp: In function 'SysPos SysTellEx(SysFile)':
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp:1909:9: warning: unused variable 'iPos' [-Wunused-variable]
SysPos iPos;
^
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp: In function 'unsigned int* SysFindFirstEx(const char*, SysFindStruct*, int*)':
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp:2511:48: error: 'struct FILINFO' has no member named 'altname'
strcpy(pFind->cShortName,(const char*)sEntry.altname);
^
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp: In function 'int SysFindNext(SysFind, SysFindStruct*)':
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp:2574:47: error: 'struct FILINFO' has no member named 'altname'
strcpy(pFind->cShortName,(const char*)sEntry.altname);
^
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp: In function 'int SysGetVolumeInfo(const char*, SysVolumeInfo*, int)':
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp:2890:31: error: '_MAX_SS' was not declared in this scope
pInfo->dwBytesPerSector = _MAX_SS;
^
make[1]: *** [src/SystemFreeRTOS.o] Error 1
make: *** [component-smbserver-build] Error 2
Questions:
1. Does ESP32 provide samba source code support at IDF?
2. If yes, please advise to solve the compilation.
3. If no, do you suspect where is the source code come from?
I search through internet, can not find the resource of this source code. Free RTOS and https://github.com/samba-team/samba also do not have.


Thank you.

Regards,
HL Ang

Re: Does ESP32 provide samba support at IDF?

Posted: Wed Sep 25, 2019 6:18 am
by anghockleong501
Hi ESP32 Engineers,
I think I found the source of this source code.
It should old version from http://members.inode.at/anton.zechner/az/ .
I will study how to compile it.

You may close this post.
Thank you.

Re: Does ESP32 provide samba support at IDF?

Posted: Tue May 25, 2021 8:25 am
by nopnop2002
Yes.
You can access Windows shared folder from esp32.

https://github.com/nopnop2002/esp-idf-smb-client