Opened 11 years ago

Closed 11 years ago

#42579 closed defect (fixed)

libgit2: build fails on SL while trying to build dependent libgit2-glib

Reported by: dbevans (David B. Evans) Owned by: juanrgar (Juan R. García Blanco)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: haspatch Cc: cooljeanius (Eric Gallager)
Port: libgit2

Description

libgit2 build fails as follows:

/usr/bin/gcc-4.2  -D_GNU_SOURCE -Wall -Wextra -Wno-missing-field-initializers -Wstrict-aliasing=2 -Wstrict-prototypes -pipe -Os -I/opt/local/include -arch x86_64  -fvisibility=hidden -fPIC -Wno-deprecated-declarations -DNDEBUG -arch x86_64 -Wl,-search_paths_first -Wl,-headerpad_max_install_names  -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 CMakeFiles/libgit2_clar.dir/src/attr.c.o CMakeFiles/libgit2_clar.dir/src/attr_file.c.o CMakeFiles/libgit2_clar.dir/src/blame.c.o CMakeFiles/libgit2_clar.dir/src/blame_git.c.o CMakeFiles/libgit2_clar.dir/src/blob.c.o CMakeFiles/libgit2_clar.dir/src/branch.c.o CMakeFiles/libgit2_clar.dir/src/buf_text.c.o CMakeFiles/libgit2_clar.dir/src/buffer.c.o CMakeFiles/libgit2_clar.dir/src/cache.c.o CMakeFiles/libgit2_clar.dir/src/checkout.c.o CMakeFiles/libgit2_clar.dir/src/clone.c.o CMakeFiles/libgit2_clar.dir/src/commit.c.o CMakeFiles/libgit2_clar.dir/src/commit_list.c.o CMakeFiles/libgit2_clar.dir/src/compress.c.o CMakeFiles/libgit2_clar.dir/src/config.c.o CMakeFiles/libgit2_clar.dir/src/config_cache.c.o CMakeFiles/libgit2_clar.dir/src/config_file.c.o CMakeFiles/libgit2_clar.dir/src/crlf.c.o CMakeFiles/libgit2_clar.dir/src/date.c.o CMakeFiles/libgit2_clar.dir/src/delta-apply.c.o CMakeFiles/libgit2_clar.dir/src/delta.c.o CMakeFiles/libgit2_clar.dir/src/diff.c.o CMakeFiles/libgit2_clar.dir/src/diff_driver.c.o CMakeFiles/libgit2_clar.dir/src/diff_file.c.o CMakeFiles/libgit2_clar.dir/src/diff_patch.c.o CMakeFiles/libgit2_clar.dir/src/diff_print.c.o CMakeFiles/libgit2_clar.dir/src/diff_tform.c.o CMakeFiles/libgit2_clar.dir/src/diff_xdiff.c.o CMakeFiles/libgit2_clar.dir/src/errors.c.o CMakeFiles/libgit2_clar.dir/src/fetch.c.o CMakeFiles/libgit2_clar.dir/src/fetchhead.c.o CMakeFiles/libgit2_clar.dir/src/filebuf.c.o CMakeFiles/libgit2_clar.dir/src/fileops.c.o CMakeFiles/libgit2_clar.dir/src/filter.c.o CMakeFiles/libgit2_clar.dir/src/fnmatch.c.o CMakeFiles/libgit2_clar.dir/src/global.c.o CMakeFiles/libgit2_clar.dir/src/graph.c.o CMakeFiles/libgit2_clar.dir/src/hash.c.o CMakeFiles/libgit2_clar.dir/src/hashsig.c.o CMakeFiles/libgit2_clar.dir/src/ident.c.o CMakeFiles/libgit2_clar.dir/src/ignore.c.o CMakeFiles/libgit2_clar.dir/src/index.c.o CMakeFiles/libgit2_clar.dir/src/indexer.c.o CMakeFiles/libgit2_clar.dir/src/iterator.c.o CMakeFiles/libgit2_clar.dir/src/merge.c.o CMakeFiles/libgit2_clar.dir/src/merge_file.c.o CMakeFiles/libgit2_clar.dir/src/message.c.o CMakeFiles/libgit2_clar.dir/src/mwindow.c.o CMakeFiles/libgit2_clar.dir/src/netops.c.o CMakeFiles/libgit2_clar.dir/src/notes.c.o CMakeFiles/libgit2_clar.dir/src/object.c.o CMakeFiles/libgit2_clar.dir/src/object_api.c.o CMakeFiles/libgit2_clar.dir/src/odb.c.o CMakeFiles/libgit2_clar.dir/src/odb_loose.c.o CMakeFiles/libgit2_clar.dir/src/odb_pack.c.o CMakeFiles/libgit2_clar.dir/src/oid.c.o CMakeFiles/libgit2_clar.dir/src/pack-objects.c.o CMakeFiles/libgit2_clar.dir/src/pack.c.o CMakeFiles/libgit2_clar.dir/src/path.c.o CMakeFiles/libgit2_clar.dir/src/pathspec.c.o CMakeFiles/libgit2_clar.dir/src/pool.c.o CMakeFiles/libgit2_clar.dir/src/posix.c.o CMakeFiles/libgit2_clar.dir/src/pqueue.c.o CMakeFiles/libgit2_clar.dir/src/push.c.o CMakeFiles/libgit2_clar.dir/src/refdb.c.o CMakeFiles/libgit2_clar.dir/src/refdb_fs.c.o CMakeFiles/libgit2_clar.dir/src/reflog.c.o CMakeFiles/libgit2_clar.dir/src/refs.c.o CMakeFiles/libgit2_clar.dir/src/refspec.c.o CMakeFiles/libgit2_clar.dir/src/remote.c.o CMakeFiles/libgit2_clar.dir/src/repository.c.o CMakeFiles/libgit2_clar.dir/src/reset.c.o CMakeFiles/libgit2_clar.dir/src/revparse.c.o CMakeFiles/libgit2_clar.dir/src/revwalk.c.o CMakeFiles/libgit2_clar.dir/src/sha1_lookup.c.o CMakeFiles/libgit2_clar.dir/src/signature.c.o CMakeFiles/libgit2_clar.dir/src/sortedcache.c.o CMakeFiles/libgit2_clar.dir/src/stash.c.o CMakeFiles/libgit2_clar.dir/src/status.c.o CMakeFiles/libgit2_clar.dir/src/strmap.c.o CMakeFiles/libgit2_clar.dir/src/submodule.c.o CMakeFiles/libgit2_clar.dir/src/tag.c.o CMakeFiles/libgit2_clar.dir/src/thread-utils.c.o CMakeFiles/libgit2_clar.dir/src/trace.c.o CMakeFiles/libgit2_clar.dir/src/transport.c.o CMakeFiles/libgit2_clar.dir/src/tree-cache.c.o CMakeFiles/libgit2_clar.dir/src/tree.c.o CMakeFiles/libgit2_clar.dir/src/tsort.c.o CMakeFiles/libgit2_clar.dir/src/util.c.o CMakeFiles/libgit2_clar.dir/src/vector.c.o CMakeFiles/libgit2_clar.dir/src/transports/cred.c.o CMakeFiles/libgit2_clar.dir/src/transports/cred_helpers.c.o CMakeFiles/libgit2_clar.dir/src/transports/git.c.o CMakeFiles/libgit2_clar.dir/src/transports/http.c.o CMakeFiles/libgit2_clar.dir/src/transports/local.c.o CMakeFiles/libgit2_clar.dir/src/transports/smart.c.o CMakeFiles/libgit2_clar.dir/src/transports/smart_pkt.c.o CMakeFiles/libgit2_clar.dir/src/transports/smart_protocol.c.o CMakeFiles/libgit2_clar.dir/src/transports/ssh.c.o CMakeFiles/libgit2_clar.dir/src/transports/winhttp.c.o CMakeFiles/libgit2_clar.dir/src/xdiff/xdiffi.c.o CMakeFiles/libgit2_clar.dir/src/xdiff/xemit.c.o CMakeFiles/libgit2_clar.dir/src/xdiff/xhistogram.c.o CMakeFiles/libgit2_clar.dir/src/xdiff/xmerge.c.o CMakeFiles/libgit2_clar.dir/src/xdiff/xpatience.c.o CMakeFiles/libgit2_clar.dir/src/xdiff/xprepare.c.o CMakeFiles/libgit2_clar.dir/src/xdiff/xutils.c.o CMakeFiles/libgit2_clar.dir/src/unix/map.c.o CMakeFiles/libgit2_clar.dir/src/unix/realpath.c.o CMakeFiles/libgit2_clar.dir/tests/main.c.o CMakeFiles/libgit2_clar.dir/tests/clar_libgit2.c.o CMakeFiles/libgit2_clar.dir/tests/clar.c.o CMakeFiles/libgit2_clar.dir/tests/attr/file.c.o CMakeFiles/libgit2_clar.dir/tests/attr/flags.c.o CMakeFiles/libgit2_clar.dir/tests/attr/ignore.c.o CMakeFiles/libgit2_clar.dir/tests/attr/lookup.c.o CMakeFiles/libgit2_clar.dir/tests/attr/repo.c.o CMakeFiles/libgit2_clar.dir/tests/blame/blame_helpers.c.o CMakeFiles/libgit2_clar.dir/tests/blame/buffer.c.o CMakeFiles/libgit2_clar.dir/tests/blame/getters.c.o CMakeFiles/libgit2_clar.dir/tests/blame/harder.c.o CMakeFiles/libgit2_clar.dir/tests/blame/simple.c.o CMakeFiles/libgit2_clar.dir/tests/buf/basic.c.o CMakeFiles/libgit2_clar.dir/tests/buf/splice.c.o CMakeFiles/libgit2_clar.dir/tests/checkout/binaryunicode.c.o CMakeFiles/libgit2_clar.dir/tests/checkout/checkout_helpers.c.o CMakeFiles/libgit2_clar.dir/tests/checkout/conflict.c.o CMakeFiles/libgit2_clar.dir/tests/checkout/crlf.c.o CMakeFiles/libgit2_clar.dir/tests/checkout/head.c.o CMakeFiles/libgit2_clar.dir/tests/checkout/index.c.o CMakeFiles/libgit2_clar.dir/tests/checkout/tree.c.o CMakeFiles/libgit2_clar.dir/tests/checkout/typechange.c.o CMakeFiles/libgit2_clar.dir/tests/clone/empty.c.o CMakeFiles/libgit2_clar.dir/tests/clone/nonetwork.c.o CMakeFiles/libgit2_clar.dir/tests/commit/commit.c.o CMakeFiles/libgit2_clar.dir/tests/commit/parent.c.o CMakeFiles/libgit2_clar.dir/tests/commit/parse.c.o CMakeFiles/libgit2_clar.dir/tests/commit/signature.c.o CMakeFiles/libgit2_clar.dir/tests/commit/write.c.o CMakeFiles/libgit2_clar.dir/tests/config/add.c.o CMakeFiles/libgit2_clar.dir/tests/config/backend.c.o CMakeFiles/libgit2_clar.dir/tests/config/config_helpers.c.o CMakeFiles/libgit2_clar.dir/tests/config/configlevel.c.o CMakeFiles/libgit2_clar.dir/tests/config/global.c.o CMakeFiles/libgit2_clar.dir/tests/config/include.c.o CMakeFiles/libgit2_clar.dir/tests/config/multivar.c.o CMakeFiles/libgit2_clar.dir/tests/config/new.c.o CMakeFiles/libgit2_clar.dir/tests/config/read.c.o CMakeFiles/libgit2_clar.dir/tests/config/refresh.c.o CMakeFiles/libgit2_clar.dir/tests/config/stress.c.o CMakeFiles/libgit2_clar.dir/tests/config/validkeyname.c.o CMakeFiles/libgit2_clar.dir/tests/config/write.c.o CMakeFiles/libgit2_clar.dir/tests/core/bitvec.c.o CMakeFiles/libgit2_clar.dir/tests/core/buffer.c.o CMakeFiles/libgit2_clar.dir/tests/core/caps.c.o CMakeFiles/libgit2_clar.dir/tests/core/copy.c.o CMakeFiles/libgit2_clar.dir/tests/core/dirent.c.o CMakeFiles/libgit2_clar.dir/tests/core/env.c.o CMakeFiles/libgit2_clar.dir/tests/core/errors.c.o CMakeFiles/libgit2_clar.dir/tests/core/filebuf.c.o CMakeFiles/libgit2_clar.dir/tests/core/hex.c.o CMakeFiles/libgit2_clar.dir/tests/core/iconv.c.o CMakeFiles/libgit2_clar.dir/tests/core/mkdir.c.o CMakeFiles/libgit2_clar.dir/tests/core/oid.c.o CMakeFiles/libgit2_clar.dir/tests/core/oidmap.c.o CMakeFiles/libgit2_clar.dir/tests/core/opts.c.o CMakeFiles/libgit2_clar.dir/tests/core/path.c.o CMakeFiles/libgit2_clar.dir/tests/core/pool.c.o CMakeFiles/libgit2_clar.dir/tests/core/posix.c.o CMakeFiles/libgit2_clar.dir/tests/core/rmdir.c.o CMakeFiles/libgit2_clar.dir/tests/core/sortedcache.c.o CMakeFiles/libgit2_clar.dir/tests/core/stat.c.o CMakeFiles/libgit2_clar.dir/tests/core/string.c.o CMakeFiles/libgit2_clar.dir/tests/core/strmap.c.o CMakeFiles/libgit2_clar.dir/tests/core/strtol.c.o CMakeFiles/libgit2_clar.dir/tests/core/vector.c.o CMakeFiles/libgit2_clar.dir/tests/date/date.c.o CMakeFiles/libgit2_clar.dir/tests/diff/blob.c.o CMakeFiles/libgit2_clar.dir/tests/diff/diff_helpers.c.o CMakeFiles/libgit2_clar.dir/tests/diff/diffiter.c.o CMakeFiles/libgit2_clar.dir/tests/diff/drivers.c.o CMakeFiles/libgit2_clar.dir/tests/diff/index.c.o CMakeFiles/libgit2_clar.dir/tests/diff/iterator.c.o CMakeFiles/libgit2_clar.dir/tests/diff/notify.c.o CMakeFiles/libgit2_clar.dir/tests/diff/patch.c.o CMakeFiles/libgit2_clar.dir/tests/diff/pathspec.c.o CMakeFiles/libgit2_clar.dir/tests/diff/rename.c.o CMakeFiles/libgit2_clar.dir/tests/diff/submodules.c.o CMakeFiles/libgit2_clar.dir/tests/diff/tree.c.o CMakeFiles/libgit2_clar.dir/tests/diff/workdir.c.o CMakeFiles/libgit2_clar.dir/tests/fetchhead/nonetwork.c.o CMakeFiles/libgit2_clar.dir/tests/filter/blob.c.o CMakeFiles/libgit2_clar.dir/tests/filter/crlf.c.o CMakeFiles/libgit2_clar.dir/tests/filter/custom.c.o CMakeFiles/libgit2_clar.dir/tests/filter/ident.c.o CMakeFiles/libgit2_clar.dir/tests/index/addall.c.o CMakeFiles/libgit2_clar.dir/tests/index/conflicts.c.o CMakeFiles/libgit2_clar.dir/tests/index/filemodes.c.o CMakeFiles/libgit2_clar.dir/tests/index/inmemory.c.o CMakeFiles/libgit2_clar.dir/tests/index/names.c.o CMakeFiles/libgit2_clar.dir/tests/index/read_tree.c.o CMakeFiles/libgit2_clar.dir/tests/index/rename.c.o CMakeFiles/libgit2_clar.dir/tests/index/reuc.c.o CMakeFiles/libgit2_clar.dir/tests/index/stage.c.o CMakeFiles/libgit2_clar.dir/tests/index/tests.c.o CMakeFiles/libgit2_clar.dir/tests/merge/merge_helpers.c.o CMakeFiles/libgit2_clar.dir/tests/merge/trees/automerge.c.o CMakeFiles/libgit2_clar.dir/tests/merge/trees/modeconflict.c.o CMakeFiles/libgit2_clar.dir/tests/merge/trees/renames.c.o CMakeFiles/libgit2_clar.dir/tests/merge/trees/treediff.c.o CMakeFiles/libgit2_clar.dir/tests/merge/trees/trivial.c.o CMakeFiles/libgit2_clar.dir/tests/merge/workdir/fastforward.c.o CMakeFiles/libgit2_clar.dir/tests/merge/workdir/renames.c.o CMakeFiles/libgit2_clar.dir/tests/merge/workdir/setup.c.o CMakeFiles/libgit2_clar.dir/tests/merge/workdir/simple.c.o CMakeFiles/libgit2_clar.dir/tests/merge/workdir/trivial.c.o CMakeFiles/libgit2_clar.dir/tests/network/cred.c.o CMakeFiles/libgit2_clar.dir/tests/network/fetchlocal.c.o CMakeFiles/libgit2_clar.dir/tests/network/refspecs.c.o CMakeFiles/libgit2_clar.dir/tests/network/remote/createthenload.c.o CMakeFiles/libgit2_clar.dir/tests/network/remote/isvalidname.c.o CMakeFiles/libgit2_clar.dir/tests/network/remote/local.c.o CMakeFiles/libgit2_clar.dir/tests/network/remote/remotes.c.o CMakeFiles/libgit2_clar.dir/tests/network/remote/rename.c.o CMakeFiles/libgit2_clar.dir/tests/network/urlparse.c.o CMakeFiles/libgit2_clar.dir/tests/notes/notes.c.o CMakeFiles/libgit2_clar.dir/tests/notes/notesref.c.o CMakeFiles/libgit2_clar.dir/tests/object/blob/filter.c.o CMakeFiles/libgit2_clar.dir/tests/object/blob/fromchunks.c.o CMakeFiles/libgit2_clar.dir/tests/object/blob/write.c.o CMakeFiles/libgit2_clar.dir/tests/object/cache.c.o CMakeFiles/libgit2_clar.dir/tests/object/commit/commitstagedfile.c.o CMakeFiles/libgit2_clar.dir/tests/object/lookup.c.o CMakeFiles/libgit2_clar.dir/tests/object/lookupbypath.c.o CMakeFiles/libgit2_clar.dir/tests/object/message.c.o CMakeFiles/libgit2_clar.dir/tests/object/peel.c.o CMakeFiles/libgit2_clar.dir/tests/object/raw/chars.c.o CMakeFiles/libgit2_clar.dir/tests/object/raw/compare.c.o CMakeFiles/libgit2_clar.dir/tests/object/raw/convert.c.o CMakeFiles/libgit2_clar.dir/tests/object/raw/fromstr.c.o CMakeFiles/libgit2_clar.dir/tests/object/raw/hash.c.o CMakeFiles/libgit2_clar.dir/tests/object/raw/short.c.o CMakeFiles/libgit2_clar.dir/tests/object/raw/size.c.o CMakeFiles/libgit2_clar.dir/tests/object/raw/type2string.c.o CMakeFiles/libgit2_clar.dir/tests/object/raw/write.c.o CMakeFiles/libgit2_clar.dir/tests/object/tag/list.c.o CMakeFiles/libgit2_clar.dir/tests/object/tag/peel.c.o CMakeFiles/libgit2_clar.dir/tests/object/tag/read.c.o CMakeFiles/libgit2_clar.dir/tests/object/tag/write.c.o CMakeFiles/libgit2_clar.dir/tests/object/tree/attributes.c.o CMakeFiles/libgit2_clar.dir/tests/object/tree/duplicateentries.c.o CMakeFiles/libgit2_clar.dir/tests/object/tree/frompath.c.o CMakeFiles/libgit2_clar.dir/tests/object/tree/read.c.o CMakeFiles/libgit2_clar.dir/tests/object/tree/walk.c.o CMakeFiles/libgit2_clar.dir/tests/object/tree/write.c.o CMakeFiles/libgit2_clar.dir/tests/odb/alternates.c.o CMakeFiles/libgit2_clar.dir/tests/odb/backend/nonrefreshing.c.o CMakeFiles/libgit2_clar.dir/tests/odb/foreach.c.o CMakeFiles/libgit2_clar.dir/tests/odb/loose.c.o CMakeFiles/libgit2_clar.dir/tests/odb/mixed.c.o CMakeFiles/libgit2_clar.dir/tests/odb/packed.c.o CMakeFiles/libgit2_clar.dir/tests/odb/packed_one.c.o CMakeFiles/libgit2_clar.dir/tests/odb/sorting.c.o CMakeFiles/libgit2_clar.dir/tests/odb/streamwrite.c.o CMakeFiles/libgit2_clar.dir/tests/online/clone.c.o CMakeFiles/libgit2_clar.dir/tests/online/fetch.c.o CMakeFiles/libgit2_clar.dir/tests/online/fetchhead.c.o CMakeFiles/libgit2_clar.dir/tests/online/push.c.o CMakeFiles/libgit2_clar.dir/tests/online/push_util.c.o CMakeFiles/libgit2_clar.dir/tests/pack/indexer.c.o CMakeFiles/libgit2_clar.dir/tests/pack/packbuilder.c.o CMakeFiles/libgit2_clar.dir/tests/refs/branches/create.c.o CMakeFiles/libgit2_clar.dir/tests/refs/branches/delete.c.o CMakeFiles/libgit2_clar.dir/tests/refs/branches/ishead.c.o CMakeFiles/libgit2_clar.dir/tests/refs/branches/iterator.c.o CMakeFiles/libgit2_clar.dir/tests/refs/branches/lookup.c.o CMakeFiles/libgit2_clar.dir/tests/refs/branches/move.c.o CMakeFiles/libgit2_clar.dir/tests/refs/branches/name.c.o CMakeFiles/libgit2_clar.dir/tests/refs/branches/remote.c.o CMakeFiles/libgit2_clar.dir/tests/refs/branches/upstream.c.o CMakeFiles/libgit2_clar.dir/tests/refs/branches/upstreamname.c.o CMakeFiles/libgit2_clar.dir/tests/refs/crashes.c.o CMakeFiles/libgit2_clar.dir/tests/refs/create.c.o CMakeFiles/libgit2_clar.dir/tests/refs/delete.c.o CMakeFiles/libgit2_clar.dir/tests/refs/foreachglob.c.o CMakeFiles/libgit2_clar.dir/tests/refs/isvalidname.c.o CMakeFiles/libgit2_clar.dir/tests/refs/iterator.c.o CMakeFiles/libgit2_clar.dir/tests/refs/list.c.o CMakeFiles/libgit2_clar.dir/tests/refs/listall.c.o CMakeFiles/libgit2_clar.dir/tests/refs/lookup.c.o CMakeFiles/libgit2_clar.dir/tests/refs/normalize.c.o CMakeFiles/libgit2_clar.dir/tests/refs/overwrite.c.o CMakeFiles/libgit2_clar.dir/tests/refs/pack.c.o CMakeFiles/libgit2_clar.dir/tests/refs/peel.c.o CMakeFiles/libgit2_clar.dir/tests/refs/read.c.o CMakeFiles/libgit2_clar.dir/tests/refs/ref_helpers.c.o CMakeFiles/libgit2_clar.dir/tests/refs/reflog/drop.c.o CMakeFiles/libgit2_clar.dir/tests/refs/reflog/reflog.c.o CMakeFiles/libgit2_clar.dir/tests/refs/rename.c.o CMakeFiles/libgit2_clar.dir/tests/refs/revparse.c.o CMakeFiles/libgit2_clar.dir/tests/refs/setter.c.o CMakeFiles/libgit2_clar.dir/tests/refs/shorthand.c.o CMakeFiles/libgit2_clar.dir/tests/refs/unicode.c.o CMakeFiles/libgit2_clar.dir/tests/refs/update.c.o CMakeFiles/libgit2_clar.dir/tests/repo/config.c.o CMakeFiles/libgit2_clar.dir/tests/repo/discover.c.o CMakeFiles/libgit2_clar.dir/tests/repo/getters.c.o CMakeFiles/libgit2_clar.dir/tests/repo/hashfile.c.o CMakeFiles/libgit2_clar.dir/tests/repo/head.c.o CMakeFiles/libgit2_clar.dir/tests/repo/headtree.c.o CMakeFiles/libgit2_clar.dir/tests/repo/init.c.o CMakeFiles/libgit2_clar.dir/tests/repo/iterator.c.o CMakeFiles/libgit2_clar.dir/tests/repo/message.c.o CMakeFiles/libgit2_clar.dir/tests/repo/open.c.o CMakeFiles/libgit2_clar.dir/tests/repo/pathspec.c.o CMakeFiles/libgit2_clar.dir/tests/repo/repo_helpers.c.o CMakeFiles/libgit2_clar.dir/tests/repo/setters.c.o CMakeFiles/libgit2_clar.dir/tests/repo/shallow.c.o CMakeFiles/libgit2_clar.dir/tests/repo/state.c.o CMakeFiles/libgit2_clar.dir/tests/reset/default.c.o CMakeFiles/libgit2_clar.dir/tests/reset/hard.c.o CMakeFiles/libgit2_clar.dir/tests/reset/mixed.c.o CMakeFiles/libgit2_clar.dir/tests/reset/reset_helpers.c.o CMakeFiles/libgit2_clar.dir/tests/reset/soft.c.o CMakeFiles/libgit2_clar.dir/tests/revwalk/basic.c.o CMakeFiles/libgit2_clar.dir/tests/revwalk/mergebase.c.o CMakeFiles/libgit2_clar.dir/tests/revwalk/signatureparsing.c.o CMakeFiles/libgit2_clar.dir/tests/revwalk/simplify.c.o CMakeFiles/libgit2_clar.dir/tests/stash/drop.c.o CMakeFiles/libgit2_clar.dir/tests/stash/foreach.c.o CMakeFiles/libgit2_clar.dir/tests/stash/save.c.o CMakeFiles/libgit2_clar.dir/tests/stash/stash_helpers.c.o CMakeFiles/libgit2_clar.dir/tests/stash/submodules.c.o CMakeFiles/libgit2_clar.dir/tests/status/ignore.c.o CMakeFiles/libgit2_clar.dir/tests/status/renames.c.o CMakeFiles/libgit2_clar.dir/tests/status/single.c.o CMakeFiles/libgit2_clar.dir/tests/status/status_helpers.c.o CMakeFiles/libgit2_clar.dir/tests/status/submodules.c.o CMakeFiles/libgit2_clar.dir/tests/status/worktree.c.o CMakeFiles/libgit2_clar.dir/tests/status/worktree_init.c.o CMakeFiles/libgit2_clar.dir/tests/stress/diff.c.o CMakeFiles/libgit2_clar.dir/tests/submodule/lookup.c.o CMakeFiles/libgit2_clar.dir/tests/submodule/modify.c.o CMakeFiles/libgit2_clar.dir/tests/submodule/status.c.o CMakeFiles/libgit2_clar.dir/tests/submodule/submodule_helpers.c.o CMakeFiles/libgit2_clar.dir/tests/threads/basic.c.o CMakeFiles/libgit2_clar.dir/tests/threads/refdb.c.o CMakeFiles/libgit2_clar.dir/tests/trace/trace.c.o CMakeFiles/libgit2_clar.dir/deps/http-parser/http_parser.c.o  -o libgit2_clar  /opt/local/lib/libz.dylib /opt/local/lib/libssl.dylib /opt/local/lib/libcrypto.dylib /opt/local/lib/libssh2.dylib -liconv
Undefined symbols:
  "_strnlen", referenced from:
      _git_index_read in index.c.o
      _git_index_read in index.c.o
      _git_index_read in index.c.o
      _git_index_read in index.c.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [libgit2_clar] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_mports_dports_devel_libgit2/libgit2/work/build'
make[1]: *** [CMakeFiles/libgit2_clar.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_mports_dports_devel_libgit2/libgit2/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_mports_dports_devel_libgit2/libgit2/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_mports_dports_devel_libgit2/libgit2/work/build" && /usr/bin/make -j8 -w all
Exit code: 2
Error: org.macports.build for port libgit2 returned: command execution failed

Indeed, strnlen is not provided by Mac OS X 10.6 and earlier. One solution that is used elsewhere (but I can't find it right away) is to provide a substitute function for platforms that don't have it.

This blocks the build of libgit2-glib on this platform.

Full build log attached.

Attachments (3)

buildports-snowleopard-x86_64.log (4.2 MB) - added by dbevans (David B. Evans) 11 years ago.
Snow Leopard buildbot log showing build failure
patch-daemon-gdm-session-worker.c.diff (960 bytes) - added by dbevans (David B. Evans) 11 years ago.
Patch from gdm showing replacement of strnlen() on 10.6 and earlier
libgit2-strnlen.tgz (689 bytes) - added by juanrgar (Juan R. García Blanco) 11 years ago.

Change History (7)

Changed 11 years ago by dbevans (David B. Evans)

Snow Leopard buildbot log showing build failure

comment:1 Changed 11 years ago by dbevans (David B. Evans)

Found the example. See the attached patch from port gdm that addresses the same problem. Of course, it needs to be adapted to the current situation.

Changed 11 years ago by dbevans (David B. Evans)

Patch from gdm showing replacement of strnlen() on 10.6 and earlier

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Changed 11 years ago by juanrgar (Juan R. García Blanco)

Attachment: libgit2-strnlen.tgz added

comment:3 Changed 11 years ago by juanrgar (Juan R. García Blanco)

I've patched libgit2 as pointed out by devans. I'm not running SL, so I've not tested this patch.

comment:4 Changed 11 years ago by dbevans (David B. Evans)

Keywords: haspatch added; libgit2-glib removed
Resolution: fixed
Status: newclosed

Committed in r117341. I don't have a SL machine to test either but it built without error on SL buildbot as did it's dependent libgit2-glib.

Note: See TracTickets for help on using tickets.