By the way this problem doesn't occur if I add -DBUILD_SHARED_LIBS:BOOL=Off to my CMake configuration.
On 3/15/11 2:08 PM, "Williams, Norman K" <[email protected]> wrote: >I sure don't understand this problem. If I use CMake (on OS X 10.6 with >CMake 2.8.4) I get all sorts of mysterious undefined externals. > >When I look through the source, these appear to be used as function points >when they've never been defined. E.G. > >./src/H5Osdspace.c:#define H5O_SHARED_ENCODE H5O_sdspace_shared_encode >./src/H5Osdspace.c: H5O_sdspace_shared_encode, /* encode message */ > > >What gives? > >Linking C shared library ../bin/libhdf5.dylib >Undefined symbols: > "_H5O_sdspace_shared_encode", referenced from: > _H5O_MSG_SDSPACE in H5Osdspace.c.o > "_H5O_attr_shared_size", referenced from: > _H5O_MSG_ATTR in H5Oattr.c.o > "_H5O_fill_shared_encode", referenced from: > _H5O_MSG_FILL in H5Ofill.c.o > "_H5O_pline_shared_encode", referenced from: > _H5O_MSG_PLINE in H5Opline.c.o > "_H5O_dtype_shared_copy_file", referenced from: > _H5O_MSG_DTYPE in H5Odtype.c.o > "_H5O_attr_shared_post_copy_file", referenced from: > _H5O_MSG_ATTR in H5Oattr.c.o > "_H5O_fill_new_shared_decode", referenced from: > _H5O_MSG_FILL_NEW in H5Ofill.c.o > "_H5O_fill_new_shared_debug", referenced from: > _H5O_MSG_FILL_NEW in H5Ofill.c.o > "_H5O_attr_shared_decode", referenced from: > _H5O_MSG_ATTR in H5Oattr.c.o > "_H5O_fill_new_shared_delete", referenced from: > _H5O_MSG_FILL_NEW in H5Ofill.c.o > "_H5O_attr_shared_delete", referenced from: > _H5O_MSG_ATTR in H5Oattr.c.o > "_H5O_sdspace_shared_decode", referenced from: > _H5O_MSG_SDSPACE in H5Osdspace.c.o > "_H5O_fill_shared_decode", referenced from: > _H5O_MSG_FILL in H5Ofill.c.o > "_H5O_pline_shared_decode", referenced from: > _H5O_MSG_PLINE in H5Opline.c.o > "_H5O_pline_shared_link", referenced from: > _H5O_MSG_PLINE in H5Opline.c.o > "_H5O_sdspace_shared_delete", referenced from: > _H5O_MSG_SDSPACE in H5Osdspace.c.o > "_H5O_fill_new_shared_link", referenced from: > _H5O_MSG_FILL_NEW in H5Ofill.c.o > "_H5O_fill_shared_delete", referenced from: > _H5O_MSG_FILL in H5Ofill.c.o > "_H5O_attr_shared_debug", referenced from: > _H5O_MSG_ATTR in H5Oattr.c.o > "_H5O_sdspace_shared_link", referenced from: > _H5O_MSG_SDSPACE in H5Osdspace.c.o > "_H5O_pline_shared_delete", referenced from: > _H5O_MSG_PLINE in H5Opline.c.o > "_H5O_pline_shared_size", referenced from: > _H5O_MSG_PLINE in H5Opline.c.o > "_H5O_pline_shared_debug", referenced from: > _H5O_MSG_PLINE in H5Opline.c.o > "_H5O_dtype_shared_link", referenced from: > _H5O_MSG_DTYPE in H5Odtype.c.o > "_H5O_fill_new_shared_size", referenced from: > _H5O_MSG_FILL_NEW in H5Ofill.c.o > "_H5O_sdspace_shared_size", referenced from: > _H5O_MSG_SDSPACE in H5Osdspace.c.o > "_H5O_attr_shared_copy_file", referenced from: > _H5O_MSG_ATTR in H5Oattr.c.o > "_H5O_dtype_shared_size", referenced from: > _H5O_MSG_DTYPE in H5Odtype.c.o > "_H5O_pline_shared_copy_file", referenced from: > _H5O_MSG_PLINE in H5Opline.c.o > "_H5O_dtype_shared_encode", referenced from: > _H5O_MSG_DTYPE in H5Odtype.c.o > "_H5O_fill_shared_debug", referenced from: > _H5O_MSG_FILL in H5Ofill.c.o > "_H5O_sdspace_shared_copy_file", referenced from: > _H5O_MSG_SDSPACE in H5Osdspace.c.o > "_H5O_sdspace_shared_debug", referenced from: > _H5O_MSG_SDSPACE in H5Osdspace.c.o > "_H5O_fill_shared_link", referenced from: > _H5O_MSG_FILL in H5Ofill.c.o > "_H5O_fill_new_shared_copy_file", referenced from: > _H5O_MSG_FILL_NEW in H5Ofill.c.o > "_H5O_dtype_shared_decode", referenced from: > _H5O_MSG_DTYPE in H5Odtype.c.o > "_H5O_fill_shared_size", referenced from: > _H5O_MSG_FILL in H5Ofill.c.o > "_H5O_fill_new_shared_encode", referenced from: > _H5O_MSG_FILL_NEW in H5Ofill.c.o > "_H5O_fill_shared_copy_file", referenced from: > _H5O_MSG_FILL in H5Ofill.c.o > "_H5O_attr_shared_encode", referenced from: > _H5O_MSG_ATTR in H5Oattr.c.o > "_H5O_dtype_shared_delete", referenced from: > _H5O_MSG_DTYPE in H5Odtype.c.o > "_H5O_dtype_shared_debug", referenced from: > _H5O_MSG_DTYPE in H5Odtype.c.o > "_H5O_attr_shared_link", referenced from: > _H5O_MSG_ATTR in H5Oattr.c.o >ld: symbol(s) not found > > > > > >________________________________ >Notice: This UI Health Care e-mail (including attachments) is covered by >the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is >confidential and may be legally privileged. If you are not the intended >recipient, you are hereby notified that any retention, dissemination, >distribution, or copying of this communication is strictly prohibited. >Please reply to the sender that you have received the message in error, >then delete it. Thank you. >________________________________ > >_______________________________________________ >Hdf-forum is for HDF software users discussion. >[email protected] >http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org ________________________________ Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you. ________________________________ _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
