[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde
Subject:    Re: Binaries for Aix?
From:       Stefan Westerfeld <stefan () space ! twc ! de>
Date:       1998-05-05 2:10:04
[Download RAW message or body]

  Hi!

> On Sun, 3 May 1998, Stefan Westerfeld wrote:
> 
> > I noticed another problem with that on Aix: the binaries of only
> > kdesupport, kdelibs, kdebase and kdeutils are about 54 MB even if you
> > .tar.bz2 them. (They are 214 MB without), since gcc/egcs will not create
> > shared libraries. Thats a little large, especially if you consider to
> > include the other packages as well.
> 
> 	I have tried building KDE on AIX from Beta2 so far.  I haven't
> tried Beta4, but I haven't gotten a succsessful compile yet.  gcc can and
> will build shared libs on AIX.  Unfortunately, libtool is not yet smart
> enough to handle AIX's shared libs (they are a bit quirky) and so mucking
> about is needed.  So that can be solved.

Can you give me a small example how to do that? Under linux I have made
a little example, which does the trick:

---- shared lib example:

## Makefile:

all: testshl_static testshl
clean:
        rm -f testfunc.o main.o libtestshl.so testshl testshl_static

testshl_static: testfunc.o main.o
        gcc -o testshl_static testfunc.o main.o

libtestshl.so: testfunc.o
        gcc -shared -o libtestshl.so testfunc.o

testshl: libtestshl.so main.o
        gcc -o testshl main.o -L. -ltestshl

## main.c

extern void testfunction();

main()
{
        printf("---- calling external testfunction ...: -------------\n");
        testfunc();
        printf("------------------------------------------- done ----\n");
}

## testfunc.c

void testfunc()
{
        printf("This is the output of the testfunction\n");
}

---- 

What exactly is to do to make this compile under Aix? Then I could look if
I can get qt to compile as shared library, and perhaps even try to look at
libtool. This would make things much better and more elegant on Aix.

> But every kde build I try breaks during kdebase.  AIX 4.1.5/4.2.1 gcc 2.7.2
This is definitly possible. Perhaps you'll need to exclude kdm from
compilation, but everything else will be possible. Look at

      http://space.twc.de/~stefan/kde

I explained what else you might need to do there. Otherwise write me,
perhaps I can help you.

> > So we can either try to find someone who can build KDE with xlC (the
> > IBM compiler), or rather give people a working compiler so that they
> > can build the stuff themselves.
> 
> 	I would much prefer to use xlC, but so far it isn't even close.
> The KDE sources use C++ ocnstructs that are only accepted by gcc (afaik).
> xlC fails out with MANY errors about a virtual function hiding another
> function, etc.  However, I have not had a chance to try with xlC 3.1.5
> (released within the past month) and Beta4.  I will probably try this
> week.

Ok, I can't help there since I have no xlC available to play around with.
We should try to make both work (gcc with shared libs, and xlC as well),
and the binaries that looks better/more stable or are ready earlier should
be but onto the FTP site.

> 	If I ever get it working, I would be happy to put the binaries up
> on an ftp site.  Ideally, I will build 4.1.5, 4.2.1, and 4.3.0/4.31.
> binaries.  There are little quirks on each level that make a specific
> build a better idea, though 4.1.5 binaries should work on all 4.x systems.
> The best quirk is that AIX 4.3.x uses X11R6 (finally).

If you would be able to build them for all those systems it would be great.
So we only need to fix the remaining problems in libtool and QT makefile,
then we can start.

   Cu... Stefan
-- 
Send posts to:  kde@lists.netcentral.net
 Send all commands to:  kde-request@lists.netcentral.net
  Put your command in the SUBJECT of the message:
   "subscribe", "unsubscribe", "set digest on", or "set digest off"
**********************************************************************
This list is from your pals at NetCentral <http://www.netcentral.net/>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic