Bug 21144 - kdebindings on solaris configure problem
Summary: kdebindings on solaris configure problem
Status: RESOLVED WORKSFORME
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Other
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
: 21248 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-03-01 12:48 UTC by rcbapb
Modified: 2008-01-30 03:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bugzilla Maintainers 2001-03-01 12:23:22 UTC
(*** This bug was imported into bugs.kde.org ***)

Package: kdebindings
Version: 2.1

In configure.in the following can be found:


if test -n "$ac_jni_includes" && test -r "$ac_jni_includes/jni.h"; then
  dnl Strange thing jni.h requires jni_md.h which is under genunix here..
  jni_includes="-I$ac_jni_includes -I$ac_jni_includes/genunix"
  AC_SUBST(jni_includes)
 
  AC_MSG_RESULT([found in $ac_jni_includes])
else
  ...
fi



However under Solaris jmi_md.h resides under "solaris" rather than "genunix"
which results in an error while building.

Regards
Peter
Comment 1 Lars Tunkrans 2001-12-05 19:46:57 UTC
Version:           KDE 2.2.2 
Installed from:    Compiled From Sources
Compiler:          gcc 2.95/3
OS:                Solaris
OS/Compiler notes: Not Specified

KDEbindings configure script does not work under solaris because the JAVA  SDK/JRE is not laid out in the same directory structure as in LINUX since SPARC/SOLARIS is another machine type.
 
When configure tries to find the various components in the java SDK/JRE the following should be noted.

libhpi.so  exists in  /usr/j2se/jre/lib/sparc/native_threads

The working javac  javah  jar  binaries together with the jni.h  jni_md.h  exists below the path

/usr/java1.2  

AND As stated in bug 21144 
"Solaris jmi_md.h resides under "solaris" rather than "genunix"
which results in an error while building."


To fix this up a bit I introduced a new line
number 9784   in the KDEbindings configure script

 test -d "$kde_cv_java_includedir/solaris" && jni_includes="$jni_includes -I$kde_cv_java_includedir/solaris"

This allows configure to find the jni_md.h file.

So far I cheated with the libhpi.so an simply copied it over from the /usr/j2se  tree to the /usr/java1.2  tree. which allowed configure to run through to its end without errors.

The next problem in building kdebindings on solaris is that KDEbindings requiers GNU-SED  to do the parsing down in the Makefiles of qtjava/javalib/qtjava.
The unix/solaris  SED  suffers from the same problem as vi(1) does when a line in a text file gets to long it gives up with 
"line too long"  error. When all the hundreds of objects down in qtjava/javalib/qtjava  gets listed on one line in the Makefile  UNIX-SED  simply fails.  

Therefore I recommend  that KDEbindings 
configure should try to locate GNU-SED.
On solaris 8  this would normally exist in /opt/gnu/bin/sed




(Submitted via bugs.kde.org)
Comment 2 Dirk Mueller 2003-09-18 21:30:31 UTC
*** Bug 21248 has been marked as a duplicate of this bug. ***
Comment 3 George Goldberg 2007-12-17 06:45:58 UTC
This shouldn't effect KDE 4, since it uses cmake as the build system. However, please confirm if it still effects a recent version of KDE 3, such as 3.5.8.
Comment 4 George Goldberg 2008-01-30 03:02:21 UTC
Closing due to no response by reporters. Please reopen if this bug still exists in a recent version of KDE, 3.5.8.