Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.