Opened 15 years ago

Closed 15 years ago

#22934 closed defect (invalid)

cmake-2.8.0 build failure: ld: symbol(s) not found

Reported by: paul-j-lucas (Paul J. Lucas) Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: cmake

Description

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)

Attachments (1)

cmake-build.txt (156.1 KB) - added by paul-j-lucas (Paul J. Lucas) 15 years ago.
Output of: port -d build cmake

Download all attachments as: .zip

Change History (7)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Cc: css@… removed
Owner: changed from macports-tickets@… to css@…

The start of the error is missing, run in debug mode.

comment:2 in reply to:  1 Changed 15 years ago by cssdev

Status: newassigned

Replying to 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.

Changed 15 years ago by paul-j-lucas (Paul J. Lucas)

Attachment: cmake-build.txt added

Output of: port -d build cmake

comment:3 Changed 15 years ago by jmroot (Joshua Root)

So the proximate cause is:

warning: in /usr/local/lib/libcurses.dylib, file is not of required architecture

comment:4 in reply to:  3 Changed 15 years ago by cssdev

Replying to 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?

comment:5 Changed 15 years ago by paul-j-lucas (Paul J. Lucas)

I have no idea why it's there. I removed it and rebuilt: it works fine now. Sorry for the bother. :(

comment:6 Changed 15 years ago by tobypeterson

Resolution: invalid
Status: assignedclosed
Note: See TracTickets for help on using tickets.