PDA

View Full Version : Problem compiling under SuSE9.1



jasonf
19-12-2004, 05:31 PM
Here's the environment.

SuSE9.1 Pretty much a fresh install
Kylix 1

After much faffing around trying to get the damned thing to even run, in the end having to supply an environment variable export D_ASSUME_KERNEL=2.4.1
which I tacked onto the start of my startkylix script...
OK it, then went through it's Generating Font matrix which was taking forever, cancelling the window seemed to work.

Then it came to compiling... and I got some message about

[Error] Bad file format: 'libc.so.6'
[Error] Bad file format: 'libpthread.so.0'

Looking on some german forum they suggested editing my .bashrc file and adding an alias
alias startdelphi='export LD_ASSUME_KERNEL=2.4.1 && startdelphi'

This has made no difference so far..

Has anyone else had this trouble or am I just cursed?

savage
20-12-2004, 10:48 AM
Hi Jason,
great to see you on here :). My understanding is that Suse 9.1 uses the 2.6 Linux kernel.

Have you tried the following on the command line...
export LD_ASSUME_KERNEL=2.4.0
startdelphi

or alternatively, you could add the "export LD_ASSUME_KERNEL=2.4.0" to the top of the startdelphi script..

Some instructions I found on google groups were...


2. Edited the script files to include : export LD_ASSUME_KERNEL=2.4.0

At this point it still didn't work, but got a different error message
about relocation of libpthread.so.0 not being linked in libc.so.6

Checked my /kylix/bin directory and both files were linked to original
filesin /lib/tls.
Did a search for libpthread and libc and found they also existed in both
/lib and /lib/i686. Decided to destroy both links in /kylix/bin and
linked the libpthread and libc files from /lib/i686 to /kylix/bin.

At this point ran the startdelphi script and the Kylix 3 IDE loaded.

I hope this helps in some way. I use Mandrake 10 and do not remember having this problem.

jasonf
20-12-2004, 06:59 PM
I've just tried the export

export LD_ASSUME_KERNEL=2.4.0
But I get the same error.

I originally had
export LD_ASSUME_KERNEL=2.4.1
But it didn't work.

I still have my old Linux environment intact, so it's not a complete loss, but I'd really like to be able to use Kylix under SuSE9.1

For the record, I've placed the export command in both the startkylix script and the .bascrc file. But still no joy.

savage
20-12-2004, 07:48 PM
what about the tip about

libpthread and libc
In the previous post refering to stray symbolic links. Did you try that?

jasonf
20-12-2004, 07:53 PM
Ah, I didn't notice that part :)

I'll give that a shot...

jasonf
20-12-2004, 08:07 PM
Damnit! :(

Those files didn't even exist in my Kylix/bin directory. This is Kylix1

I did have 2 versions of those .so files though in /lib/i686 and /lib, so I linked to the i686 versions and put the links in the kylix/bin directory.

But it's made no difference.

savage
27-12-2004, 02:33 AM
Hi Jason,
Merry Christmas!

I don't know if you managed to get it working, but I thought I would post my "startdelphi" contents...

#!/bin/bash

# BEGIN STRING TABLE

KYDEF_LOCALE="en_US"
LC_ALL_IS_C1="The LC_ALL environment variable is set to C. Kylix cannot start with this setting."
LC_ALL_IS_C2="Defaulting LC_ALL to"

# END STRING TABLE

if [ -z "$LANG" ]; then
LANG=$KYDEF_LOCALE
export LANG
fi

if [ "$LC_ALL" = "C" ]; then
echo "$LC_ALL_IS_C1"
echo "$LC_ALL_IS_C2 $KYDEF_LOCALE."
LC_ALL=$KYDEF_LOCALE
export LC_ALL
fi

export LD_ASSUME_KERNEL=2.4.1

source /home/dominique/kylix3/bin/kylixpath /home/dominique/kylix3 >/dev/null
/home/dominique/kylix3/bin/delphi $*

I am using Mandrake 10.1, but that should not make any difference. I am not sure if the export before the source / command is necessary.

Anyway I hope this helps somehow,

jasonf
28-12-2004, 08:20 PM
Sorry mate,

No joy. Tried pasting your startdelphi code into my StartKylix script, altering where required, paths & stuff.

Same error. I think it's just a problem between SuSE and Kylix.

So I think I'm going to give up on this.
Can someone point me in the right direction for getting a different IDE and FreePascal working? I have no clue where to start and I could do with getting back on my feet as soon as possible

savage
28-12-2004, 10:55 PM
Hi Jason,
Sorry to hear that. Have you tried Lazarus ( lazarus.freepascal.org ), I have not tried it lately, but I hear the latest release it relatively stable, though not perfect.

Other alternative IDEs are...
MiniPascal - http://www.minipascal.clan.st/
DevPascal - http://www.bloodshed.net/devpascal.html

Of these however, I think Lazarus is the only one that works on Win32, Linux and MacOS X.

Either way I hope it helps.

jasonf
02-01-2005, 12:00 AM
Cheers mate,

I got Lazarus and I'm very impressed. All of the RPM's worked on my SuSE box (with a little complaining, but nothing serious)

Now I'm just trying to get stuff to compile. It meant I needed to get the latest Jedi-SDL with Cross compiler support built in. Just having troubles with my stuff now.

Am I right in thinking that there's no intellisence with Lazarus?

If I can get this working, Bye Bye Kylix.

Lightning
03-01-2005, 12:37 AM
Intellisence is called identifier completion in Lazarus and it's not invoked automatically, you have to press [ctrl]+[space] to invoke it, this might change in the future but it's enough now :)