LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-07-2019, 12:29 PM   #1
Aeterna
Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, CRUX, FreeBSD, Funtoo, HardenedBSD, OpenIndiana
Posts: 178

Rep: Reputation: Disabled
Polybar (SBo) fails to compile


Hello,
I am trying to get polybar from SBo (polybar 3.1.0-x86_64-1_SBo), unfortunately compilation fails (on Slackware-current 64-bit up to date, SBo synced before compilation)

Quote:
Found XCB: /usr/lib64/libxcb.so;/usr/lib64/libxcb-icccm.so;/usr/lib64/libxcb-ewmh.so;/usr/lib64/libxcb-util.so;/usr/lib64/libxcb-image.so;/usr/lib64/libxcb-randr.so;/usr/lib64/libxcb-xkb.so
-- xpp: including xcb proto randr.xml
-- xpp: including xcb proto xkb.xml
-- xpp: including xcb proto xproto.xml
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/SBo/polybar-3.1.0/build
Scanning dependencies of target xpp
[ 1%] Linking CXX static library libxpp.a
Traceback (most recent call last):
File "/tmp/SBo/polybar-3.1.0/lib/xpp/generators/cpp_client.py", line 3163, in <module>
from xcbgen.state import Module
File "/usr/lib64/python2.7/site-packages/xcbgen/state.py", line 7, in <module>
from xcbgen import matcher
File "/usr/lib64/python2.7/site-packages/xcbgen/matcher.py", line 12, in <module>
from xcbgen.xtypes import *
File "/usr/lib64/python2.7/site-packages/xcbgen/xtypes.py", line 1221, in <module>
class EventStruct(Union):
File "/usr/lib64/python2.7/site-packages/xcbgen/xtypes.py", line 1239, in EventStruct
out = __main__.output['eventstruct']
KeyError: 'eventstruct'
make[2]: *** [lib/xpp/CMakeFiles/xpp.dir/build.make:70: lib/xpp/libxpp.a] Error 1
make[1]: *** [CMakeFiles/Makefile2:405: lib/xpp/CMakeFiles/xpp.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
I wonder if there is any fix for this error?

Thank you
 
Old 02-07-2019, 12:40 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,686

Rep: Reputation: 3702Reputation: 3702Reputation: 3702Reputation: 3702Reputation: 3702Reputation: 3702Reputation: 3702Reputation: 3702Reputation: 3702Reputation: 3702Reputation: 3702
My SlackBuild worked for me last time I checked.

https://github.com/duganchen/my_slac...bar.SlackBuild

I'm a bit curious as to whether it gives you different results.
 
Old 02-07-2019, 02:12 PM   #3
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,385

Rep: Reputation: 1036Reputation: 1036Reputation: 1036Reputation: 1036Reputation: 1036Reputation: 1036Reputation: 1036Reputation: 1036
Are you using ponce's SBo branch for -current?
 
Old 02-07-2019, 02:56 PM   #4
ehartman
Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 374

Rep: Reputation: 166Reputation: 166
Quote:
Originally Posted by Aeterna View Post
unfortunately compilation fails (on Slackware-current 64-bit up to date, SBo synced before compilation)



I wonder if there is any fix for this error?

Thank you
SBo packages are for released versions (that is: 14.x) of Slackware only, they are not guaranteed to work in -current.
Luckily ponce is maintaining an unofficial SBo port for -current, look there or see the
SBo scripts not building on current thread on this forum.
 
Old 02-08-2019, 12:10 PM   #5
Aeterna
Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, CRUX, FreeBSD, Funtoo, HardenedBSD, OpenIndiana
Posts: 178

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ehartman View Post
SBo packages are for released versions (that is: 14.x) of Slackware only, they are not guaranteed to work in -current.
Luckily ponce is maintaining an unofficial SBo port for -current, look there or see the
SBo scripts not building on current thread on this forum.
Thank you.

compilation still fails (though with a different error)
Quote:
[ 11%] Building CXX object bin/CMakeFiles/polybar.dir/adapters/net.cpp.o
/tmp/SBo/polybar-3.1.0/src/adapters/net.cpp: In member function ‘void polybar::v3_1_0::net::network::check_tuntap()’:
/tmp/SBo/polybar-3.1.0/src/adapters/net.cpp:155:12: error: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Werror=stringop-truncation]
strncpy(request.ifr_name, m_interface.c_str(), IFNAMSIZ - 0);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [bin/CMakeFiles/polybar.dir/build.make:89: bin/CMakeFiles/polybar.dir/adapters/net.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:517: bin/CMakeFiles/polybar.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
 
Old 02-08-2019, 12:38 PM   #6
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,610

Rep: Reputation: Disabled
you have, additionally, to change this line in the polybar.SlackBuild
Code:
    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=implicit-fallthrough" \
to
Code:
    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=implicit-fallthrough -Wno-error=stringop-truncation" \
 
1 members found this post helpful.
Old 02-10-2019, 07:50 PM   #7
Aeterna
Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, CRUX, FreeBSD, Funtoo, HardenedBSD, OpenIndiana
Posts: 178

Original Poster
Rep: Reputation: Disabled
@ponce
Thank you. Problem solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia-driver SBo The symbolic link '/usr/lib/libGL.so.1' does not point to 'tmp/SBo/package-nvidia-driver/usr/lib64/libGL.so.1' Gerardo Zamudio Slackware 5 07-30-2017 11:44 PM
LXer: Polybar: A Better WM Panel for your Linux system LXer Syndicated Linux News 0 07-25-2017 06:08 PM
Questions for Robby, ponce, or anyone from SBo about SBo submission requirements. ReaperX7 Slackware 4 06-07-2015 12:30 PM
Nvidia-driver.SlackBuild from SBo (or: I am a bad and sloppy SBo maintainer) kingbeowulf Slackware 8 08-31-2012 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration