Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615670 - dev-vcs/git[subversion] fails to build - sha1_file.c:(.text+0x283): undefined reference to `SHA1_Init'
Summary: dev-vcs/git[subversion] fails to build - sha1_file.c:(.text+0x283): undefined...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-15 20:53 UTC by Tobias Sager
Modified: 2020-12-07 07:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Sager 2017-04-15 20:53:48 UTC
Building git-2.12.2 with USE=subversion fails with undefined reference in sha1_file.c. Building works fine with USE=-subversion

make[1]: Entering directory '/var/tmp/portage/dev-vcs/git-2.12.2/work/git-2.12.2'
make -C ../..  xdiff/lib.a
make[1]: Entering directory '/var/tmp/portage/dev-vcs/git-2.12.2/work/git-2.12.2'
make[1]: Leaving directory '/var/tmp/portage/dev-vcs/git-2.12.2/work/git-2.12.2'
make -C ../..  libgit.a
make[1]: Entering directory '/var/tmp/portage/dev-vcs/git-2.12.2/work/git-2.12.2'
make[1]: Leaving directory '/var/tmp/portage/dev-vcs/git-2.12.2/work/git-2.12.2'
make[1]: Leaving directory '/var/tmp/portage/dev-vcs/git-2.12.2/work/git-2.12.2'
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wall  -DHAVE_CLOCK_GETTIME -Wl,-O1 -Wl,--as-needed -o svn-fe svn-fe.o ../../vcs-svn/lib.a ../../libgit.a ../../xdiff/lib.a -lz -lssl /var/tmp/portage/dev-vcs/git-2.12.2/work/git-2.12.2/xdiff/lib.a -lpthread
../../libgit.a(sha1_file.o): In function `write_sha1_file_prepare':
sha1_file.c:(.text+0x283): undefined reference to `SHA1_Init'
sha1_file.c:(.text+0x291): undefined reference to `SHA1_Update'
sha1_file.c:(.text+0x29f): undefined reference to `SHA1_Update'
sha1_file.c:(.text+0x2aa): undefined reference to `SHA1_Final'
../../libgit.a(sha1_file.o): In function `check_stream_sha1':
sha1_file.c:(.text+0x433): undefined reference to `SHA1_Init'
sha1_file.c:(.text+0x447): undefined reference to `SHA1_Update'
sha1_file.c:(.text+0x4b6): undefined reference to `SHA1_Update'
sha1_file.c:(.text+0x4ff): undefined reference to `SHA1_Final'
../../libgit.a(sha1_file.o): In function `check_sha1_signature':
sha1_file.c:(.text+0x1b67): undefined reference to `SHA1_Init'
sha1_file.c:(.text+0x1b7f): undefined reference to `SHA1_Update'
sha1_file.c:(.text+0x1b98): undefined reference to `SHA1_Update'
sha1_file.c:(.text+0x1bd9): undefined reference to `SHA1_Final'
../../libgit.a(sha1_file.o): In function `write_loose_object':
sha1_file.c:(.text+0x5574): undefined reference to `SHA1_Init'
sha1_file.c:(.text+0x55b3): undefined reference to `SHA1_Update'
sha1_file.c:(.text+0x55ff): undefined reference to `SHA1_Update'
sha1_file.c:(.text+0x566a): undefined reference to `SHA1_Final'
../../libgit.a(bulk-checkin.o): In function `deflate_to_pack.constprop.1':
bulk-checkin.c:(.text+0x203): undefined reference to `SHA1_Init'
bulk-checkin.c:(.text+0x218): undefined reference to `SHA1_Update'
bulk-checkin.c:(.text+0x370): undefined reference to `SHA1_Final'
bulk-checkin.c:(.text+0x526): undefined reference to `SHA1_Update'
../../libgit.a(csum-file.o): In function `sha1flush':
csum-file.c:(.text+0x143): undefined reference to `SHA1_Update'
../../libgit.a(csum-file.o): In function `sha1close':
csum-file.c:(.text+0x197): undefined reference to `SHA1_Final'
../../libgit.a(csum-file.o): In function `sha1write':
csum-file.c:(.text+0x347): undefined reference to `SHA1_Update'
../../libgit.a(csum-file.o): In function `sha1fd_throughput':
csum-file.c:(.text+0x3e4): undefined reference to `SHA1_Init'
../../libgit.a(diff.o): In function `patch_id_consume':
diff.c:(.text+0x16e2): undefined reference to `SHA1_Update'
../../libgit.a(diff.o): In function `diff_get_patch_id.isra.39':
diff.c:(.text+0x6865): undefined reference to `SHA1_Init'
diff.c:(.text+0x6a88): undefined reference to `SHA1_Update'
diff.c:(.text+0x6b09): undefined reference to `SHA1_Update'
diff.c:(.text+0x6b22): undefined reference to `SHA1_Update'
diff.c:(.text+0x6c33): undefined reference to `SHA1_Final'
../../libgit.a(pack-check.o): In function `verify_pack_index':
pack-check.c:(.text+0x102): undefined reference to `SHA1_Init'
pack-check.c:(.text+0x112): undefined reference to `SHA1_Update'
pack-check.c:(.text+0x11f): undefined reference to `SHA1_Final'
../../libgit.a(pack-check.o): In function `verify_pack':
pack-check.c:(.text+0x204): undefined reference to `SHA1_Init'
pack-check.c:(.text+0x25d): undefined reference to `SHA1_Update'
pack-check.c:(.text+0x26f): undefined reference to `SHA1_Final'
pack-check.c:(.text+0x4d1): undefined reference to `SHA1_Update'
../../libgit.a(pack-write.o): In function `fixup_pack_header_footer':
pack-write.c:(.text+0x53b): undefined reference to `SHA1_Init'
pack-write.c:(.text+0x548): undefined reference to `SHA1_Init'
pack-write.c:(.text+0x5a2): undefined reference to `SHA1_Update'
pack-write.c:(.text+0x5c1): undefined reference to `SHA1_Update'
pack-write.c:(.text+0x62c): undefined reference to `SHA1_Update'
pack-write.c:(.text+0x64c): undefined reference to `SHA1_Update'
pack-write.c:(.text+0x663): undefined reference to `SHA1_Final'
pack-write.c:(.text+0x687): undefined reference to `SHA1_Init'
pack-write.c:(.text+0x6cc): undefined reference to `SHA1_Final'
pack-write.c:(.text+0x6e1): undefined reference to `SHA1_Final'
../../libgit.a(read-cache.o): In function `ce_write':
read-cache.c:(.text+0x2c4): undefined reference to `SHA1_Update'
../../libgit.a(read-cache.o): In function `do_write_index':
read-cache.c:(.text+0x88b): undefined reference to `SHA1_Init'
read-cache.c:(.text+0xd77): undefined reference to `SHA1_Final'
read-cache.c:(.text+0xf38): undefined reference to `SHA1_Init'
read-cache.c:(.text+0xfb7): undefined reference to `SHA1_Update'
../../libgit.a(read-cache.o): In function `do_read_index':
read-cache.c:(.text+0x2ddf): undefined reference to `SHA1_Init'
read-cache.c:(.text+0x2df8): undefined reference to `SHA1_Update'
read-cache.c:(.text+0x2e0a): undefined reference to `SHA1_Final'
../../libgit.a(rerere.o): In function `handle_path':
rerere.c:(.text+0xa17): undefined reference to `SHA1_Init'
rerere.c:(.text+0xa94): undefined reference to `SHA1_Final'
rerere.c:(.text+0xcb3): undefined reference to `SHA1_Update'
rerere.c:(.text+0xcd7): undefined reference to `SHA1_Update'
collect2: error: ld returned 1 exit status
make: *** [Makefile:77: svn-fe] Error 1
 * ERROR: dev-vcs/git-2.12.2::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-vcs/git-2.12.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-vcs/git-2.12.2::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-vcs:git-2.12.2:20170415-204938.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-vcs/git-2.12.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-vcs/git-2.12.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-vcs/git-2.12.2/work/git-2.12.2/contrib/svn-fe'
 * S: '/var/tmp/portage/dev-vcs/git-2.12.2/work/git-2.12.2'



# emerge --info '=dev-vcs/git-2.12.2::gentoo'
Portage 2.3.3 (python 2.7.12-final-0, default/linux/amd64/13.0, gcc-4.9.4, glibc-2.23-r3, 4.9.16-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.16-gentoo-x86_64-Common_KVM_processor-with-gentoo-2.3
KiB Mem:     1017840 total,    306252 free
KiB Swap:     786428 total,    610740 free
Timestamp of repository gentoo: Sat, 15 Apr 2017 00:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/www/localhost/cgi-bin /var/www/localhost/htdocs /var/www/toe.ch/htdocs"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/gentoo/ http://mirror.netcologne.de/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl acpi adns amd64 apache2 avi berkdb bindist bzip2 crypt cxx directfb fbcon gd gdbm geoip gif gpm imagemagick imap ipv6 java jpeg libwww maildir mbox mmx mpeg mysql ncurses nls ntpl ntplonly openmp pam pdflib pear perl php png python readline samba sasl server slang socks5 sse sse2 ssl tcpd tiff udev unicode usb vhosts xml xml2 zlib" ABI_X86="64" APACHE2_MODULES="actions alias auth_basic auth_digest authn_core authn_anon authn_alias authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unixd unique_id userdir usertrack vhost_alias cgi" CPU_FLAGS_X86="mmx mmxext sse sse2" CURL_SSL="openssl" ELIBC="glibc" KERNEL="linux" LINGUAS="de en" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" USERLAND="GNU"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-vcs/git-2.12.2::gentoo was built with the following:
USE="curl nls perl python threads webdav -blksha1 -cgi -cvs -doc -emacs -gpg -highlight -iconv -libressl -libsecret -mediawiki -mediawiki-experimental -pcre (-ppcsha1) -subversion -test -tk -xinetd" ABI_X86="64" LINGUAS="de -bg -ca -fr -is -it -ko -pt_PT -ru -sv -vi -zh_CN" PYTHON_TARGETS="python2_7"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2020-12-07 07:30:52 UTC
I believe this ticket is obsolete, if the problem persists, please reopen