Bug 10757 - Compiling lib/socket_wrapper/socket_wrapper.c Error
Summary: Compiling lib/socket_wrapper/socket_wrapper.c Error
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.1.11
Hardware: x86 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Andreas Schneider
QA Contact: Samba QA Contact
Depends on:
Reported: 2014-08-04 02:28 UTC by Travis Roy
Modified: 2014-08-19 01:30 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Travis Roy 2014-08-04 02:28:15 UTC
Centos 5.10 kernel  2.6.18-371.11.1.el5
I used
sh install_with_python.sh /usr/local/samba  --enable-debug --enable-selftest 
I got
../lib/socket_wrapper/socket_wrapper.c: In function âswrap_getsockoptâ:
../lib/socket_wrapper/socket_wrapper.c:3172: error: âSO_PROTOCOLâ undeclared (first use in this function)
../lib/socket_wrapper/socket_wrapper.c:3172: error: (Each undeclared identifier is reported only once
../lib/socket_wrapper/socket_wrapper.c:3172: error: for each function it appears in.)
Waf: Leaving directory `/usr/src/samba/bin'
Build failed:  -> task failed (err #1):
        {task: cc socket_wrapper.c -> socket_wrapper_1.o}

I'm stuck to the 5.X centos due to my CPU "Via C3 1Ghz" not supported by Centos 6.X and up "PAE support issues"
Comment 1 Andreas Schneider 2014-08-04 08:53:13 UTC
You opened this bug against 4.1.11 but it looks like you're trying to compile master. However this has been fixed in the socket_wrapper repo upstream and will be backported to Samba master with the next release.

Comment 2 Travis Roy 2014-08-19 01:30:53 UTC
I see thanks. Didn't realize that.  I have rebuild using 4.1.11 and am successful.  I needed to educate myself on pulling the right source.  Thank You.