Compiling on AIX 5.2, Part 2

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

Compiling on AIX 5.2, Part 2

Mikael Johansson-4

Hello All!

Just a few additional notes on what I had to do to get OpenBabel to
compile on an IBM AIX 5.2 system, just in case someone finds it useful.

In addition to having to rename the variable 'hz' in
src/formats/inchi/IChICan2.c (to, e.g, 'hz_new'), the Makefile's in the
src, test and tools directories had to be modified so the compiler knew
where to find -linchi. I manually added the path and library name after
the LIBS variable, but I guess a proper way would be to somehow make
'configure' do this for you. Anyway, for example src/Makefile:

LIBS = -lz -lm -L./formats/inchi/.libs -linchi
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

On the other platforms I've compiled 2.0, this wasn't needed.

Also, I couldn't get the shared libraries version to compile correctly, so
I used './configure --disable-shared'. I'm not sure it _can't_ be done
with shared libs, but I don't care too much, either :-)

Have a nice day,
     Mikael J.

--
Mikael Johansson, application specialist, chemistry support
CSC - IT Center for Science, P.O. Box 405, FI-02101 Espoo, Finland
Tel.: +358-9-457 2934, www.csc.fi, e-mail: [hidden email]



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Compiling on AIX 5.2, Part 2

Michael Banck
On Tue, Dec 20, 2005 at 01:04:53AM +0200, Mikael Johansson wrote:

> In addition to having to rename the variable 'hz' in
> src/formats/inchi/IChICan2.c (to, e.g, 'hz_new'), the Makefile's in the
> src, test and tools directories had to be modified so the compiler knew
> where to find -linchi. I manually added the path and library name after
> the LIBS variable, but I guess a proper way would be to somehow make
> 'configure' do this for you. Anyway, for example src/Makefile:
>
> LIBS = -lz -lm -L./formats/inchi/.libs -linchi
>                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> On the other platforms I've compiled 2.0, this wasn't needed.

Could this be a problem with AIX's version of make?  Could you try with
GNU make (if you're not using that already), whether this problem
persists?


thanks,

Michael


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Compiling on AIX 5.2, Part 2

Mikael Johansson-4

Hello!

On Wed, 21 Dec 2005, Michael Banck wrote:

>> the LIBS variable, but I guess a proper way would be to somehow make
>> 'configure' do this for you. Anyway, for example src/Makefile:
>>
>> LIBS = -lz -lm -L./formats/inchi/.libs -linchi
>>                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> Could this be a problem with AIX's version of make?  Could you try with
> GNU make (if you're not using that already), whether this problem
> persists?

gmake and make both need this. Otherwise:
ld: 0711-317 ERROR: Undefined symbol: .GetINCHI
ld: 0711-317 ERROR: Undefined symbol: .FreeINCHI

Have a nice day,
     Mikael J.

--
Mikael Johansson, application specialist, chemistry support
CSC - IT Center for Science, P.O. Box 405, FI-02101 Espoo, Finland
Tel.: +358-9-457 2934, www.csc.fi, e-mail: [hidden email]


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss