abba23 / spotify-adblock-linux

Spotify adblocker for Linux
GNU General Public License v3.0
721 stars 68 forks source link

Object cannot be preloaded #12

Closed Syzygianinfern0 closed 5 years ago

Syzygianinfern0 commented 5 years ago
syzygianinfern0@pop-os:~/Documents/spotify-adblock-linux$ LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify
ERROR: ld.so: object '/usr/local/lib/spotify-adblock.so' from LD_PRELOAD cannot be preloaded (invalid ELF header): ignored.
ERROR: ld.so: object '/usr/local/lib/spotify-adblock.so' from LD_PRELOAD cannot be preloaded (invalid ELF header): ignored.
ERROR: ld.so: object '/usr/local/lib/spotify-adblock.so' from LD_PRELOAD cannot be preloaded (invalid ELF header): ignored.

I would just really love to get this working but I end up with ads and this log 😢 How can I rectify this?

abba23 commented 5 years ago

Have you tried compiling/installing it again? Were there any compilation errors?

Syzygianinfern0 commented 5 years ago

Have you tried compiling/installing it again? Were there any compilation errors?

(base) syzygianinfern0@pop-os:~/Documents/spotify-adblock-linux$ sudo make uninstall 
[sudo] password for syzygianinfern0: 
rm -f /usr/local/lib/spotify-adblock.so
(base) syzygianinfern0@pop-os:~/Documents/spotify-adblock-linux$ make
make: Nothing to be done for 'all'.
(base) syzygianinfern0@pop-os:~/Documents/spotify-adblock-linux$ sudo make install
cp spotify-adblock.so /usr/local/lib
(base) syzygianinfern0@pop-os:~/Documents/spotify-adblock-linux$ LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify
ERROR: ld.so: object '/usr/local/lib/spotify-adblock.so' from LD_PRELOAD cannot be preloaded (invalid ELF header): ignored.
ERROR: ld.so: object '/usr/local/lib/spotify-adblock.so' from LD_PRELOAD cannot be preloaded (invalid ELF header): ignored.
ERROR: ld.so: object '/usr/local/lib/spotify-adblock.so' from LD_PRELOAD cannot be preloaded (invalid ELF header): ignored.

Same errors again

abba23 commented 5 years ago

You have to delete ~/Documents/spotify-adblock-linux/spotify-adblock.so first. Make won't try to compile it again if the file already exists. Just run make clean or delete it manually and try again.

Syzygianinfern0 commented 5 years ago

You have to delete ~/Documents/spotify-adblock-linux/spotify-adblock.so first. Make won't try to compile it again if the file already exists. Just run make clean or delete it manually and try again.

[+] apresolve.spotify.com
[+] gae2-accesspoint-a-csnl.ap.spotify.com
[+] https://spclient.wg.spotify.com/reaccept-my-legal/v1/reacceptance-metadata?language=en
[-] https://spclient.wg.spotify.com/ads/v2/config?payload=eyJ1c2VyX2FnZW50IjoiTW96aWxsYVwvNS4wIChYMTE7IExpbnV4IHg4Nl82NCkgQXBwbGVXZWJLaXRcLzUzNi41IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lXC8xOS4wLjEwODQuOSBTYWZhcmlcLzUzNi41IFNwb3RpZnlcLzExMTAwMDU0NiAoODsgMDsgNSkiLCJzZXNzaW9uX2lkIjoiZjFlZDRhNTgtMzNkMC00MTliLTg4MzQtMTFmMzk0NjAxMmZjIn0=
[+] spclient.wg.spotify.com
[+] spclient.wg.spotify.com
[+] dealer.spotify.com
[+] dealer.spotify.com
[-] https://spclient.wg.spotify.com/ad-logic/v1/config
[+] pl.scdn.co
[+] dailymix-images.scdn.co
[+] seeded-session-images.scdn.co
[-] https://spclient.wg.spotify.com/ads/v2/config?payload=eyJ1c2VyX2FnZW50IjoiTW96aWxsYVwvNS4wIChYMTE7IExpbnV4IHg4Nl82NCkgQXBwbGVXZWJLaXRcLzUzNi41IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lXC8xOS4wLjEwODQuOSBTYWZhcmlcLzUzNi41IFNwb3RpZnlcLzExMTAwMDU0NiAoODsgMDsgNSkiLCJzZXNzaW9uX2lkIjoiZjFlZDRhNTgtMzNkMC00MTliLTg4MzQtMTFmMzk0NjAxMmZjIn0=
[-] adservice.google.co.in
[-] securepubads.g.doubleclick.net
[-] https://spclient.wg.spotify.com/ad-logic/v1/config
[-] https://spclient.wg.spotify.com/ads/v1/ads/leaderboard?payload=eyJ1c2VyX2FnZW50IjoiTW96aWxsYVwvNS4wIChYMTE7IExpbnV4IHg4Nl82NCkgQXBwbGVXZWJLaXRcLzUzNi41IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lXC8xOS4wLjEwODQuOSBTYWZhcmlcLzUzNi41IFNwb3RpZnlcLzExMTAwMDU0NiAoODsgMDsgNSkiLCJzZXNzaW9uX2lkIjoiZjFlZDRhNTgtMzNkMC00MTliLTg4MzQtMTFmMzk0NjAxMmZjIiwicmVxdWVzdF9pZCI6ImMzMWJlNDMzLWVlNjUtNDJjMC04NjdiLTNmMzY1MWFmMmIxNyIsInBvZCI6eyJjb250ZXh0IjoxLCJzZXNzaW9uIjoxfSwidGFyZ2V0aW5nIjp7InBsYXliYWNrX2lkIjoiYzMxYmU0MzMtZWU2NS00MmMwLTg2N2ItM2YzNjUxYWYyYjE3IiwiYWRicmVhayI6InZpZGVvLGFkc2NvcmUiLCJhZHBvZCI6IjEiLCJmb2N1cyI6InRydWUifX0=
[-] https://spclient.wg.spotify.com/ads/v2/config?payload=eyJ1c2VyX2FnZW50IjoiTW96aWxsYVwvNS4wIChYMTE7IExpbnV4IHg4Nl82NCkgQXBwbGVXZWJLaXRcLzUzNi41IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lXC8xOS4wLjEwODQuOSBTYWZhcmlcLzUzNi41IFNwb3RpZnlcLzExMTAwMDU0NiAoODsgMDsgNSkiLCJzZXNzaW9uX2lkIjoiZjFlZDRhNTgtMzNkMC00MTliLTg4MzQtMTFmMzk0NjAxMmZjIn0=
[-] heads4-ak-spotify-com.akamaized.net
[-] https://spclient.wg.spotify.com/ad-logic/v1/config
[-] https://spclient.wg.spotify.com/ads/v2/config?payload=eyJ1c2VyX2FnZW50IjoiTW96aWxsYVwvNS4wIChYMTE7IExpbnV4IHg4Nl82NCkgQXBwbGVXZWJLaXRcLzUzNi41IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lXC8xOS4wLjEwODQuOSBTYWZhcmlcLzUzNi41IFNwb3RpZnlcLzExMTAwMDU0NiAoODsgMDsgNSkiLCJzZXNzaW9uX2lkIjoiZjFlZDRhNTgtMzNkMC00MTliLTg4MzQtMTFmMzk0NjAxMmZjIn0=
[-] heads4-ak-spotify-com.akamaized.net
[+] i.scdn.co
[+] i.scdn.co
[+] audio4-fa.scdn.co
[-] https://spclient.wg.spotify.com/ad-logic/v1/config
[-] https://spclient.wg.spotify.com/ads/v2/config?payload=eyJ1c2VyX2FnZW50IjoiTW96aWxsYVwvNS4wIChYMTE7IExpbnV4IHg4Nl82NCkgQXBwbGVXZWJLaXRcLzUzNi41IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lXC8xOS4wLjEwODQuOSBTYWZhcmlcLzUzNi41IFNwb3RpZnlcLzExMTAwMDU0NiAoODsgMDsgNSkiLCJzZXNzaW9uX2lkIjoiZjFlZDRhNTgtMzNkMC00MTliLTg4MzQtMTFmMzk0NjAxMmZjIn0=

I guess this means it's working!! TYSM. You've made my day 😀