[SERVER-6248] no mongoclient target as described in docs/building.md Created: 29/Jun/12  Updated: 11/Jul/16  Resolved: 12/Jul/12

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: 2.1.2
Fix Version/s: 2.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: David Schneider Assignee: Daniel Crosta
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 5.8


Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Build of c++ driver from server source tar fails. As in docs/building.md described there should be a mongoclient target.

[mongodb-src-r2.1.2]$ scons mongoclient 
scons: Reading SConscript files ...
scons version: 2.1.0
python version: 2 6 8 'final' 0
Checking whether the C++ compiler works(cached) yes
Checking for C header file unistd.h... (cached) yes
Checking whether clock_gettime is declared... (cached) yes
Checking for C library rt... (cached) yes
Checking for C++ header file execinfo.h... (cached) yes
Checking whether backtrace is declared... (cached) yes
Checking whether backtrace_symbols is declared... (cached) yes
Checking for C library pcap... (cached) no
Checking for C library wpcap... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
scons: *** Do not know how to make File target `mongoclient' (.../mongodb-src-r2.1.2/mongoclient).  Stop.
scons: building terminated because of errors.

Please fix the target or update the description.



 Comments   
Comment by auto [ 12/Jul/12 ]

Author:

{u'date': u'2012-07-12T11:31:09-07:00', u'email': u'dcrosta@10gen.com', u'name': u'Dan Crosta'}

Message: SERVER-6248: add 'mongoclient' alias in server SConstruct
Branch: master
https://github.com/mongodb/mongo/commit/e7b412c8104b620fd74a617403401c9a669bc3e8

Comment by auto [ 10/Jul/12 ]

Author:

{u'date': u'2012-07-10T14:22:58-07:00', u'name': u'Dan Crosta', u'email': u'dcrosta@10gen.com'}

Message: SERVER-6248: add 'mongoclient' alias and make it the default
Branch: master
https://github.com/mongodb/mongo/commit/5dcd31a8f12ab35bfbcd32d59e27065a676264f0

Comment by Tad Marshall [ 29/Jun/12 ]

The file docs/building.md needs to be updated to reflect our current build.

To build mongoclient you need to specify the final filename of the library. On Linux and other non-Windows platforms, the filename is libmongoclient.a . On Windows, the filename is mongoclient.lib .

scons libmongoclient.a

scons mongoclient.lib

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