#KDE2-kdelibs fails to build

224 messages · Page 1 of 1 (latest)

ornate ridge
#

I'm trying to install KDE2 from the AUR and it fails to compile at KDELibs. Not sure where to proceed..

Here's the output of make: https://bpa.st/SZDA

#

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.

light seal
#

It might be a C++ standard issue

ornate ridge
#

If I can actually get kde2 to work that would be amazing though

light seal
#

If you applied any patches please send them to me

ornate ridge
#

I changed one file, no patches.

light seal
#

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

ornate ridge
#

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)

light seal
#

Exactly what I thought

ornate ridge
#

?

light seal
#

I've dealt with this issue before, it was indeed the C++ standard

ornate ridge
#

ah..

light seal
#

Eh, I don't mind having an Arch with KDE2 VM, I'll test it all the way

ornate ridge
#

I'm doing this on real hardware lol

light seal
#

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

ornate ridge
#

kk

light seal
#

compiling qt2

#

compiling kdelibs now

ornate ridge
#

k

#

I got KDELibs to compile but kdebase won't configure in it's current state, it doesn't see qt2

light seal
#

eh I'm planning on going all the way so hang on until I add some spaces

ornate ridge
#

k

light seal
#

alright i fixed kdelibs

#

now to get makepkg to respect the fix

#

fixed kdelibs

#

now to kdebase

ornate ridge
#

are you gonna lmk how to do this once you get it working?

light seal
#

sure

#

however it finds qt2 perfectly fine for me

ornate ridge
#

odd..

light seal
#

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

ornate ridge
#

lol

light seal
#

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

ornate ridge
#

I used the AUR package

light seal
#

alright

#

send me the errors

ornate ridge
#

I uninstalled the AUR version

light seal
#

you need the AUR one

#

it probably installed into /usr/local where stuff sometimes doesn't get found

ornate ridge
#

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

light seal
ornate ridge
#

kk

light seal
#

at first you need to NOT use yay, use the manual way for this

#

aka makepkg

ornate ridge
#

oh

#

I've been using yay this entire time :/

light seal
#

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?

ornate ridge
#

I think??? I'll follow and see if it works

light seal
#

Alright

#

I'll get back to putting the format specifiers everywhere

ornate ridge
#

k

#

Kay I'm running makepkg

light seal
#

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

ornate ridge
#

yeh I did, I made a typo in the cp command tho

light seal
#

alright

#

first issue fixed, now i ran into the same issue but different file

#

btw is your locale set to english?

ornate ridge
#

ye

light seal
#

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

ornate ridge
#

hmmm

light seal
ornate ridge
#

I have it patches

#

phone keyboard malfunctioning oh god

light seal
#

you might need to specify the direct path to it

ornate ridge
#

found it

light seal
#

otherwise makepkg looks in whereever is it working rn

ornate ridge
#

I was going in the build subdir

light seal
#

ugh another printf issue

#

hang on i need to figure out what is in the variable this time

ornate ridge
#

there we go it's running finally

light seal
#

I hope you're not planning on daily driving KDE2?

ornate ridge
#

I may be?

#

ugh issue

#

failed to install built packages

light seal
#

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

ornate ridge
#

ah

light seal
ornate ridge
#

no root password

light seal
#

ah

ornate ridge
#

I set my user to not need a password

light seal
#

it fails because you already installed this

ornate ridge
#

o h

light seal
#

and thus pacman fails because it thinks it's overwriting local files

ornate ridge
#

is there a way to uninstall??

#

ah

#

any way to force it?

light seal
#

if not you need to look into pacman docs

ornate ridge
#

f u c k

#

what's the command for a local file?

light seal
#

oh look I found a force overwrite

#

you'll need to call pacman manually tho

ornate ridge
#

hmmm

light seal
#

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???

ornate ridge
#

ugh my stepdad took my PC away for literally no reason

light seal
#

failing at 88%

ornate ridge
#

literally none

light seal
#

anyways I'll go write more of these damn format specifiers, they be damned

ornate ridge
#

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

light seal
#

there's a VC here...

#

want a code fixing livestream?

ornate ridge
#

Its 2am for me, I got school at 9, alarms at 6

light seal
#

ah

ornate ridge
#

I gotta go to bed

#

gn ig

light seal
#

gn

#

I'll put a tarball here when I'm done

ornate ridge
#

kk

light seal
#

It'll contain the patches, adjust the PKGBUILD for whereever you unpacked it

ornate ridge
#

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

light seal
#

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

light seal
#

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

ornate ridge
#

Might be a while until I can test, not sure when I can get my PC back

ornate ridge
#

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...

#

:/

ornate ridge
#

okay I have very good news

#

kde2-kdebase is finally compiling!!!!!!

#

okay I tried to start it and it said undefined symbol

light seal
#

I personally used LXDM

#

It worked for me using that

ornate ridge
#

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

light seal
#

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

ornate ridge
#

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

ornate ridge
#

@light seal

light seal
#

hang on

#

i need to pull up the vm

ornate ridge
#

kk

light seal
#

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

ornate ridge
#

ah. where WAS the original file located?

#

okay that fixed the errors but kde still won't launch

ornate ridge
#

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?

light seal
ornate ridge
#

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

ornate ridge
#

and apparently he really doesn't want me to have a computer

#

f u c k

light seal
ornate ridge
#

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

light seal
#

I nuked all the package binary files while I was preparing the sources

ornate ridge
#

oof

#

that's an issue

#

its broken for me and idk what to remove from the folders

#

I made a user named seal and am now building it

ornate ridge
#

Kay it's still broken

#

I wonder if I'm missing a package