ggasoftware / indigo

Indigo: a cheminformatics toolkit. Bingo: RDBMS data cartridge for Oracle, MS SQL Server, and PostgreSQL
https://lifescience.opensource.epam.com/indigo
47 stars 15 forks source link

build fails (Command 'make package' returned non-zero exit status 2) #5

Closed flc closed 11 years ago

flc commented 12 years ago

running

python build_scripts/indigo-release-libs.py --preset=linux64

fails with the following: (tried with master and indigo-1.1-rc.zip as well, same effect)

[...]
CMakeFiles/dlopen-test.dir/tests/c/dlopen-test.c.o:dlopen-test.c:(.text.startup+0x266): more undefined references to `dlsym' follow
CMakeFiles/dlopen-test.dir/tests/c/dlopen-test.c.o: In function `main':
dlopen-test.c:(.text.startup+0x2c1): undefined reference to `dlclose'
dlopen-test.c:(.text.startup+0x2d0): undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[2]: *** [dist/Linux/x64/shared/dlopen-test] Error 1
make[1]: *** [indigo/api/CMakeFiles/dlopen-test.dir/all] Error 2
make: *** [all] Error 2
[  4%] Built target z
[ 12%] Built target common
[ 13%] Built target tinyxml
[ 20%] Built target graph
[ 32%] Built target molecule
[ 38%] Built target reaction
[ 42%] Built target layout
Linking C executable ../../dist/Linux/x64/shared/dlopen-test
CMakeFiles/dlopen-test.dir/tests/c/dlopen-test.c.o: In function `dlOpenWithCheck':
dlopen-test.c:(.text+0x7): undefined reference to `dlopen'
dlopen-test.c:(.text+0x19): undefined reference to `dlerror'
CMakeFiles/dlopen-test.dir/tests/c/dlopen-test.c.o: In function `main':
dlopen-test.c:(.text.startup+0x10e): undefined reference to `dlclose'
dlopen-test.c:(.text.startup+0x15f): undefined reference to `dlsym'
dlopen-test.c:(.text.startup+0x1cb): undefined reference to `dlsym'
dlopen-test.c:(.text.startup+0x1dd): undefined reference to `dlsym'
dlopen-test.c:(.text.startup+0x244): undefined reference to `dlsym'
dlopen-test.c:(.text.startup+0x256): undefined reference to `dlsym'
CMakeFiles/dlopen-test.dir/tests/c/dlopen-test.c.o:dlopen-test.c:(.text.startup+0x266): more undefined references to `dlsym' follow
CMakeFiles/dlopen-test.dir/tests/c/dlopen-test.c.o: In function `main':
dlopen-test.c:(.text.startup+0x2c1): undefined reference to `dlclose'
dlopen-test.c:(.text.startup+0x2d0): undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[2]: *** [dist/Linux/x64/shared/dlopen-test] Error 1
make[1]: *** [indigo/api/CMakeFiles/dlopen-test.dir/all] Error 2
make: *** [all] Error 2
[  4%] Built target z
[ 12%] Built target common
[ 13%] Built target tinyxml
[ 20%] Built target graph
[ 32%] Built target molecule
[ 38%] Built target reaction
[ 42%] Built target layout
Linking C executable ../../dist/Linux/x64/shared/dlopen-test
CMakeFiles/dlopen-test.dir/tests/c/dlopen-test.c.o: In function `dlOpenWithCheck':
dlopen-test.c:(.text+0x7): undefined reference to `dlopen'
dlopen-test.c:(.text+0x19): undefined reference to `dlerror'
CMakeFiles/dlopen-test.dir/tests/c/dlopen-test.c.o: In function `main':
dlopen-test.c:(.text.startup+0x10e): undefined reference to `dlclose'
dlopen-test.c:(.text.startup+0x15f): undefined reference to `dlsym'
dlopen-test.c:(.text.startup+0x1cb): undefined reference to `dlsym'
dlopen-test.c:(.text.startup+0x1dd): undefined reference to `dlsym'
dlopen-test.c:(.text.startup+0x244): undefined reference to `dlsym'
dlopen-test.c:(.text.startup+0x256): undefined reference to `dlsym'
CMakeFiles/dlopen-test.dir/tests/c/dlopen-test.c.o:dlopen-test.c:(.text.startup+0x266): more undefined references to `dlsym' follow
CMakeFiles/dlopen-test.dir/tests/c/dlopen-test.c.o: In function `main':
dlopen-test.c:(.text.startup+0x2c1): undefined reference to `dlclose'
dlopen-test.c:(.text.startup+0x2d0): undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[2]: *** [dist/Linux/x64/shared/dlopen-test] Error 1
make[1]: *** [indigo/api/CMakeFiles/dlopen-test.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
  File "build_scripts/indigo-release-libs.py", line 72, in <module>
    subprocess.check_call("make package", shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'make package' returned non-zero exit status 2

any idea why?

rybalkin-ggasoftware commented 12 years ago

Hello flc!

We have fixed this compilation issue. By some reason on our machines it appeared only on Ubuntu 12. I didn't set the notification properly, and this is why found this issue only now.

Best regards, Mikhail

duguyixiaono1 commented 11 years ago

The same problem as @flc appeared!

duguyixiaono1 commented 11 years ago

Thank you for your reply, @rybalkin-ggasoftware . Now I'm so happy for solving this problem.....haha

rybalkin-ggasoftware commented 11 years ago

@duguyixiaono1, @flc As I've got a confirmation that the problem is resolved, I'm closing this issue. Thank you for the feedback!