-mt;-D_REENTRANT compiling on OpenSolaris

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

-mt;-D_REENTRANT compiling on OpenSolaris

Gleb Sitnikov
Hello! I am compiling latest (thru svn) OpenBabel code with wxWidgets on OpenSolaris 2009.06. I got this file "src/CMakeFiles/openbabel.dir/flags.make"
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.6

# compile CXX with /usr/bin/c++
CXX_FLAGS = -DMAKE_OBDLL -mt;-D_REENTRANT -O2 -g -fPIC -isystem /usr/lib/wx/include/gtk2-unicode-release-2.8 -isystem /usr/include/wx-2.8 -I/export/home/jsg/Molecule_projects/openbabel/include -I/export/home/jsg/Molecule_projects/openbabel/data -I/usr/local/include/eigen2 -DOB_MODULE_PATH="\"/usr/local/openbabel/lib/openbabel/2.2.99\""

CXX_DEFINES = -DUSING_DYNAMIC_LIBS -DHAVE_LIBZ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -D_REENTRANT -DHAVE_WXWIDGETS -DHAVE_EIGEN2

Did you note "-mt;-D_REENTRANT"? The fact is OpenSolaris doesn't support -mt flag, it seems to be a gcc-ism. The second problem is (;) which is illegal. I removed "-mt;" from CXX_FLAGS and now it compiles. The question is how to implement it on a higher level, I mean thru CMake interface? There're lots of similar "flags.make" files in each dir and I'm tired editing them all.

Best regards,
Gleb.

*****
OpenSolaris & Sun Studio 2x faster than Linux & GCC on Intel Nehalem!
http://ekschi.com/technology/2009/06/09/free-compiler-wins-nehalem-race-by-2x/


------------------------------------------------------------------------------


_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
Reply | Threaded
Open this post in threaded view
|

Re: -mt;-D_REENTRANT compiling on OpenSolaris

Geoffrey Hutchison

On May 19, 2010, at 6:22 AM, Gleb Sitnikov wrote:

> Hello! I am compiling latest (thru svn) OpenBabel code with wxWidgets on OpenSolaris 2009.06. I got this file "src/CMakeFiles/openbabel.dir/flags.make"
...
> Did you note "-mt;-D_REENTRANT"? The fact is OpenSolaris doesn't support -mt flag, it seems to be a gcc-ism. The second problem is (;) which is illegal. I removed "-mt;" from CXX_FLAGS and now it compiles. The question is how to implement it on a higher level, I mean thru CMake interface? There're lots of similar "flags.make" files in each dir and I'm tired editing them all.

Well, the files clearly state that you shouldn't be editing them -- they're auto-generated by CMake.

We don't have any such flags like -mt or -D_REENTRANT, so I suspect these have been picked up by wxWidgets or CMake's wxWidgets detection scripts.

My suggestion would be to re-run cmake with '-DBUILD_GUI=false' which will prevent the GUI from being built.

Best regards,
-Geoff
------------------------------------------------------------------------------

_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss