Compiling from a tarball errors with libz and zlib.h
DebianThis forum is for the discussion of Debian Linux.
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.
Compiling from a tarball errors with libz and zlib.h
I am an intermediate Linux user, I have used many distros over the years. That being said, I am trying to compile a program that doesn't have .deb package for it. I was able to get past the first few issues (dependencies/libraries), however it is now giving me another error on the compile. I am running wheezy and KDE is my GUI (the program is designed to work in KDE).
this is the error that I got from the logs:
configure:20944: checking for libz
configure:20981: gcc -o conftest -ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -I.
-D_REENTRANT conftest.c -L/usr/lib -lz >&5
In file included from /usr/include/zconf.h:447:0,
from /usr/include/zlib.h:34,
from configure:20962:
/usr/include/unistd.h:275:21: error: conflicting types for 'size_t'
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:147:0,
from /usr/include/zconf.h:424,
from /usr/include/zlib.h:34,
from configure:20962:
/usr/lib/gcc/x86_64-linux-gnu/4.7/include/stddef.h:213:23: note: previous declaration of 'size_t' was here
configure: In function 'main':
configure:20973:23: warning: comparison with string literal results in unspecified behavior [-Waddress]
configure:20984: $? = 1
configure: failed program was:
#line 20960 "configure"
#include "confdefs.h"
#include<zlib.h>
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
return (zlibVersion() == ZLIB_VERSION);
;
return 0;
}
configure:21014: error: not found. Check your installation and look into config.log
I am installing KMC -KDE Gui Mud Client. I don't care for the stock one and I've tried mudlet but I didn't like that one at all. TT++ is my goto but it is still very command line and I am looking for a more robust mud client.
Yes the zlib package was installed,however I installed a few other libraries that were related to zlib and now it worked fine.
But now I am stuck on QT. I am running QT4 it is looking for QT3. I did change the configure file to match the search string to do a call for QT4, however I am still pulling errors. I also installed all programs associated with QT and no luck, here are the error codes from this:
configure:21464: checking for Qt
configure: 21526: /usr/lib/qt3/include/qstyle.h
configure: 21526: /usr/lib/qt3/qstyle.h
configure: 21526: /usr/lib/qt/include/qstyle.h
configure: 21526: /usr/lib/qt/qstyle.h
configure: 21526: /usr/local/qt/include/qstyle.h
configure: 21526: /usr/include/qt/qstyle.h
configure: 21526: /usr/include/qstyle.h
configure: 21526: /usr/X11R6/include/X11/qt/qstyle.h
configure: 21526: /usr/X11R6/include/qt/qstyle.h
configure: 21526: /usr/X11R6/include/qt2/qstyle.h
configure: 21526: ./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
tried /usr/lib
tried /usr/local/qt/lib
tried /usr/lib
configure:21641: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-protot
ypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -INO -I. -DQT_THREAD_SUPPORT -D_REENTRANT
-LNONE -L/usr/lib conftest.cc -lqt-mt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE -lresolv -lpthread 1>&5
cc1plus: warning: command line option '-Wbad-function-cast' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++ [enabled by default]
conftest.cc:2:21: fatal error: qglobal.h: No such file or directory
compilation terminated.
configure:21644: $? = 1
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 >= 303)
#error 1
#endif
int main() {
(void)QStyleFactory::create(QString::null);
QCursor c(Qt::WhatsThisCursor);
return 0;
}
configure:21684: error: Qt (>= Qt 3.0.3) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Again thanks for helping.
---------- Post added 12-29-12 at 01:11 PM ----------
I am installing KMC -KDE Gui Mud Client. I don't care the stock one and tried mudlet but I didn't like that one at all. TT++ is my goto but it is still very command line and I am looking for a more robust mud client.
Yes the zlib package was installed,however I installed a few other libraries that were related to zlib and now it worked fine.
But now I am stuck on QT. I am running QT4 it is looking for QT3. I did change the configure file to match the search string to do a call for QT4, however I am still pulling errors. I also installed all programs associated with QT and no luck, here are the error codes from this:
configure:21464: checking for Qt
configure: 21526: /usr/lib/qt3/include/qstyle.h
configure: 21526: /usr/lib/qt3/qstyle.h
configure: 21526: /usr/lib/qt/include/qstyle.h
configure: 21526: /usr/lib/qt/qstyle.h
configure: 21526: /usr/local/qt/include/qstyle.h
configure: 21526: /usr/include/qt/qstyle.h
configure: 21526: /usr/include/qstyle.h
configure: 21526: /usr/X11R6/include/X11/qt/qstyle.h
configure: 21526: /usr/X11R6/include/qt/qstyle.h
configure: 21526: /usr/X11R6/include/qt2/qstyle.h
configure: 21526: ./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
tried /usr/lib
tried /usr/local/qt/lib
tried /usr/lib
configure:21641: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-protot
ypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -INO -I. -DQT_THREAD_SUPPORT -D_REENTRANT
-LNONE -L/usr/lib conftest.cc -lqt-mt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE -lresolv -lpthread 1>&5
cc1plus: warning: command line option '-Wbad-function-cast' is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++ [enabled by default]
conftest.cc:2:21: fatal error: qglobal.h: No such file or directory
compilation terminated.
configure:21644: $? = 1
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 >= 303)
#error 1
#endif
int main() {
(void)QStyleFactory::create(QString::null);
QCursor c(Qt::WhatsThisCursor);
return 0;
}
configure:21684: error: Qt (>= Qt 3.0.3) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Again thanks for helping.
Last edited by spaceycayce; 12-29-2012 at 01:16 PM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
KMC : KDE3 Gui Mud Client
The qt3 library 'libqt-mt-dev' is requiered.
Available for Debian Squeeze and Sid .. http://packages.debian.org/squeeze/libqt3-mt-dev
.. The 'libqt-mt-dev' dependencies might be a problem to solve.
Suggest : build the qt-x11-free (3:3.3.8b-7) packages for Wheezy : http://packages.debian.org/source/squeeze/qt-x11-free
I.e. 1) # apt-get build-dep qt-x11-free
2) $ apt-get -b source qt-x11-free=3:3.3.8b-7
But : The real stopper may not be qt3, but the required KDE3 development files.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
The files in /usr/include ... are development headers, so you can google which packages contain the missing header files. You can usually guess the package name close enough to find it with apt-cache search <string>. Debian mostly uses dev to specify development and usually begins with lib.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.