LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2005, 12:24 AM   #1
jmanyeah
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
Error trying to install kjsplit


I am trying to install kjsplit on Kubuntu, but I'm getting an error while configuring. Here's the config.log



Code:
configure:635: checking host system type
configure:656: checking target system type
configure:674: checking build system type
configure:733: checking for a BSD compatible install
configure:790: checking for -p flag to install
configure:813: checking whether build environment is sane
configure:851: checking whether make sets ${MAKE}
configure:897: checking for working aclocal
configure:910: checking for working autoconf
configure:923: checking for working automake
configure:936: checking for working autoheader
configure:949: checking for working makeinfo
configure:1081: checking for gcc
configure:1194: checking whether the C compiler (gcc   ) works
configure:1210: gcc -o conftest     conftest.c  1>&5
configure:1236: checking whether the C compiler (gcc   ) is a cross-compiler
configure:1241: checking whether we are using GNU C
configure:1269: checking whether gcc accepts -g
configure:1302: checking how to run the C preprocessor
configure:1415: checking for c++
configure:1447: checking whether the C++ compiler (c++   ) works
configure:1468: rm -rf SunWS_cache; c++ -o conftest     conftest.C  1>&5
configure:1494: checking whether the C++ compiler (c++   ) is a cross-compiler
configure:1499: checking whether we are using GNU C++
configure:1527: checking whether c++ accepts -g
configure:2016: checking whether c++ supports -fno-exceptions
configure:2074: checking whether c++ supports -fno-check-new
configure:2132: checking whether c++ supports -fexceptions
configure:2649: checking how to run the C++ preprocessor
configure:2752: checking whether c++ supports -frepo
configure:3004: checking for ld used by GCC
configure:3072: checking if the linker (/usr/bin/ld) is GNU ld
configure:3089: checking for /usr/bin/ld option to reload object files
configure:3101: checking for BSD-compatible nm
configure:3139: checking whether ln -s works
configure:3160: checking how to recognise dependant libraries
configure:3481: checking for ranlib
configure:3548: checking for strip
configure:3720: checking for Cygwin environment
configure:3753: checking for mingw32 environment
ltconfig:678:checking for gcc option to produce PIC
ltconfig:687:checking that gcc PIC flag  -fPIC -DPIC works.
ltconfig:749: checking if gcc static flag -static works
ltconfig:780: finding the maximum length of command line arguments
ltconfig:@lineno@: result: 73729
ltconfig:883: checking if gcc supports -fno-rtti -fno-exceptions
ltconfig:884: gcc -c -O2   -fno-rtti -fno-exceptions -c conftest.c  conftest.c 1>&5
ltconfig:1423: checking if global_symbol_pipe works
ltconfig:1424: gcc -c -O2    conftest.c 1>&5
ltconfig:1427: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ 	]\([ABCDGISTW]\)[ 	][ 	]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
ltconfig:1479: gcc -o conftest -O2   -fno-builtin   conftest.c conftstm.o 1>&5
ltconfig:1863: checking for dlfcn.h
ltconfig:1902: checking whether a program can dlopen itself
ltconfig:1976: checking whether a statically linked program can dlopen itself
c++ -E conftest.cc
ltconfig:678:checking for c++ option to produce PIC
ltconfig:687:checking that c++ PIC flag -fPIC -DPIC works.
ltconfig:697: c++ -c -O2 -fno-exceptions -fno-check-new -fPIC -DPIC -DPIC  conftest.cc 1>&5
ltconfig:749: checking if c++ static flag -static works
ltconfig:758: c++ -o conftest -O2 -fno-exceptions -fno-check-new   -static conftest.cc  1>&5
ltconfig:780: finding the maximum length of command line arguments
ltconfig:@lineno@: result: 73729
ltconfig:883: checking if c++ supports -fno-rtti -fno-exceptions
ltconfig:884: c++ -c -O2 -fno-exceptions -fno-check-new -fno-rtti -fno-exceptions -c conftest.cc  conftest.cc 1>&5
ltconfig:1423: checking if global_symbol_pipe works
ltconfig:1424: c++ -c -O2 -fno-exceptions -fno-check-new  conftest.cc 1>&5
ltconfig:1427: eval "/usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ 	]\([ABCDGISTW]\)[ 	][ 	]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm"
ltconfig:1479: c++ -o conftest -O2 -fno-exceptions -fno-check-new -fno-builtin -fno-rtti -fno-exceptions   conftest.cc conftstm.o 1>&5
ltconfig:1863: checking for dlfcn.h
ltconfig:1902: checking whether a program can dlopen itself
ltconfig:1976: checking whether a statically linked program can dlopen itself
configure:3900: checking for object suffix
configure:3906: gcc -c -O2    conftest.c 1>&5
configure:3926: checking for executable suffix
configure:3936: gcc -o conftest -O2     conftest.c  1>&5
configure:4068: checking for msgfmt
configure:4102: checking for gmsgfmt
configure:4147: checking for xgettext
configure:4262: checking for main in -lutil
configure:4277: gcc -o conftest -O2     conftest.c -lutil   1>&5
configure:4298: checking for main in -lcompat
configure:4313: gcc -o conftest -O2     conftest.c -lcompat   1>&5
/usr/bin/ld: cannot find -lcompat
collect2: ld returned 1 exit status
configure: failed program was:
#line 4306 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:4335: checking for crypt in -lcrypt
configure:4354: gcc -o conftest -O2     conftest.c -lcrypt   1>&5
configure:4429: checking for socklen_t
configure:4459: c++ -c -O2 -fno-exceptions -fno-check-new  conftest.C 1>&5
configure:4526: checking for dnet_ntoa in -ldnet
configure:4545: gcc -o conftest -O2     conftest.c -ldnet   1>&5
/usr/bin/ld: cannot find -ldnet
collect2: ld returned 1 exit status
configure: failed program was:
#line 4534 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
configure:4567: checking for dnet_ntoa in -ldnet_stub
configure:4586: gcc -o conftest -O2     conftest.c -ldnet_stub   1>&5
/usr/bin/ld: cannot find -ldnet_stub
collect2: ld returned 1 exit status
configure: failed program was:
#line 4575 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
configure:4608: checking for inet_ntoa
configure:4636: gcc -o conftest -O2     conftest.c  1>&5
configure:4698: checking for connect
configure:4726: gcc -o conftest -O2     conftest.c  1>&5
configure:4789: checking for remove
configure:4817: gcc -o conftest -O2     conftest.c  1>&5
configure:4881: checking for shmat
configure:4909: gcc -o conftest -O2     conftest.c  1>&5
configure:4973: checking for res_init
configure:5001: gcc -o conftest -O2     conftest.c  1>&5
/tmp/cc4j7ud9.o: In function `main':
conftest.c:(.text+0xd): undefined reference to `res_init'
collect2: ld returned 1 exit status
configure: failed program was:
#line 4978 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char res_init(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char res_init();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_res_init) || defined (__stub___res_init)
choke me
#else
res_init();
#endif

; return 0; }
configure:5036: gcc -o conftest -O2     conftest.c   -lresolv 1>&5
configure:5061: checking for killpg in -lucb
configure:5080: gcc -o conftest -O2     conftest.c -lucb   1>&5
/usr/bin/ld: cannot find -lucb
collect2: ld returned 1 exit status
configure: failed program was:
#line 5069 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char killpg();

int main() {
killpg()
; return 0; }
configure:5149: checking size of int
configure:5168: gcc -o conftest -O2     conftest.c  1>&5
configure: In function 'main':
configure:5162: warning: incompatible implicit declaration of built-in function 'exit'
configure:5187: checking size of long
configure:5206: gcc -o conftest -O2     conftest.c  1>&5
configure: In function 'main':
configure:5200: warning: incompatible implicit declaration of built-in function 'exit'
configure:5225: checking size of char *
configure:5244: gcc -o conftest -O2     conftest.c  1>&5
configure: In function 'main':
configure:5238: warning: incompatible implicit declaration of built-in function 'exit'
configure:5263: checking size of char
configure:5282: gcc -o conftest -O2     conftest.c  1>&5
configure: In function 'main':
configure:5276: warning: incompatible implicit declaration of built-in function 'exit'
configure:5303: checking for dlopen in -ldl
configure:5347: checking for shl_unload in -ldld
configure:5366: gcc -o conftest -O2     conftest.c -ldld   1>&5
/usr/bin/ld: cannot find -ldld
collect2: ld returned 1 exit status
configure: failed program was:
#line 5355 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char shl_unload();

int main() {
shl_unload()
; return 0; }
configure:5395: checking for extra includes
configure:5426: checking for extra libs
configure:5460: checking for libz
configure:5486: gcc -o conftest -O2       conftest.c   -lz  -lresolv 1>&5
configure:5539: checking for X
configure:5578: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:5654: gcc -o conftest -O2     conftest.c -lXt  1>&5
configure:5828: checking for IceConnectionNumber in -lICE
configure:5847: gcc -o conftest -O2     -L/usr/X11R6/lib conftest.c -lICE  -lresolv  1>&5
configure:5876: checking for libXext
configure:5902: gcc -o conftest -O2     -L/usr/X11R6/lib  conftest.c -lXext -lX11  -lresolv 1>&5
configure:5929: checking for Xinerama
configure:6041: checking for pthread_create in -lpthread
configure:6060: gcc -o conftest -O2     conftest.c -lpthread   1>&5
configure:6336: checking for libpng
configure:6370: gcc -o conftest -O2   -I.   -D_REENTRANT  conftest.c  -L/usr/X11R6/lib  -lpng -lz -lm -lX11  -lresolv 1>&5
configure:6402: checking for libjpeg6b
configure:6440: gcc -o conftest -O2   -I.   -D_REENTRANT  conftest.c -L/usr/X11R6/lib  -ljpeg6b -lm 1>&5
/usr/bin/ld: cannot find -ljpeg6b
collect2: ld returned 1 exit status
configure: failed program was:
#line 6419 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
struct jpeg_decompress_struct;
typedef struct jpeg_decompress_struct * j_decompress_ptr;
typedef int size_t;
#ifdef __cplusplus
extern "C" {
#endif
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
                                    int version, size_t structsize);
#ifdef __cplusplus
}
#endif
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */

int main() {
jpeg_CreateDecompress(0L, 0, 0);
; return 0; }
configure:6463: checking for libjpeg
configure:6501: gcc -o conftest -O2   -I.   -D_REENTRANT  conftest.c -L/usr/X11R6/lib  -ljpeg -lm 1>&5
configure: 6541: /usr/include/jpeglib.h
taking that
configure:6704: checking for Qt
configure: 6768: /usr/lib/qt3/include/qstyle.h
configure: 6768: /usr/lib/qt3/qstyle.h
configure: 6768: /usr/lib/qt/include/qstyle.h
configure: 6768: /usr/lib/qt/qstyle.h
configure: 6768: /usr/local/qt/include/qstyle.h
configure: 6768: /usr/include/qt/qstyle.h
configure: 6768: /usr/include/qstyle.h
configure: 6768: /usr/X11R6/include/X11/qt/qstyle.h
configure: 6768: /usr/X11R6/include/qt/qstyle.h
configure: 6768: /usr/X11R6/include/qt2/qstyle.h
configure: 6768: ./qstyle.h
tried NO
tried /usr/lib/qt3/lib
tried /usr/lib/qt3
tried /usr/lib/qt/lib
tried /usr/lib/qt
tried /usr/X11R6/lib
configure:6880: rm -rf SunWS_cache; c++ -o conftest -O2 -fno-exceptions -fno-check-new -INO -I.  -DQT_THREAD_SUPPORT  -D_REENTRANT  -L/usr/lib -L/usr/X11R6/lib   conftest.C  -lqt-mt -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lresolv -lpthread 1>&5
conftest.C:2:21: error: qglobal.h: No such file or directory
conftest.C:3:26: error: qapplication.h: No such file or directory
conftest.C:4:21: error: qcursor.h: No such file or directory
conftest.C:5:27: error: qstylefactory.h: No such file or directory
conftest.C:6:34: error: private/qucomextra_p.h: No such file or directory
conftest.C:8:2: error: #error 1
conftest.C: In function 'int main()':
conftest.C:12: error: 'QStyleFactory' has not been declared
conftest.C:12: error: 'QString' has not been declared
conftest.C:12: error: 'null' was not declared in this scope
conftest.C:12: error: 'create' was not declared in this scope
conftest.C:13: error: 'QCursor' was not declared in this scope
conftest.C:13: error: expected `;' before 'c'
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qcursor.h>
#include <qstylefactory.h>
#include <private/qucomextra_p.h>
#if ! (QT_VERSION >= 302)
#error 1
#endif

int main() {
    (void)QStyleFactory::create(QString::null);
    QCursor c(Qt::WhatsThisCursor);
    return 0;
}
I'm a true newbie. Just figured out how to install a non-debian packaged program. Yay! But now it won't work. Go figure. It looks like I'm missing some libraries. Any help is much appreciated.

Jeremy
 
Old 11-07-2005, 03:08 PM   #2
Darwish
Member
 
Registered: Jun 2005
Location: Egypt (North Africa)
Distribution: Debian Sarge
Posts: 35

Rep: Reputation: 15
install the following package:
libqt3-headers
"apt-get install libqt3-headers"
 
Old 11-07-2005, 03:18 PM   #3
Darwish
Member
 
Registered: Jun 2005
Location: Egypt (North Africa)
Distribution: Debian Sarge
Posts: 35

Rep: Reputation: 15
Forgot to say that you should always stick with your system package management
(in your case, it's debian packages)

*** Don't install a package which is fount as a ubuntu package ***

always check ubuntu packages first at : http://packages.ubuntu.com/
u'll find at the middle of your page search packages.., search here first !!

Good luck, ...
 
Old 11-07-2005, 10:32 PM   #4
jmanyeah
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the tip, but libqt3 is already installed. I even reinstalled it, but I'm still getting the same message:

"checking for Qt... configure: error: Qt (>= Qt 3.0.2) (headers and libraries) not found. Please check your installation!"

Doesn't make much sense to me
 
Old 11-08-2005, 06:06 AM   #5
Darwish
Member
 
Registered: Jun 2005
Location: Egypt (North Africa)
Distribution: Debian Sarge
Posts: 35

Rep: Reputation: 15
If you are a programmer, u'll know that there must be something called header/dev files to for each library to compile a program using it
u may have libqt3 "library", but u don't have libqt3 "dev/header files"

so install libqt3-headers and libqt3-compat-headers

if it failed too, send the log again
 
Old 11-08-2005, 05:24 PM   #6
Sungbob
LQ Newbie
 
Registered: Apr 2005
Location: Rhode Island
Distribution: Gentoo & Ubuntu
Posts: 1

Rep: Reputation: 0
Talking hi hi

Hi,
Well the problem is solved, had to manually point ./configure for kjsplit qt libs/headers.
This was the command used
Quote:
./configure --with-qt-dir="/usr/lib/qt3" --with-qt-libraries="/usr/lib/qt3" --with-qt-includes="/usr/include/qt3/"
hope this helps others in the future if there installing kjsplit for ubuntu. On another note I don't really think installation of source packages are really intended just for the programmers, comments like
Quote:
If you are a programmer, u'll know that there must be something called header/dev files to for each library to compile a program using it
lead people to believe GNU/linux is only usable by programmers, and you also don't need to be a programmer to know that you need headers/dev files to compile a program, when it blatantly tells you in the error log. Anyhow I don't mean to flame anyone, I just wanna clear up any misunderstandings about GNU/linux.

TaTa and Enjoy

Bob

P.S. no I am not a programmer. However it took some time to figure out which options to add to ./configure to make it configure properly. Perhaps a better tutorial on how to trouble shoot from source installations is needed.

Last edited by Sungbob; 11-08-2005 at 07:17 PM.
 
Old 11-09-2005, 08:05 PM   #7
Darwish
Member
 
Registered: Jun 2005
Location: Egypt (North Africa)
Distribution: Debian Sarge
Posts: 35

Rep: Reputation: 15
congratulations for ur working program...
I don think that any normal person who is not a programmer or a linux knowlegeable user know the difference between
a library and its header files ..
Then i think compiling programs is not for normal people..., (I won't let my grandma compile a program , I won't
even let her use linux (Apple ease is unbeatable)
Linux is not for programmers only of course, but it also for people who does not have problems reading man pages, info , README and Howtos , Google ...

The out of the box linux didn come yet, and i hope it will not come.. what's the joy of *nix then if it was like mac or windows

By the way , I said "if u r a programmer" only cuz iam a C/C++ programmer , without bad intensions
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install error: fatal error attempting to install <pkgpath & name> gmartin Slackware - Installation 24 02-17-2005 04:26 PM
Kernel 2.6.7 install error, initrd-2.6.7.img error jjorloff1 Linux - General 3 09-15-2004 12:15 AM
9.1 install error (ext2 -fs error) plz advise :) sirpelidor Slackware 1 12-26-2003 10:32 AM
KDE 3.1.2 Install Error (With Konstruct) and Visual Desktop Error KneeLess Linux - Software 0 06-04-2003 03:41 PM
mysql installation error (make install error) jolly_good2000 Linux - Software 1 11-14-2002 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration