From: <lan...@qw...> - 2006-03-29 03:07:22
|
>> >> Yes--I ran these commands twice, once with the space and once >> without the space: >> ./configure --disable-dyndrivers --disable-f77 >> make >> make install > > This *should* work (for 10.4 as well as 10.3) if modify your make > command to: > make LIBS="-Wl,-framework -Wl,Foundation" (note that it is a "l" > not a "1", see the INSTALL file) > > I think the problem with the above is that if you disable dyn- > drivers then the compiler needs to be able to find these libraries > in order to statically link them. > >> /bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -o >> libplplotcxxd.la -rpath /usr/local/lib -version-info 11:0:2 - >> rpath /usr/local/lib -no-undefined ../../src/libplplotd.la >> plstream.lo -lm >> rm -fr .libs/libplplotcxxd.9.2.0.dylib >> g++ -dynamiclib -single_module -o .libs/libplplotcxxd. >> 9.2.0.dylib .libs/plstream.o ../../src/.libs/libplplotd.dylib / >> Applications/Programming/Plotting_Stuff/plplot-5.5.3/lib/csa/.libs/ >> libcsirocsa.dylib -lm -install_name /usr/local/lib/libplplotcxxd. >> 9.dylib -compatibility_version 12 -current_version 12.0 >> g++: installation problem, cannot exec `c++filt3': No such file or >> directory >> make[3]: *** [libplplotcxxd.la] Error 1 >> make[2]: *** [all-recursive] Error 1 >> make[1]: *** [all-recursive] Error 1 >> make: *** [all] Error 2 >> >> >> I have seen this problem with c++filt3 before (not with PLplot) >> and I have seen others discuss it in other contexts, but I still >> don't know how to fix it. I believe that it might be a problem >> created by Apple. Indeed, there is no c++filt3 on my computer, but >> there is a /usr/bin/c++filt; the manpage for c++filt says >> "Demangle C++ and Java symbols." > > I'm not able to reproduce this one, though I've seen it in the past > in the context of a problem with g77. You could try making a copy > of c++filt & naming it c++filt3, or creating a symbolic link. Now done. > > > One thing that is often useful for remote debugging is the last few > lines of your configure, i.e. these lines: > <snip> Here they are command: ./configure --disable-dyndrivers --disable-f77 host: powerpc-apple-darwin8.5.0 have_x: yes prefix: /usr/local CC: gcc CXX: g++ LIB_TAG: d devices: aqt hp7470 hp7580 lj_hpgl mem null pbm plmeta ps psc pstex xfig xwin Available device drivers: static: aqt.lo hpgl.lo mem.lo null.lo pbm.lo plmeta.lo ps.lo pstex.lo xfig.lo xwin.lo dynamic: Compilation options: with_debug: no Library options: enable_shared: yes enable_static: yes with_rpath: yes with_double: yes Optional libraries: with_qhull: no with_csa: yes with_freetype: no with_pthreads: no Language Bindings: enable_tcl: no enable_itcl: no enable_cxx: yes enable_f77: no enable_java: no enable_python: no enable_octave: yes enable_pdl: no Then the make modified as you suggested: make LIBS="-Wl,-framework -Wl,Foundation" ---- many delete lines, then: ld: warning multiple definitions of symbol _xerbla_ /usr/local/lib/octave-2.1.71/liboctinterp.dylib(single module) definition of _xerbla_ /usr/local/lib/octave-2.1.71/libcruft.dylib(single module) definition of _xerbla_ /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/ vecLib.framework/Versions/A/libBLAS.dylib(single module) definition of _xerbla_ ld: Undefined symbols: _plparseopts make[4]: *** [plplot_octave.oct] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 There seem to be two Octave libraries which are interfering with the Accelerate.framework. Can I exclude the Octave stuff using additional options to make? If I do, will Octave still be able to use PLplot? (Octave is not my highest priority now, but it would be nice.) Then there's this: [AlBook:Programming/Plotting_Stuff/plplot-5.5.3] me% make install Making install in drivers make[2]: Nothing to be done for `install-exec-am'. test -z "/usr/local/share/doc/plplot" || /Applications/Programming/ Plotting_Stuff/plplot-5.5.3/cf/install-sh -d "/usr/local/share/doc/ plplot" mkdir: /usr/local/share/doc: Permission denied make[2]: *** [install-docDATA] Error 1 make[1]: *** [install-am] Error 2 make: *** [install-recursive] Error 1 > Also, which versions of gcc & g++ do you have (gcc -v, g++ -v)? > I've got 4.0.0 for both. gcc -v gives: Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs Thread model: posix gcc version 3.3 20040913 (GNAT for Mac OS X build 1650) g++ -v gives: Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs Thread model: posix gcc version 3.3 20030304 (Apple Computer, Inc. build 1809) I'm not comfortable moving to 4.0 yet because the Ada and Pascal compilers (or their OS X integration) that I use are still being tweaked. Thanks, Jerry > > best, > -Hazen > > |