Hi all,
works for me on Mac OS X 10.5.6 and gcc version i686-apple-darwin9-
gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5484)
Complete output of my terminal session attached.
Regards,
Werner
On 27.01.2009, at 07:00, Alan W. Irwin wrote:
On 2009-01-26 21:28-0700 Jerry wrote:
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
Hi Jerry:
Thanks very much. I think you have confirmed there is a cmake-2.6.2
bug for
building shared libraries using the simple test project at
https://plplot.svn.sourceforge.net/svnroot/plplot/branches/test_cmake/test_c_library_build
I need a bit more information to take this issue to the CMake
mailing list.
* What are the results of "make VERBOSE=1" (starting from a clean
build,
again)?
* What are your OS X and gcc versions?
Hello to Hazen and Werner:
Can you confirm this bug for your Mac OS X systems for the simple test
project above or is this shared library issue for Mac OS X just
confined to
Jerry's platform? When reporting back, please state your OS X and gcc
versions.
Have either of you guys noticed a mention of this bug on the CMake
list? I
have only been skimming that list traffic in the last 6 months so I
may have
missed something.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel
--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
email: [email protected]
web: http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office), +43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499
atto:temp smekal$ svn checkout
https://plplot.svn.sourceforge.net/svnroot/plplot/branches/test_cmake/test_c_library_build
Error validating server certificate for
'https://plplot.svn.sourceforge.net:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
- Hostname: *.svn.sourceforge.net
- Valid: from Tue, 11 Nov 2008 19:25:27 GMT until Mon, 11 Jan 2010 19:25:27 GMT
- Issuer: Equifax Secure Certificate Authority, Equifax, US
- Fingerprint: 04:b2:70:e9:ba:cf:70:fc:e8:8a:22:86:14:13:51:97:1b:6a:de:38
(R)eject, accept (t)emporarily or accept (p)ermanently? p
A test_c_library_build/Hello
A test_c_library_build/Hello/hello.c
A test_c_library_build/Hello/CMakeLists.txt
A test_c_library_build/Demo
A test_c_library_build/Demo/demo.c
A test_c_library_build/Demo/CMakeLists.txt
A test_c_library_build/CMakeLists.txt
Checked out revision 9405.
atto:temp smekal$ ls
test_c_library_build
atto:temp smekal$ cd test_c_library_build/
atto:test_c_library_build smekal$ mkdir build
atto:test_c_library_build smekal$ ls
CMakeLists.txt Demo Hello build
atto:test_c_library_build smekal$ cd build
atto:build smekal$ cmake ..
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to:
/Users/smekal/Development/temp/test_c_library_build/build
atto:build smekal$ make
Scanning dependencies of target Hello
[ 50%] Building C object Hello/CMakeFiles/Hello.dir/hello.c.o
Linking C shared library libHello.dylib
[ 50%] Built target Hello
Scanning dependencies of target helloDemo
[100%] Building C object Demo/CMakeFiles/helloDemo.dir/demo.c.o
Linking C executable helloDemo
[100%] Built target helloDemo
atto:build smekal$ make clean
atto:build smekal$ make VERBOSE=1
"/Users/smekal/Applications/CMake 2.6-2.app/Contents/bin/cmake"
-H/Users/smekal/Development/temp/test_c_library_build
-B/Users/smekal/Development/temp/test_c_library_build/build
--check-build-system CMakeFiles/Makefile.cmake 0
"/Users/smekal/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
cmake_progress_start
/Users/smekal/Development/temp/test_c_library_build/build/CMakeFiles
/Users/smekal/Development/temp/test_c_library_build/build/CMakeFiles/progress.make
make -f CMakeFiles/Makefile2 all
make -f Hello/CMakeFiles/Hello.dir/build.make Hello/CMakeFiles/Hello.dir/depend
cd /Users/smekal/Development/temp/test_c_library_build/build &&
"/Users/smekal/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
cmake_depends "Unix Makefiles"
/Users/smekal/Development/temp/test_c_library_build
/Users/smekal/Development/temp/test_c_library_build/Hello
/Users/smekal/Development/temp/test_c_library_build/build
/Users/smekal/Development/temp/test_c_library_build/build/Hello
/Users/smekal/Development/temp/test_c_library_build/build/Hello/CMakeFiles/Hello.dir/DependInfo.cmake
--color=
make -f Hello/CMakeFiles/Hello.dir/build.make Hello/CMakeFiles/Hello.dir/build
"/Users/smekal/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
cmake_progress_report
/Users/smekal/Development/temp/test_c_library_build/build/CMakeFiles 1
[ 50%] Building C object Hello/CMakeFiles/Hello.dir/hello.c.o
cd /Users/smekal/Development/temp/test_c_library_build/build/Hello &&
/usr/bin/gcc -DHello_EXPORTS -fPIC -o CMakeFiles/Hello.dir/hello.c.o -c
/Users/smekal/Development/temp/test_c_library_build/Hello/hello.c
Linking C shared library libHello.dylib
cd /Users/smekal/Development/temp/test_c_library_build/build/Hello &&
"/Users/smekal/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
cmake_link_script CMakeFiles/Hello.dir/link.txt --verbose=1
/usr/bin/gcc -dynamiclib -headerpad_max_install_names
-Wl,-current_version,0.0.1 -o libHello.0.0.1.dylib -install_name
/Users/smekal/Development/temp/test_c_library_build/build/Hello/libHello.0.0.dylib
CMakeFiles/Hello.dir/hello.c.o
cd /Users/smekal/Development/temp/test_c_library_build/build/Hello &&
"/Users/smekal/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
cmake_symlink_library libHello.0.0.1.dylib libHello.0.0.dylib libHello.dylib
"/Users/smekal/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
cmake_progress_report
/Users/smekal/Development/temp/test_c_library_build/build/CMakeFiles 1
[ 50%] Built target Hello
make -f Demo/CMakeFiles/helloDemo.dir/build.make
Demo/CMakeFiles/helloDemo.dir/depend
cd /Users/smekal/Development/temp/test_c_library_build/build &&
"/Users/smekal/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
cmake_depends "Unix Makefiles"
/Users/smekal/Development/temp/test_c_library_build
/Users/smekal/Development/temp/test_c_library_build/Demo
/Users/smekal/Development/temp/test_c_library_build/build
/Users/smekal/Development/temp/test_c_library_build/build/Demo
/Users/smekal/Development/temp/test_c_library_build/build/Demo/CMakeFiles/helloDemo.dir/DependInfo.cmake
--color=
make -f Demo/CMakeFiles/helloDemo.dir/build.make
Demo/CMakeFiles/helloDemo.dir/build
"/Users/smekal/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
cmake_progress_report
/Users/smekal/Development/temp/test_c_library_build/build/CMakeFiles 2
[100%] Building C object Demo/CMakeFiles/helloDemo.dir/demo.c.o
cd /Users/smekal/Development/temp/test_c_library_build/build/Demo &&
/usr/bin/gcc -I/Users/smekal/Development/temp/test_c_library_build/Hello -o
CMakeFiles/helloDemo.dir/demo.c.o -c
/Users/smekal/Development/temp/test_c_library_build/Demo/demo.c
Linking C executable helloDemo
cd /Users/smekal/Development/temp/test_c_library_build/build/Demo &&
"/Users/smekal/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
cmake_link_script CMakeFiles/helloDemo.dir/link.txt --verbose=1
/usr/bin/gcc -Wl,-search_paths_first -headerpad_max_install_names -fPIC
CMakeFiles/helloDemo.dir/demo.c.o -o helloDemo
-L/Users/smekal/Development/temp/test_c_library_build/build/Hello
../Hello/libHello.0.0.1.dylib
"/Users/smekal/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
cmake_progress_report
/Users/smekal/Development/temp/test_c_library_build/build/CMakeFiles 2
[100%] Built target helloDemo
"/Users/smekal/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E
cmake_progress_start
/Users/smekal/Development/temp/test_c_library_build/build/CMakeFiles 0
atto:build smekal$ ls
CMakeCache.txt Demo Makefile
CMakeFiles Hello cmake_install.cmake
atto:build smekal$ ./
CMakeFiles/ Demo/ Hello/
atto:build smekal$ Hello/
CMakeFiles/ libHello.0.0.1.dylib libHello.0.0.dylib
libHello.dylib
atto:build smekal$ Hello/
CMakeFiles/ libHello.0.0.1.dylib libHello.0.0.dylib
libHello.dylib
atto:build smekal$ Demo/
CMakeFiles/ helloDemo
atto:build smekal$ Demo/helloDemo
hello, world
atto:build smekal$
------------------------------------------------------------------------------
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