[SERVER-21216] FreeBSD 10.1-RELEASE build issue Created: 30/Oct/15  Updated: 25/Nov/15  Resolved: 17/Nov/15

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 3.2.0-rc1
Fix Version/s: 3.2.0-rc4

Type: Bug Priority: Major - P3
Reporter: Andrew Shevchuk Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

uname -a
FreeBSD www.lambda-cloud.net 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64


Issue Links:
Duplicate
is duplicated by SERVER-21494 Syntax error in stack_locator_unknown... Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: FreeBSD
Steps To Reproduce:

wget https://fastdl.mongodb.org/src/mongodb-src-r3.2.0-rc1.tar.gz
tar -zxvf mongodb-src-r3.2.0-rc1.tar.gz
cd ./mongodb-src-r3.2.0-rc1
scons all

Sprint: Platform C (11/20/15)
Participants:

 Description   

Error while building MongoDB 3.2.0-rc1 under FreeBSD 10.1@amd64:

c++ -o build/opt/mongo/util/net/hostname_canonicalization.o -c -Wnon-virtual-dtor -Woverloaded-virtual -std=c++11 -fno-
omit-frame-pointer -fno-omit-frame-pointer -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-
pragmas -Winvalid-pch -O2 -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological
-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-null-conversion -fno-builtin-memcmp 
-DPCRE_STATIC -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATE
D -DBOOST_THREAD_DONT_PROVIDE_INTERRUPTIONS -DBOOST_THREAD_HAS_NO_EINTR_BUG -Isrc/third_party/asio-asio-1-11-0/asio/inc
lude -Isrc/third_party/s2 -Isrc/third_party/pcre-8.37 -Isrc/third_party/boost-1.56.0 -Ibuild/opt -Isrc src/mongo/util/n
et/hostname_canonicalization.cpp
src/mongo/util/net/hostname_canonicalization.cpp:124:60: error: member access into incomplete type 'struct sockaddr_in'
                sin_addr = reinterpret_cast<void*>(&addr_in->sin_addr);
src/mongo/util/net/hostname_canonicalization.cpp:124:51: note: to match this '('
                sin_addr = reinterpret_cast<void*>(&addr_in->sin_addr);
                                                  ^
src/mongo/util/net/hostname_canonicalization.cpp:127:61: error: member access into incomplete type
      'struct sockaddr_in6'
                sin_addr = reinterpret_cast<void*>(&addr_in6->sin6_addr);
                                                            ^
src/mongo/util/net/hostname_canonicalization.cpp:126:24: note: forward declaration of 'sockaddr_in6'
                struct sockaddr_in6* addr_in6 = reinterpret_cast<struct sockaddr_in6*>(addr);
                       ^
src/mongo/util/net/hostname_canonicalization.cpp:127:63: error: expected ')'
                sin_addr = reinterpret_cast<void*>(&addr_in6->sin6_addr);
                                                              ^
src/mongo/util/net/hostname_canonicalization.cpp:127:51: note: to match this '('
                sin_addr = reinterpret_cast<void*>(&addr_in6->sin6_addr);
                                                  ^
4 errors generated.
scons: *** [build/opt/mongo/util/net/hostname_canonicalization.o] Error 1
scons: building terminated because of errors.

P.S.: MongoDB 3.2.0-rc0 was built successfully.



 Comments   
Comment by Githook User [ 17/Nov/15 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-21216 Fix FreeBSD & OpenBSD compilation, add stack_locator
Branch: master
https://github.com/mongodb/mongo/commit/2508a0f3deb4d62b53d76734ca70ca294443629f

Comment by Spencer Jackson [ 30/Oct/15 ]

When I was cleaning up some log messages, I might have missed a header which is implicitly included on Linux. I'll look into it. Thank you for reporting this issue!

Generated at Thu Feb 08 03:56:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.