Build Error: undefined reference to symbol 'dlsym@@GLIBC_2.17' related to Aug 22nd released version 3.1.7 of MongoDB for RHEL7.1/PPC64LE

483 views
Skip to first unread message

Rudra H

unread,
Aug 27, 2015, 3:10:46 AM8/27/15
to mongodb-dev
Hi,

While building Aug 22nd released version 3.1.7 of MongoDB, I am getting following error:

/bin/ld: build/opt/mongo/platform/shared_library_posix.o: undefined reference to symbol 'dlsym@@GLIBC_2.17'
/bin/ld: note: 'dlsym@@GLIBC_2.17' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
/lib64/libdl.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status

OS: RHEL 7.1
Arch: PPC64LE

Shell command: scons all --allocator=system --ssl --use-system-intel_decimal128=USE-SYSTEM-INTEL_DECIMAL128 -j32 --include-dir=/lib64

Remarks:
Previous version 3.1.7-pre used to build without any error

Any inputs will be highly appreciated!

Thanks and Regards,
Anup Halarnkar

Andrew Morrow

unread,
Aug 27, 2015, 10:26:57 AM8/27/15
to mongodb-dev
On Thu, Aug 27, 2015 at 3:10 AM, Rudra H <anup.ha...@gmail.com> wrote:
Hi,

While building Aug 22nd released version 3.1.7 of MongoDB, I am getting following error:

/bin/ld: build/opt/mongo/platform/shared_library_posix.o: undefined reference to symbol 'dlsym@@GLIBC_2.17'
/bin/ld: note: 'dlsym@@GLIBC_2.17' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
/lib64/libdl.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status

Could you show the link command that was executed for that target? Was -ldl listed among the libraries on the link line? Also, that error about 'could not read symbols' seems quite strange.
 

OS: RHEL 7.1
Arch: PPC64LE

Shell command: scons all --allocator=system --ssl --use-system-intel_decimal128=USE-SYSTEM-INTEL_DECIMAL128 -j32 --include-dir=/lib64

Some of this looks sort of strange. In particular:

--use-system-intel_decimal128=USE_SYSTEM...: you shouldn't be specifying this flag as anything (since decimal is disabled), and the option doesn't take any arguments, so there should be no "=" when it is specified.

--include-dir=/lib64 : There is no SCons option '--include-dir', and if there were, it would seem odd given that name that it is would be set to /lib64.
 

Remarks:
Previous version 3.1.7-pre used to build without any error

Could you try removing the 'build' directory and doing a rebuild?

Thanks,
Andrew

Rudra H

unread,
Aug 28, 2015, 8:05:44 AM8/28/15
to mongodb-dev
Hi,

I was able to build successfully.

It seems the problem was with the use of this flag --use-system-intel_decimal128=
USE-SYSTEM-INTEL_DECIMAL128

The flag is not disabled by default. If I dont use the flag, I get an "Unsupported architecture" error.

I modified the flag to " --use-system-intel_decimal128=none" and was able to build successfully.

Thanks a lot for your inputs.

Regards,
Anup Halarnkar

Andrew Morrow

unread,
Aug 28, 2015, 8:30:24 AM8/28/15
to mongodb-dev
On Fri, Aug 28, 2015 at 8:05 AM, Rudra H <anup.ha...@gmail.com> wrote:
Hi,

I was able to build successfully.

It seems the problem was with the use of this flag --use-system-intel_decimal128=
USE-SYSTEM-INTEL_DECIMAL128

Yeah, that is issue https://jira.mongodb.org/browse/SERVER-20124, which was actually just fixed yesterday. If you pull master, you should find that you no longer need to mention this flag.
 

--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev...@googlegroups.com.
To post to this group, send email to mongo...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-dev.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages