Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 345454 Details for
Bug 465242
dev-db/mongodb-2.4.1 USE=sharedclient - linking against libmongoclient.so fails with undefined symbols from mongo::
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fixing scons scripts to build a working libmongoclient.so
mongodb-2.4.1-fix-sharedclient.patch (text/plain), 4.70 KB, created by
Christoph Koke
on 2013-04-13 10:25:44 UTC
(
hide
)
Description:
fixing scons scripts to build a working libmongoclient.so
Filename:
MIME Type:
Creator:
Christoph Koke
Created:
2013-04-13 10:25:44 UTC
Size:
4.70 KB
patch
obsolete
>diff -urN mongodb-src-r2.4.1/src/mongo/SConscript mongodb-src-r2.4.1-patched/src/mongo/SConscript >--- mongodb-src-r2.4.1/src/mongo/SConscript 2013-03-22 20:55:25.000000000 +0100 >+++ mongodb-src-r2.4.1-patched/src/mongo/SConscript 2013-04-12 13:39:31.000000000 +0200 >@@ -452,7 +452,7 @@ > env.Library('stacktrace', 'util/stacktrace.cpp') > > env.Program('lame_stacktrace_test', 'util/lame_stacktrace_test.cpp', >- LIBDEPS=['stacktrace', >+ LIBDEPS=['stacktrace', 'foundation', 'mongocommon', 'alltools', > '$BUILD_DIR/mongo/base/base']) > > serverOnlyFiles += mmapFiles >@@ -654,10 +654,6 @@ > "defaultversion", > "gridfs", > "notmongodormongos"]) >-env.Library("allclient", "client/clientOnly.cpp", LIBDEPS=["clientandshell"]) >- >-if has_option( "sharedclient" ): >- sharedClientLibName = str( env.SharedLibrary( "mongoclient", [], LIBDEPS=["allclient"] )[0] ) > > # dbtests test binary > env.StaticLibrary('testframework', ['dbtests/framework.cpp'], LIBDEPS=['unittest/unittest']) >@@ -806,12 +802,6 @@ > env.Install( "$INSTALL_DIR/include/" + id, Glob( id + "*.h" ) ) > env.Install( "$INSTALL_DIR/include/" + id, Glob( id + "*.hpp" ) ) > >-#lib >-if installSetup.libraries: >- env.Install('$INSTALL_DIR/$NIX_LIB_DIR', '#${LIBPREFIX}mongoclient${LIBSUFFIX}') >- if has_option( "sharedclient" ): >- env.Install( "$INSTALL_DIR/$NIX_LIB_DIR", '#${SHLIBPREFIX}mongoclient${SHLIBSUFFIX}') >- > # Stage the top-level mongodb banners > distsrc = env.Dir('#distsrc') > env.Append(MODULE_BANNERS = [distsrc.File('README'), >diff -urN mongodb-src-r2.4.1/src/SConscript.client mongodb-src-r2.4.1-patched/src/SConscript.client >--- mongodb-src-r2.4.1/src/SConscript.client 2013-03-22 20:55:25.000000000 +0100 >+++ mongodb-src-r2.4.1-patched/src/SConscript.client 2013-04-12 13:10:38.000000000 +0200 >@@ -4,6 +4,7 @@ > # programs. > > Import('env clientEnv') >+Import("has_option") > > env.Command(['mongo/base/error_codes.h', 'mongo/base/error_codes.cpp',], > ['mongo/base/generate_error_codes.py', 'mongo/base/error_codes.err'], >@@ -37,7 +38,6 @@ > 'mongo/client/dbclient.cpp', > 'mongo/client/dbclient_rs.cpp', > 'mongo/client/dbclientcursor.cpp', >- 'mongo/client/distlock.cpp', > 'mongo/client/gridfs.cpp', > 'mongo/client/model.cpp', > 'mongo/client/sasl_client_authenticate.cpp', >@@ -84,7 +84,6 @@ > 'mongo/util/timer.cpp', > 'mongo/util/trace.cpp', > 'mongo/util/util.cpp', >- 'mongo/util/version.cpp', > ] > > clientSourceSasl = ['mongo/client/sasl_client_authenticate_impl.cpp', >@@ -94,8 +93,10 @@ > > if env['MONGO_BUILD_SASL_CLIENT']: > clientSource = clientSourceAll >+ clientLibs = ["gsasl"] > else: > clientSource = clientSourceBasic >+ clientLibs = [] > > exampleSourceMap = [ > ('authTest', 'mongo/client/examples/authTest.cpp'), >@@ -134,16 +135,18 @@ > clientHeaders.extend(Glob('mongo/%s/*.h' % path)) > clientHeaders.extend(Glob('mongo/%s/*.hpp' % path)) > >-mongoclient_lib = env.Library('mongoclient', clientSource), >-mongoclient_install = env.Install('#/', [ >- mongoclient_lib, >- #env.SharedLibrary('mongoclient', clientSource), >- ]) >+ >+mongoclient_libs = [ env.Library('mongoclient', clientSource, LIBS=clientLibs) ] >+if has_option( "sharedclient" ): >+ mongoclient_libs.append( env.SharedLibrary('mongoclient', clientSource) ) >+ >+mongoclient_install = env.Install('#/', mongoclient_libs) >+ > env.Alias('mongoclient', mongoclient_install) > > clientTests = clientEnv.Install('#/', [ > clientEnv.Program(target, >- [source, mongoclient_lib]) for (target, source) in exampleSourceMap]) >+ [source, mongoclient_libs[-1]]) for (target, source) in exampleSourceMap]) > > clientTests.append( > clientEnv.Install('#/', clientEnv.Program('bsondemo', 'mongo/bson/bsondemo/bsondemo.cpp'))) >@@ -178,6 +181,8 @@ > prefix = GetOption("prefix") > > env.Install(prefix + "/lib", '${LIBPREFIX}mongoclient${LIBSUFFIX}') >+if has_option( "sharedclient" ): >+ env.Install(prefix + "/lib", '${SHLIBPREFIX}mongoclient${SHLIBSUFFIX}') > > for x in clientHeaderDirectories: > inst = env.Install(prefix + "/include/mongo/" + x, >--- mongodb-src-r2.4.1/SConstruct 2013-03-22 20:55:25.000000000 +0100 >+++ mongodb-src-r2.4.1-patched/SConstruct 2013-04-12 13:11:15.000000000 +0200 >@@ -843,7 +844,7 @@ > > env['MONGO_BUILD_SASL_CLIENT'] = bool(has_option("use-sasl-client")) > if env['MONGO_BUILD_SASL_CLIENT'] and not conf.CheckLibWithHeader( >- "gsasl", "gsasl.h", "C", "gsasl_check_version(GSASL_VERSION);", autoadd=False): >+ "gsasl", "gsasl.h", "C", "gsasl_check_version(GSASL_VERSION);"): > > Exit(1) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 465242
:
344952
|
345454
|
345456
|
345466
|
345496