Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 767472 - =dev-libs/libevent-2.1.12::gentoo_prefix: Undefined symbols for architecture x86_64 (stale libtool)
Summary: =dev-libs/libevent-2.1.12::gentoo_prefix: Undefined symbols for architecture ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-27 17:21 UTC by Chris
Modified: 2021-01-27 18:11 UTC (History)
1 user (show)

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


Attachments
emerge --info output (info.txt,4.54 KB, text/plain)
2021-01-27 17:21 UTC, Chris
Details
Build Log (build.log,65.99 KB, application/octet-stream)
2021-01-27 17:22 UTC, Chris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2021-01-27 17:21:40 UTC
Created attachment 684888 [details]
emerge --info output

I'm running build issues into with libevent-2.1.21 with gentoo_prefix running on MacOS X Big Sur.  I added the missing object files to the link and the build went a little further but ran into more issues.  

Here is the relevant part of the build log.

libtool: link: x86_64-apple-darwin20-gcc -dynamiclib  -o .libs/libevent_pthreads-2.1.7.dylib  .libs/evthread_pthread.o    -march=native -O2 -Wl,-dead_strip_dylibs   -install_name  /Users/ccambly/Gentoo/usr/lib/libevent_pthreads-2.1.7.dylib -compatibility_version 8 -current_version 8.1 -Wl,-single_module

Undefined symbols for architecture x86_64:
  "_evthread_set_condition_callbacks", referenced from:
      _evthread_use_pthreads in evthread_pthread.o
  "_evthread_set_id_callback", referenced from:
      _evthread_use_pthreads in evthread_pthread.o
  "_evthread_set_lock_callbacks", referenced from:
      _evthread_use_pthreads in evthread_pthread.o
ld: symbol(s) not found for architecture x86_64


Additional Info: 
>> emerge -pqv '=dev-libs/libevent-2.1.12::gentoo_prefix'
[ebuild  N    ] dev-libs/libevent-2.1.12  USE="clock-gettime ssl threads -debug -libressl -malloc-replacement -static-libs -test -verbose-debug"
Comment 1 Chris 2021-01-27 17:22:14 UTC
Created attachment 684891 [details]
Build Log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-27 17:41:50 UTC
How about USE=-threads?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-27 17:51:09 UTC
oh, duh, nevermind. Reproduced. It has an outdated bundled copy of libtool stuff. Fix on the way.
Comment 4 Larry the Git Cow gentoo-dev 2021-01-27 17:52:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d6568fbe59d38a855c43e1d386416fed9052f12

commit 0d6568fbe59d38a855c43e1d386416fed9052f12
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-01-27 17:52:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-01-27 17:52:10 +0000

    dev-libs/libevent: elibtoolize to refresh Darwin logic
    
    Closes: https://bugs.gentoo.org/767472
    Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libevent/libevent-2.1.12.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Comment 5 Chris 2021-01-27 18:11:45 UTC
Thanks!