[MacPorts] #22934: cmake-2.8.0 build failure: ld: symbol(s) not found
#22934: cmake-2.8.0 build failure: ld: symbol(s) not found --------------------------------+------------------------------------------- Reporter: paul@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: cmake --------------------------------+------------------------------------------- When trying to install cmake, I get: {{{ ---> Building cmake Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.8.0" && /usr/bin/make -j2 all " returned error 2 Command output: _main in ccmake.o "_delwin", referenced from: _unpost_form in libcmForm.a(frm_post.o) _Field_Grown in libcmForm.a(frm_driver.o) _Display_Or_Erase_Field in libcmForm.a(frm_driver.o) __nc_Set_Current_Field in libcmForm.a(frm_driver.o) "_winsch", referenced from: _FE_Insert_Character in libcmForm.a(frm_driver.o) _form_driver in libcmForm.a(frm_driver.o) "_derwin", referenced from: _Display_Or_Erase_Field in libcmForm.a(frm_driver.o) __nc_Set_Current_Field in libcmForm.a(frm_driver.o) "_wattr_off", referenced from: cmCursesLongMessageForm::UpdateStatusBar() in cmCursesLongMessageForm.o cmCursesMainForm::UpdateStatusBar(char const*)in cmCursesMainForm.o "_winnstr", referenced from: _Window_To_Buffer in libcmForm.a(frm_driver.o) "_winsnstr", referenced from: _Insert_String in libcmForm.a(frm_driver.o) _Insert_String in libcmForm.a(frm_driver.o) _Insert_String in libcmForm.a(frm_driver.o) _Insert_String in libcmForm.a(frm_driver.o) ld: symbol(s) not found collect2: ld returned 1 exit status make[2]: *** [bin/ccmake] Error 1 make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Linking CXX executable ../bin/cmakexbuild [ 94%] Built target cmakexbuild make: *** [all] Error 2 Error: Status 1 encountered during processing. }}} Output of uname -a: {{{ Darwin paulbook.pauljlucas.org 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386 }}} i.e., Snow Leopard 10.6.2, Xcode 3.2.1, gcc -v output: {{{ Using built-in specs. Target: i686-apple-darwin10 Configured with: /var/tmp/gcc/gcc-5646.1~2/src/configure --disable- checking --enable-werror --prefix=/usr --mandir=/share/man --enable- languages=c,objc,c++,obj-c++ --program-transform- name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple- darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686 -apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5646) (dot 1) }}} -- Ticket URL: <http://trac.macports.org/ticket/22934> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22934: cmake-2.8.0 build failure: ld: symbol(s) not found --------------------------------+------------------------------------------- Reporter: paul@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: cmake --------------------------------+------------------------------------------- Changes (by jmr@…): * cc: css@… (removed) * owner: macports-tickets@… => css@… Comment: The start of the error is missing, run in debug mode. -- Ticket URL: <http://trac.macports.org/ticket/22934#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22934: cmake-2.8.0 build failure: ld: symbol(s) not found --------------------------------+------------------------------------------- Reporter: paul@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: cmake --------------------------------+------------------------------------------- Changes (by css@…): * status: new => assigned Comment: Replying to [comment:1 jmr@…]:
The start of the error is missing, run in debug mode.
Yes, please do: {{{ port clean cmake port -d build cmake > cmake-build.txt }}} Please attach the resulting text file to the ticket. -- Ticket URL: <http://trac.macports.org/ticket/22934#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22934: cmake-2.8.0 build failure: ld: symbol(s) not found --------------------------------+------------------------------------------- Reporter: paul@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: cmake --------------------------------+------------------------------------------- Comment(by jmr@…): So the proximate cause is: {{{ warning: in /usr/local/lib/libcurses.dylib, file is not of required architecture }}} -- Ticket URL: <http://trac.macports.org/ticket/22934#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22934: cmake-2.8.0 build failure: ld: symbol(s) not found --------------------------------+------------------------------------------- Reporter: paul@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: cmake --------------------------------+------------------------------------------- Comment(by css@…): Replying to [comment:3 jmr@…]:
So the proximate cause is: {{{ warning: in /usr/local/lib/libcurses.dylib, file is not of required architecture }}}
So a non-MacPorts library is causing a conflict with the installed version. Do you know why you have libncurses installed into /usr/local? If you remove that one, clean, then rebuild the port, does everything work? -- Ticket URL: <http://trac.macports.org/ticket/22934#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22934: cmake-2.8.0 build failure: ld: symbol(s) not found --------------------------------+------------------------------------------- Reporter: paul@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: cmake --------------------------------+------------------------------------------- Comment(by paul@…): I have no idea why it's there. I removed it and rebuilt: it works fine now. Sorry for the bother. :( -- Ticket URL: <http://trac.macports.org/ticket/22934#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22934: cmake-2.8.0 build failure: ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: paul@… | Owner: css@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: invalid | Keywords: Port: cmake | ---------------------------------+------------------------------------------ Changes (by toby@…): * status: assigned => closed * resolution: => invalid -- Ticket URL: <http://trac.macports.org/ticket/22934#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts