On 2009-01-26 17:21-0700 je...@bauck.net wrote:

> [...]cd /usr/local/plplot_build_dir/lib/csa && /usr/local/ada-4.3/bin/gcc 
> -DHAVE_CONFIG_H -Dcsirocsa_EXPORTS -fPIC   -DUSINGDLL -o 
> CMakeFiles/csirocsa.dir/csa.c.o   -c 
> /Users/jerrybauck/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/plplot/lib/csa/csa.c
> Linking C shared library libcsirocsa.dylib
> cd /usr/local/plplot_build_dir/lib/csa && "/Applications/CMake 
> 2.6-2.app/Contents/bin/cmake" -E cmake_link_script 
> CMakeFiles/csirocsa.dir/link.txt --verbose=1
> /usr/local/ada-4.3/bin/gcc   -dynamiclib -headerpad_max_install_names 
> -single_module -Wl,-current_version,0.0.1 -o libcsirocsa.0.0.1.dylib 
> -install_name /usr/local/plplot_build_dir/lib/csa/libcsirocsa.0.dylib 
> CMakeFiles/csirocsa.dir/csa.c.o /usr/lib/libm.dylib
> /usr/bin/ld: unknown flag: -current_version
> collect2: ld returned 1 exit status
> make[2]: *** [lib/csa/libcsirocsa.0.0.1.dylib] Error 1
> make[1]: *** [lib/csa/CMakeFiles/csirocsa.dir/all] Error 2
> make: *** [all] Error 2
[...]

Hi Jerry:

I am taking your above build error report to the list because there are
others there (Hazen and Werner) with access to Mac OS X who should be
able to comment more knowledgeably than me.

The above link error occurred for the very first library (libcsirocsa) that
is linked by the build system.  That's a very simple build (no dependencies)
so there is a possibily you might have found a CMake-2.6.2 build error for
your platform.

To check further on that possibility, I have made a simple project for you
to test. It consists of a shared library which has one routine that prints
out "hello, world" and a main routine that calls that library routine. I
have set the SOVERSION and VERSION flags so that the above -current_version
option should be used.

Please use svn checkout to grab

https://plplot.svn.sourceforge.net/svnroot/plplot/branches/test_cmake/test_c_library_build

Please build this tiny test project with cmake-2.6.2 and make to see whether
you get the same error.  It works perfectly for me on Linux. If you do
confirm the error for this tiny project for your versions of Mac OS X and
gcc, then I will use that result to get some action on the CMake list.

Hazen and Werner, will you also check that this simple project builds for
you on Mac OS X?

BTW, if you want to confirm the built executable works, run
Demo/helloDemo from the top of the build tree.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to