Re: Successfully build of KDE-3.5.7 on sparcv9 Solaris10

Michael Lindig <[email protected]>
Newsgroups gmane.comp.kde.solaris
Message-ID <[email protected]>
Hi Michael,

I packed my KDE sources and Heiko put it on the FTP server so you can download
it :) . I wrote a little README

ftp://ls12-ftp.cs.uni-dortmund.de/outgoing/KDE/3.5.7/README.SRC;type=a

The sources includes my entire KDE-SourceTree plus the kdesvn-build script with
configuration file. I only removed the '.svn' subdirectories which are not
needed because of source tagging (3.5.7).

The sources have some adjustments (mainly the configuration scripts) for 64-bit
environment and some sources files where patched for solaris:

Index: kdebase/kcontrol/nics/nic.cpp
===================================================================
--- kdebase/kcontrol/nics/nic.cpp	(revision 672160)
+++ kdebase/kcontrol/nics/nic.cpp	(working copy)
@@ -218,11 +218,11 @@

          ifcopy=*ifr;
          result=-1;  // if none of the two #ifs below matches, ensure that
result!=0 so that "Unknown" is returned as result
-#ifdef SIOCGIFHWADDR
-         result=ioctl(sockfd,SIOCGIFHWADDR,&ifcopy);
+#ifdef SIOCGENADDR
+         result=ioctl(sockfd,SIOCGENADDR,&ifcopy);
          if (result==0)
          {
-            char *n = &ifcopy.ifr_ifru.ifru_hwaddr.sa_data[0];
+            char *n = &ifcopy.ifr_ifru.ifru_enaddr[0];
             tmp->HWaddr = HWaddr2String(n);
          }
 #elif defined SIOCGENADDR
Index: kdebase/kdm/backend/client.c
===================================================================
--- kdebase/kdm/backend/client.c	(revision 672160)
+++ kdebase/kdm/backend/client.c	(working copy)
@@ -959,7 +959,7 @@

 #if defined(USE_PAM) && defined(HAVE_INITGROUPS)
 int num_saved_gids;
-gid_t saved_gids[NGROUPS];
+gid_t saved_gids[NGROUPS_MAX];

 static int
 saveGids( void )
Index: kdebase/kdesu/kdesud/kdesud.cpp
===================================================================
--- kdebase/kdesu/kdesud/kdesud.cpp	(revision 672160)
+++ kdebase/kdesu/kdesud/kdesud.cpp	(working copy)
@@ -77,8 +77,8 @@
 #include <X11/Xlib.h>

 #ifndef SUN_LEN
-#define SUN_LEN(ptr) ((kde_socklen_t) (((struct sockaddr_un *) 0)->sun_path) \
-                     + strlen ((ptr)->sun_path))
+// 64-bit bug on sun-sparc9
+#define SUN_LEN(ptr)  (sizeof(*(ptr)) - sizeof((ptr)->sun_path) +
strlen((ptr)->sun_path))
 #endif

 #define ERR strerror(errno)
Index: kdelibs/kdesu/client.cpp
===================================================================
--- kdelibs/kdesu/client.cpp	(revision 672156)
+++ kdelibs/kdesu/client.cpp	(working copy)
@@ -43,8 +43,8 @@
 };

 #ifndef SUN_LEN
-#define SUN_LEN(ptr) ((socklen_t) (((struct sockaddr_un *) 0)->sun_path) \
-	             + strlen ((ptr)->sun_path))
+// 64-bit bug on sun-sparc9
+#define SUN_LEN(ptr)  (sizeof(*(ptr)) - sizeof((ptr)->sun_path) +
strlen((ptr)->sun_path))
 #endif

 KDEsuClient::KDEsuClient()
Index: kdesupport/akode/plugins/mpc_decoder/mppdec/synth_filter.cpp
===================================================================
--- kdesupport/akode/plugins/mpc_decoder/mppdec/synth_filter.cpp	(revision 672156)
+++ kdesupport/akode/plugins/mpc_decoder/mppdec/synth_filter.cpp	(working copy)
@@ -1,6 +1,6 @@
 #include "stdafx.h"

-typedef int ptrdiff_t;
+typedef long ptrdiff_t;


 /* C O N S T A N T S */
-------------------------------------------------------------------

cheers
Michael

Michael Schuster schrieb:
> Michael Lindig wrote:
>>
>> KDE has a lot of external dependencies which sources are no longer
>> available at
>> this time.
> 
> ich mach das privat:
> 
> ich hätte gern (und ich vermute, eine Reihe anderer Leute), die
> *exakten* sourcen von dem, was Du verwendet hast um KDE-3.5.7 für Sparc
> zu bauen - nicht mehr (naja, vielleicht doch ;-), nicht weniger. Du
> wirst doch nicht behaupten, daß Du nachdem Du den tar-ball fertig
> hattest, deinen source-baum entsorgt hast?
> 
> Die scripten, die von Deiner home-page zu holen sind, sind ja "nur" ;-)
> das "wie", aber nicht das "was", wenn Du verstehst was ich mein.
> 
> oder versteh ich da was komplett falsch?
> 
>> Sorry, its not so simple as it looks :)
> 
> das ist's doch nie, oder ;-)
> 
> cheers
> (noch ein) Michael
___________________________________________________
This message is from the kde-solaris mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde-solaris.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.