#KDE2-kdelibs fails to build
224 messages · Page 1 of 1 (latest)
I haven't worked with C++ before, so I have zero idea where to even begin with this error. I tried multiple repos, all the same result.
Get me the full compiler cmdline
It might be a C++ standard issue
I got some help from the Gentoo discord, and I got it to go a little further, lemme put what it spat out
If I can actually get kde2 to work that would be amazing though
If you applied any patches please send them to me
I changed one file, no patches.
While I don't consider myself a C++ programmer I do know some parts of it
I suspect where the issue might be but I need to be able to reproduce it
Kay.
I'll send you the repo, you'll have to change the line "set(CMAKE_CXX_STANDARD 98)" in kde2.cmake to set(CMAKE_CXX_STANDARD 11)
Exactly what I thought
?
I've dealt with this issue before, it was indeed the C++ standard
ah..
Eh, I don't mind having an Arch with KDE2 VM, I'll test it all the way
I'm doing this on real hardware lol
Just wait a bit, I need to get Debian installed for my OpenVMS-related purposes (about 80% already copied) and then get Arch up
Then I'll test this
kk
k
I got KDELibs to compile but kdebase won't configure in it's current state, it doesn't see qt2
eh I'm planning on going all the way so hang on until I add some spaces
k
alright i fixed kdelibs
now to get makepkg to respect the fix
fixed kdelibs
now to kdebase
are you gonna lmk how to do this once you get it working?
odd..
it breaks itself later
hm it's breaking in a printf
lemme add a format specifier, that's c code internals so you're not supposed to understand how these work
lol
wait
did you install qt2 using the pacman package or manually?
also use the pacman package for everything
if you can't get something to work ask me
I used the AUR package
I uninstalled the AUR version
you need the AUR one
it probably installed into /usr/local where stuff sometimes doesn't get found
ah
I'm doing it from the AUR ig
when I try to do the mods to KDELibs and rerun yay kde2-kdelibs it overwrites the changes
hang on I'll drop you a way to fix that
kk
After manually git cloneing the repo adjust the PKGBUILD's build() function to be like this
The sed command fixes the first issue
Point the cp to a local copy of the file causing the second issue, you probably already found how to fix it and thus you can fix it yourself in the copy
Do you understand?
I think??? I'll follow and see if it works
slapped the first patched file into kdebase's PKGBUILD
now waiting for the second one
oh and btw did you run makepkg witht the -si arguments?
because you need them
yeh I did, I made a typo in the cp command tho
alright
first issue fixed, now i ran into the same issue but different file
btw is your locale set to english?
ye
i am not about to try to find what function it actually expects but i think my workaround only works for ASCII chars
if you're on english it's all okay
you need to manually copy it out of the source dir and patch it
you might need to specify the direct path to it
found it
otherwise makepkg looks in whereever is it working rn
I was going in the build subdir
ugh another printf issue
hang on i need to figure out what is in the variable this time
there we go it's running finally
I hope you're not planning on daily driving KDE2?
I have found at least one issue which may lead to a crash and might have missed a ton more because the compiler doesn't throw warnings at these
ah
did you enter the root password?
ah
I set my user to not need a password
it fails because you already installed this
o h
and thus pacman fails because it thinks it's overwriting local files
if you're lucky the build system might have a make uninstall option
if not you need to look into pacman docs
hmmm
alright I got 14% further but it's still failing
15 "%s"es later
still failing...
ugh was there a format autodetection facility in libc which is now gone, how did this code ever work???
ugh my stepdad took my PC away for literally no reason
failing at 88%
literally none
RIP
anyways I'll go write more of these damn format specifiers, they be damned
I asked him to "please get out of my room" multiple times because I couldn't focus and he kept on going. I raised my voice a little and he called it "hollering"
kk
Its 2am for me, I got school at 9, alarms at 6
ah
kk
It'll contain the patches, adjust the PKGBUILD for whereever you unpacked it
aight
shouldn't be too hard, I made an AUR folder in my home directory so best case scenario it's as simple as changing the username
IT COMPILED
Still not safe, it may just segfault or something when I run it
@ornate ridge
Anyways I'll go install every other kde2 package on here
Then slap all these in a tarball and send them your way
here
If you still have issues ping me
Please mark as "solved" if this compiles
If it compiles but some apps don't work, I can drop you a nice tutorial on how to use gdb but I don't want to deal with that
I spent an hour adding these damn format specifiers everywhere
Might be a while until I can test, not sure when I can get my PC back
bruh my PC wasn't even plugged into the power strip I'm dead
as a result, he didn't even succeed at his original goal...
:/
okay I have very good news
kde2-kdebase is finally compiling!!!!!!
okay I tried to start it and it said undefined symbol
@light seal https://bpa.st/7LTQ
ah
I'll try kdm
nvm apparently it doesn't exist according to t systemd
it doesn't start even with a display manager
@light seal this is a weird issue
hm
it worked for me
anyways i'm tired af
if you want to try to debug that use nm
it's a useful tool which prints out library exports
some pretty advanced debug stuff tho
k
okay so apparently the file it's looking in has no symbols???
used nm to search the file
nothing
it's happening in libkdecore-2.so.3
can you send me your copy of libkdecore-2.so.3?
it's located in /usr/lib
I wanna see if that fixes whatever it's complaining about
@light seal
kk
here's the file
the actual one, not the symlink because the file you asked for is a symlink to this
i'ma go to sleep
and i also figured out why the files have no symbols
pacman strips debug info during installation like most distros do
i forgot to mention that makes nm useless since, well, there's no symbol info to read
and i just remembered that
ah. where WAS the original file located?
okay that fixed the errors but kde still won't launch
added it to my xinitrc and now it launches
no icons or apps though, wonder why .
no applets, builtin apps, nadda. is yours like this?
not even konquerer
isn't showing anything
wait the default apps are there
they aren't in the menus
weird
@light seal is this how it looks for you? no applets at all and no way to configure?
Mine launched fine with the list intact
odd
can you send your .kde2 folder from your home directory?
need to compare filestructures
cause when I exited kde one time it had a bunch of errors relating to missing directories and stuff
okay so it seems like my install of kde is incomplete
the .desktop shortcuts don't exist
I'm gonna reinstall it all
uhh could you send me the files you personally used to install kde2? untouched, with the pkgs and stuff
cause I think my pkgs are broken and idk how to fix
@light seal
I nuked all the package binary files while I was preparing the sources