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

List:       kde-devel
Subject:    KDE on AIX fixes!
From:       Platzer Wolfgang <wolfgang.platzer () infonova ! at>
Date:       2000-05-31 15:24:38
[Download RAW message or body]

Now that the dcopidl problem has been solved on AIX I continue compiling
KDE-1.90 on AIX.
 
Since the KDE version of 30052000 seems to be broken for AIX I continue
working with version 23052000, which compiles fine, except of these errors:
 
1) The most common problem (about 80% of the errors) is the missing #include
<strings.h>, which contains all non standard ANSI string functions like
strcasecmp, bzero, ...
 
2) The second big problem is the linker error because of undefined symbols:
ld: 0711-317 ERROR: Undefined symbol: xxx
So I have to change the Makefile in each directory manually, and that is
very ugly. Maybe I shall focus on the real problem: libtool
 
3) real AIX related problems like "struct mnttab" and so on. I will fix
them.
 
But to continue doing really the AIX specific things problems 1) and 2) must
be fixed, because otherwise I just do adding missing headers and libs all
the day.
 
Here is a list with all changes I did till now:
 
 

KDE Version: snapshot 20000523
 
OS-Version: IBM AIX 4.3.3.0
 
gcc version 2.95.2 19991024 (release)
 

CXXFLAGS="-O2 -mminimal-toc" LDFLAGS="-Wl,-bbigtoc" ./configure
 
kdesupport
==========
 
mimelib/protocol.cpp:63
  problem: parse error before `int'
  solution: remove line (extern int h_errno;) ????
  
kde-qt-addon
============
 
OK!
 

kdelibs
=======
 
kdecore/libintl.cpp:1747
  problem: implicit declaration of function `int strcasecmp(...)'
  solution: #include <string.h> AND #include <strings.h>
 
kdecore/ksock.cpp:259
  problem: implicit declaration of function `int bzero(...)'
  solution: #include <strings.h>
 
kdecore/kprocess.cpp:588
  problem: implicit declaration of function `int bzero(...)'
  solution: #include <strings.h>
 
kio/slavebase.cpp:85
  problem: implicit declaration of function `int bzero(...)'
  solution: #include <strings.h>
 
kdekore/
  problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!
  solution: add these libs manually: -lqt -lX11 -lSM
  
kdeui/
  problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!
  solution: add these libs manually: -lqt -lX11 -lDCOP -lXext -lkde-qt-addon
 
kdesu/process.cpp:332
  problem: implicit declaration of function `int bzero(...)'
  solution: #include <strings.h>
 
kdesu/
  problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!
  problem: add these libs manually: -lqt -lX11 -lXext
 
kio/filter.cpp:124
  problem: implicit declaration of function `int bzero(...)'
  solution: #include <strings.h>
 
kio/global.cpp:431
  problem: aggregate `struct mnttab me' has incomplete type and cannot be
initialized
  solution: change line 375 to: #elif defined(BSD) || defined(_AIX)
 
kio/
  problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!
  solution: add these libs manually: -lqt -lDCOP -lkdecore to the line:
    libkio_la_LIBADD = ../kdeui/libkdeui.la $(LIBZ) $(LIBFAM) -lqt -lDCOP
-lkdecore
 
kio/kservicetypefactory.cpp
  problem: implicit declaration of function `int strcasecmp(...)'
  solution: #include <strings.h>
 
kio/
  problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!
  solution: add these libs manually: -lqt -lDCOP -lkde-qt-addon -lkdecore
-lkdeui to the line:
    libksycoca_la_LIBADD = ./libkio.la -lqt -lDCOP -lkde-qt-addon -lkdecore
-lkdeui
 
kio/file
  problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!
  solution: add these libs manually: -lqt -lkdecore to the line:
    kio_file_la_LIBADD = ../libkio.la -lqt -lkdecore
 
kio/http/kcookiejar/kcookiejar.cpp:611
  problem: implicit declaration of function `int strncasecmp(...)'
  solution: #include <strings.h>
 

kio/http/http.cc
  problem: implicit declaration of function `int bzero(...)'
  solution: #include <strings.h>
 
kio/http
  problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!
  solution: add these libs manually: -lqt -lkdecore -lDCOP -lkio to the
line:
    kio_http_la_LIBADD = ../libksycoca.la $(LIBZ) -lqt -lkdecore -lDCOP
-lkio
    kio_https_la_LIBADD = ../libksycoca.la $(LIBZ) $(LIBSSL) -lqt -lkdecore
-lDCOP -lkio
 
kio/ftp/ftp.cc
  problem: implicit declaration of function `int bzero(...)'
  solution: #include <strings.h>
 
  problem: ftp.cc:1236: <ftp://ftp.cc:1236:>  implicit declaration of
function `int time(...)'
  problem: ftp.cc:1237: <ftp://ftp.cc:1237:>  implicit declaration of
function `int gmtime(...)'
  solution: #include <time.h>
  
kio/ftp  
  problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!
  solution: add these libs manually: -lqt -lkdecore to the line:
    kio_ftp_la_LIBADD = ../libkio.la -lqt -lkdecore  
 
kimgio/
  problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!
  solution: add these libs manually:
-L/home/wplatzer/software/kdelibs/kdecore/.libs -lqt -lkdecore to the line:
    kimg_eps_la_LIBADD = -L/home/wplatzer/software/kdelibs/kdecore/.libs
-lqt -lkdecore
  solution: add these libs manually: -lqt to the line:
    kimg_xview_la_LIBADD = -lqt
 
kfile/kfilebookmark.cpp
  problem: implicit declaration of function `int strcasecmp(...)'
  solution: #include <strings.h>
 
kfile/kfilereader.cpp
  problem: In function `bool probably_slow_mounted(const char *)':
           kfilereader.cpp:506: aggregate `struct mnttab me' has incomplete
type and cannot be initialized
  solution: change line: #elif defined(BSD)
            to: #elif defined(BSD) || defined(_AIX)
   
 
  wolfgang
   

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.00.3017.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>Now that the dcopidl 
problem has been solved on AIX I continue compiling KDE-1.90 on 
AIX.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>Since the KDE 
version of 30052000 seems to be broken for AIX I continue working with version 
23052000, which compiles fine, except of these errors:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>1) The most common 
problem (about 80% of the errors) is the missing #include &lt;strings.h&gt;, 
which contains all non standard ANSI string functions like strcasecmp, bzero, 
...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>2) The second big 
problem is the linker error because of undefined symbols:&nbsp;&nbsp;ld: 
0711-317 ERROR: Undefined symbol: xxx</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>So I have to change 
the Makefile in each directory manually, and that is very ugly. Maybe I shall 
focus on the real problem: libtool</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>3) real AIX related 
problems like "struct mnttab" and so on. I will fix them.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>But to continue 
doing really the AIX specific things problems 1) and 2) must be fixed, because 
otherwise I just do adding missing headers and libs all the 
day.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>Here is a list with 
all changes I did till now:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000><BR>KDE Version: 
snapshot 20000523</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>OS-Version: IBM AIX 
4.3.3.0</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>gcc version 2.95.2 
19991024 (release)</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000><BR>CXXFLAGS="-O2 
-mminimal-toc" LDFLAGS="-Wl,-bbigtoc" ./configure</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>kdesupport<BR>==========</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>mimelib/protocol.cpp:63<BR>&nbsp; problem: parse error 
before `int'<BR>&nbsp; solution: remove line (extern int h_errno;) 
????<BR>&nbsp; <BR>kde-qt-addon<BR>============</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>OK!</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000><BR>kdelibs<BR>=======</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>kdecore/libintl.cpp:1747<BR>&nbsp; problem: implicit 
declaration of function `int strcasecmp(...)'<BR>&nbsp; solution: #include 
&lt;string.h&gt; AND #include &lt;strings.h&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>kdecore/ksock.cpp:259<BR>&nbsp; problem: implicit 
declaration of function `int bzero(...)'<BR>&nbsp; solution: #include 
&lt;strings.h&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>kdecore/kprocess.cpp:588<BR>&nbsp; problem: implicit 
declaration of function `int bzero(...)'<BR>&nbsp; solution: #include 
&lt;strings.h&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>kio/slavebase.cpp:85<BR>&nbsp; problem: implicit 
declaration of function `int bzero(...)'<BR>&nbsp; solution: #include 
&lt;strings.h&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>kdekore/<BR>&nbsp; 
problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!<BR>&nbsp; 
solution: add these libs manually: -lqt -lX11 -lSM<BR>&nbsp; 
<BR>kdeui/<BR>&nbsp; problem: ld: 0711-317 ERROR: Undefined symbol: lots of 
symbols!!!<BR>&nbsp; solution: add these libs manually: -lqt -lX11 -lDCOP -lXext 
-lkde-qt-addon</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>kdesu/process.cpp:332<BR>&nbsp; problem: implicit 
declaration of function `int bzero(...)'<BR>&nbsp; solution: #include 
&lt;strings.h&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>kdesu/<BR>&nbsp; 
problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!<BR>&nbsp; 
problem: add these libs manually: -lqt -lX11 -lXext</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>kio/filter.cpp:124<BR>&nbsp; problem: implicit 
declaration of function `int bzero(...)'<BR>&nbsp; solution: #include 
&lt;strings.h&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>kio/global.cpp:431<BR>&nbsp; problem: aggregate `struct 
mnttab me' has incomplete type and cannot be initialized<BR>&nbsp; solution: 
change line 375 to: #elif defined(BSD) || defined(_AIX)</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>kio/<BR>&nbsp; 
problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!<BR>&nbsp; 
solution: add these libs manually: -lqt -lDCOP -lkdecore to the 
line:<BR>&nbsp;&nbsp;&nbsp; libkio_la_LIBADD = ../kdeui/libkdeui.la $(LIBZ) 
$(LIBFAM) -lqt -lDCOP -lkdecore</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>kio/kservicetypefactory.cpp<BR>&nbsp; problem: implicit 
declaration of function `int strcasecmp(...)'<BR>&nbsp; solution: #include 
&lt;strings.h&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>kio/<BR>&nbsp; 
problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!<BR>&nbsp; 
solution: add these libs manually: -lqt -lDCOP -lkde-qt-addon -lkdecore -lkdeui 
to the line:<BR>&nbsp;&nbsp;&nbsp; libksycoca_la_LIBADD = ./libkio.la -lqt 
-lDCOP -lkde-qt-addon -lkdecore -lkdeui</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>kio/file<BR>&nbsp; 
problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!<BR>&nbsp; 
solution: add these libs manually: -lqt -lkdecore to the 
line:<BR>&nbsp;&nbsp;&nbsp; kio_file_la_LIBADD = ../libkio.la -lqt 
-lkdecore</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>kio/http/kcookiejar/kcookiejar.cpp:611<BR>&nbsp; 
problem: implicit declaration of function `int strncasecmp(...)'<BR>&nbsp; 
solution: #include &lt;strings.h&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000><BR>kio/http/http.cc<BR>&nbsp; problem: implicit 
declaration of function `int bzero(...)'<BR>&nbsp; solution: #include 
&lt;strings.h&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>kio/http<BR>&nbsp; 
problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!<BR>&nbsp; 
solution: add these libs manually: -lqt -lkdecore -lDCOP -lkio to the 
line:<BR>&nbsp;&nbsp;&nbsp; kio_http_la_LIBADD = ../libksycoca.la $(LIBZ) -lqt 
-lkdecore -lDCOP -lkio<BR>&nbsp;&nbsp;&nbsp; kio_https_la_LIBADD = 
../libksycoca.la $(LIBZ) $(LIBSSL) -lqt -lkdecore -lDCOP 
-lkio</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>kio/ftp/ftp.cc<BR>&nbsp; problem: implicit declaration 
of function `int bzero(...)'<BR>&nbsp; solution: #include 
&lt;strings.h&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>&nbsp; problem: <A 
href="ftp://ftp.cc:1236:">ftp.cc:1236:</A> implicit declaration of function `int 
time(...)'<BR>&nbsp; problem: <A href="ftp://ftp.cc:1237:">ftp.cc:1237:</A> 
implicit declaration of function `int gmtime(...)'<BR>&nbsp; solution: #include 
&lt;time.h&gt;<BR>&nbsp; <BR>kio/ftp&nbsp; <BR>&nbsp; problem: ld: 0711-317 
ERROR: Undefined symbol: lots of symbols!!!<BR>&nbsp; solution: add these libs 
manually: -lqt -lkdecore to the line:<BR>&nbsp;&nbsp;&nbsp; kio_ftp_la_LIBADD = 
../libkio.la -lqt -lkdecore&nbsp; </SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=170161115-31052000>kimgio/<BR>&nbsp; 
problem: ld: 0711-317 ERROR: Undefined symbol: lots of symbols!!!<BR>&nbsp; 
solution: add these libs manually: 
-L/home/wplatzer/software/kdelibs/kdecore/.libs -lqt -lkdecore to the 
line:<BR>&nbsp;&nbsp;&nbsp; kimg_eps_la_LIBADD = 
-L/home/wplatzer/software/kdelibs/kdecore/.libs -lqt -lkdecore<BR>&nbsp; 
solution: add these libs manually: -lqt to the line:<BR>&nbsp;&nbsp;&nbsp; 
kimg_xview_la_LIBADD = -lqt</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>kfile/kfilebookmark.cpp<BR>&nbsp; problem: implicit 
declaration of function `int strcasecmp(...)'<BR>&nbsp; solution: #include 
&lt;strings.h&gt;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>kfile/kfilereader.cpp<BR>&nbsp; problem: In function 
`bool probably_slow_mounted(const char 
*)':<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
kfilereader.cpp:506: aggregate `struct mnttab me' has incomplete type and cannot 
be initialized<BR>&nbsp; solution: change line: #elif 
defined(BSD)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
to: #elif defined(BSD) || defined(_AIX)<BR>&nbsp;&nbsp; </SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=170161115-31052000>&nbsp;&nbsp;wolfgang<BR>&nbsp;&nbsp;&nbsp;</DIV></SPAN></FONT></BODY></HTML>

>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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