Modify

Opened 3 years ago

Closed 3 years ago

#19017 closed defect (moved_to_github)

git undefined reference to `curl_global_init'

Reported by: xuefer Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

iable -Wformat -Werror=format-security -I. -DHAVE_ALLOCA_H -DUSE_CURL_FOR_IMAP_SEND -DNO_NSEC -DNO_GETTEXT -DNO_IPV6 -DNO_ICONV -pthread -DHAVE_PATHS_H -DHAVE_STRINGS_H -DHAVE_DEV_TTY -DHAVE_CLOCK_GETTIM[0/3856]
_CLOCK_MONOTONIC -DSHA1_HEADER='<openssl/sha.h>'  -DNO_STRLCPY -DNO_MKSTEMPS -DSHELL_PATH='"/bin/sh"'  builtin/shell.c
ccache_cc -o builtin/upload-pack.o -c -MF builtin/.depend/upload-pack.o.d -MQ builtin/upload-pack.o -MMD -MP -I/usr/src/xuefer/openwrt/trunk/staging_dir/target-x86_64_eglibc-2.19/usr/include -I/usr/src/xuefer/op
enwrt/trunk/staging_dir/target-x86_64_eglibc-2.19/include -I/usr/src/xuefer/openwrt/trunk/staging_dir/toolchain-x86_64_gcc-4.9-linaro_eglibc-2.19/usr/include -I/usr/src/xuefer/openwrt/trunk/staging_dir/toolchain
-x86_64_gcc-4.9-linaro_eglibc-2.19/include -O2 -pipe -funit-at-a-time -march=atom -fexpensive-optimizations -finline-functions -funroll-loops -foptimize-register-move -fno-caller-saves -fhonour-copts -Wno-error=
unused-but-set-variable -Wformat -Werror=format-security -I. -DHAVE_ALLOCA_H -DUSE_CURL_FOR_IMAP_SEND -DNO_NSEC -DNO_GETTEXT -DNO_IPV6 -DNO_ICONV -pthread -DHAVE_PATHS_H -DHAVE_STRINGS_H -DHAVE_DEV_TTY -DHAVE_CL
OCK_GETTIME -DHAVE_CLOCK_MONOTONIC -DSHA1_HEADER='<openssl/sha.h>'  -DNO_STRLCPY -DNO_MKSTEMPS -DSHELL_PATH='"/bin/sh"'  builtin/upload-pack.c
ccache_cc -I/usr/src/xuefer/openwrt/trunk/staging_dir/target-x86_64_eglibc-2.19/usr/include -I/usr/src/xuefer/openwrt/trunk/staging_dir/target-x86_64_eglibc-2.19/include -I/usr/src/xuefer/openwrt/trunk/staging_d
ir/toolchain-x86_64_gcc-4.9-linaro_eglibc-2.19/usr/include -I/usr/src/xuefer/openwrt/trunk/staging_dir/toolchain-x86_64_gcc-4.9-linaro_eglibc-2.19/include -O2 -pipe -funit-at-a-time -march=atom -fexpensive-optim
izations -finline-functions -funroll-loops -foptimize-register-move -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wformat -Werror=format-security -I. -DHAVE_ALLOCA_H -DUSE_CURL_FOR_IMAP_SE
ND -DNO_NSEC -DNO_GETTEXT -DNO_IPV6 -DNO_ICONV -pthread -DHAVE_PATHS_H -DHAVE_STRINGS_H -DHAVE_DEV_TTY -DHAVE_CLOCK_GETTIME -DHAVE_CLOCK_MONOTONIC -DSHA1_HEADER='<openssl/sha.h>'  -DNO_STRLCPY -DNO_MKSTEMPS -DSH
ELL_PATH='"/bin/sh"' -o git -L/usr/src/xuefer/openwrt/trunk/staging_dir/target-x86_64_eglibc-2.19/usr/lib -L/usr/src/xuefer/openwrt/trunk/staging_dir/target-x86_64_eglibc-2.19/lib -L/usr/src/xuefer/openwrt/trunk
/staging_dir/toolchain-x86_64_gcc-4.9-linaro_eglibc-2.19/usr/lib -L/usr/src/xuefer/openwrt/trunk/staging_dir/toolchain-x86_64_gcc-4.9-linaro_eglibc-2.19/lib  git.o \
         builtin/add.o builtin/annotate.o builtin/apply.o builtin/archive.o builtin/bisect--helper.o builtin/blame.o builtin/branch.o builtin/bundle.o builtin/cat-file.o builtin/check-attr.o builtin/check-ignore
.o builtin/check-mailmap.o builtin/check-ref-format.o builtin/checkout-index.o builtin/checkout.o builtin/clean.o builtin/clone.o builtin/column.o builtin/commit-tree.o builtin/commit.o builtin/config.o builtin/
count-objects.o builtin/credential.o builtin/describe.o builtin/diff-files.o builtin/diff-index.o builtin/diff-tree.o builtin/diff.o builtin/fast-export.o builtin/fetch-pack.o builtin/fetch.o builtin/fmt-merge-m
sg.o builtin/for-each-ref.o builtin/fsck.o builtin/gc.o builtin/get-tar-commit-id.o builtin/grep.o builtin/hash-object.o builtin/help.o builtin/index-pack.o builtin/init-db.o builtin/interpret-trailers.o builtin
/log.o builtin/ls-files.o builtin/ls-remote.o builtin/ls-tree.o builtin/mailinfo.o builtin/mailsplit.o builtin/merge.o builtin/merge-base.o builtin/merge-file.o builtin/merge-index.o builtin/merge-ours.o builtin
/merge-recursive.o builtin/merge-tree.o builtin/mktag.o builtin/mktree.o builtin/mv.o builtin/name-rev.o builtin/notes.o builtin/pack-objects.o builtin/pack-redundant.o builtin/pack-refs.o builtin/patch-id.o bui
ltin/prune-packed.o builtin/prune.o builtin/push.o builtin/read-tree.o builtin/receive-pack.o builtin/reflog.o builtin/remote.o builtin/remote-ext.o builtin/remote-fd.o builtin/repack.o builtin/replace.o builtin
/rerere.o builtin/reset.o builtin/rev-list.o builtin/rev-parse.o builtin/revert.o builtin/rm.o builtin/send-pack.o builtin/shortlog.o builtin/show-branch.o builtin/show-ref.o builtin/stripspace.o builtin/symboli
c-ref.o builtin/tag.o builtin/unpack-file.o builtin/unpack-objects.o builtin/update-index.o builtin/update-ref.o builtin/update-server-info.o builtin/upload-archive.o builtin/var.o builtin/verify-commit.o builti
n/verify-pack.o builtin/verify-tag.o builtin/write-tree.o builtin/daemon.o builtin/fast-import.o builtin/http-backend.o builtin/imap-send.o builtin/shell.o builtin/upload-pack.o libgit.a xdiff/lib.a  -lz -lssl
-lcrypto -pthread -lrt
builtin/imap-send.o: In function `cmd_imap_send':
imap-send.c:(.text+0x3e59): undefined reference to `curl_global_init'
imap-send.c:(.text+0x3e66): undefined reference to `curl_easy_init'
imap-send.c:(.text+0x3e88): undefined reference to `curl_easy_setopt'
imap-send.c:(.text+0x3e9e): undefined reference to `curl_easy_setopt'
imap-send.c:(.text+0x3f40): undefined reference to `curl_easy_setopt'
imap-send.c:(.text+0x3f5f): undefined reference to `curl_easy_setopt'
imap-send.c:(.text+0x3fd2): undefined reference to `curl_easy_setopt'
builtin/imap-send.o:imap-send.c:(.text+0x3fff): more undefined references to `curl_easy_setopt' follow
builtin/imap-send.o: In function `cmd_imap_send':
imap-send.c:(.text+0x4019): undefined reference to `fread_buffer'
imap-send.c:(.text+0x4028): undefined reference to `curl_easy_setopt'
imap-send.c:(.text+0x403c): undefined reference to `curl_easy_setopt'
imap-send.c:(.text+0x4060): undefined reference to `curl_easy_setopt'
imap-send.c:(.text+0x4077): undefined reference to `curl_easy_setopt'
imap-send.c:(.text+0x4116): undefined reference to `curl_easy_cleanup'
imap-send.c:(.text+0x411b): undefined reference to `curl_global_cleanup'
imap-send.c:(.text+0x43ed): undefined reference to `curl_easy_setopt'
imap-send.c:(.text+0x43fa): undefined reference to `curl_easy_perform'
imap-send.c:(.text+0x446b): undefined reference to `curl_easy_strerror'
imap-send.c:(.text+0x449a): undefined reference to `curl_easy_setopt'
collect2: error: ld returned 1 exit status
Makefile:1642: recipe for target 'git' failed
make[3]: *** [git] Error 1

it seems IMAP_SEND_LDFLAGS (which should contains the -lcurl) is removed by the patch, never add to elsewhere

Attachments (1)

300-reapply-IMAP_SEND_deps.patch (403 bytes) - added by martin.groenholdt@… 3 years ago.
Patch for missing -lcurl when linking

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by martin.groenholdt@…

Patch for missing -lcurl when linking

comment:1 Changed 3 years ago by martin.groenholdt@…

Seems the 100-convert_builtin.patch makes imap-send, internal to git, but git is not compiled with the needed libraries. I have a patch, but it makes git depend on libcurl. There fore the NO_CURL="YesPlease" will have to be removed from the package Makefile, and +libcurl added to DEPENDS.

comment:2 Changed 3 years ago by nbd

  • Resolution set to moved_to_github
  • Status changed from new to closed

git is maintained here: https://github.com/openwrt/packages

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.