Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 532238 Details for
Bug 651770
media-sound/spotify-1.0.72 fails to start with missing symbol "CURL_OPENSSL_3" when net-misc/curl is built with ld.gold
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
preload file
spotify.preload.c (text/x-csrc), 1.02 KB, created by
Matthew Thode ( prometheanfire )
on 2018-05-19 17:28:15 UTC
(
hide
)
Description:
preload file
Filename:
MIME Type:
Creator:
Matthew Thode ( prometheanfire )
Created:
2018-05-19 17:28:15 UTC
Size:
1.02 KB
patch
obsolete
>// Save this file somewhere as spotify.preload.c > >// Then build the library: >// gcc -fPIC -shared -o ~/spotify.preload.so spotify.preload.c -ldl > >// When you execute spotify, you need to preload this library, which wraps the "setsockopt" function call with another function that gives spotify the results it expects: >// LD_PRELOAD=~/spotify.preload.so spotify > >// To make the desktop icon work, edit: /usr/share/applications/spotify.desktop >// Change Exec=... to: >// Exec=LD_PRELOAD=~/spotify.preload.so spotify %U > >#define _GNU_SOURCE >#include <dlfcn.h> >#include <sys/socket.h> >#include <netinet/in.h> > >static int (*real_setsockopt)(int socket, int level, int option_name, const void *option_value, socklen_t option_len); > >int setsockopt(int socket, int level, int option_name, const void *option_value, socklen_t option_len) { > real_setsockopt = dlsym(RTLD_NEXT,"setsockopt"); > int ret = real_setsockopt(socket,level,option_name,option_value,option_len); > if (level == SOL_IP && option_name == IP_MULTICAST_IF) { > return 0; > } > return ret; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 651770
: 532238