On Jan 26, 2009, at 7:18 PM, Alan W. Irwin wrote:

> On 2009-01-26 17:21-0700 [email protected] 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/me/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
> __________________________
>
Hi Alan,

I ran this script:



cd /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp

echo "Running cmake."
cmake \
-DCMAKE_INSTALL_PREFIX=/Users/me/Documents/Programs/Ada/Code/Bindings/ 
PLplot/plplot_svn/temp \
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/ 
test_c_library_build

echo "Running make."
make

echo "Done"
exit 0



and got these results:



Running cmake.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/me/Documents/Programs/Ada/ 
Code/Bindings/PLplot/plplot_svn/temp
Running make.
Linking C shared library libHello.dylib
/usr/bin/ld: unknown flag: -current_version
collect2: ld returned 1 exit status
make[2]: *** [Hello/libHello.0.0.1.dylib] Error 1
make[1]: *** [Hello/CMakeFiles/Hello.dir/all] Error 2
make: *** [all] Error 2
Done



Jerry

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to