LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 12-28-2012, 03:22 PM   #1
spaceycayce
LQ Newbie
 
Registered: Sep 2005
Location: So Cal
Distribution: Debian Wheezy
Posts: 10

Rep: Reputation: 0
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

any help in configuring this would be appreciated

Thanks,
 
Old 12-29-2012, 11:09 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,285

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Debian ?


Is the package 'zlib1g-dev' installed ?

Which program are you trying to compile ? ?


.

Last edited by knudfl; 12-29-2012 at 11:10 AM.
 
Old 12-29-2012, 02:11 PM   #3
spaceycayce
LQ Newbie
 
Registered: Sep 2005
Location: So Cal
Distribution: Debian Wheezy
Posts: 10

Original Poster
Rep: Reputation: 0
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 02:16 PM.
 
Old 12-29-2012, 02:37 PM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963
Perhaps try with libqt4-qt3support and libqt4-dev-bin
 
Old 12-29-2012, 03:04 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,285

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
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.

.
 
Old 01-03-2013, 10:54 PM   #6
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,593

Rep: Reputation: 162Reputation: 162
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
errors installing peerguardian linux from tarball Culbert Linux - Newbie 1 01-26-2012 12:05 AM
[SOLVED] google chrome: zlib and nss errors Vlinux6 Linux - Software 1 02-11-2011 10:21 AM
compiling software and converting tarball hallve_revera Linux - Software 2 01-21-2009 03:22 AM
zlib data errors patrickdepingui Programming 1 06-03-2007 05:19 AM
no matching comp found: client zlib none, zlib@openssh.com lost connection jorge_ivan Linux - Networking 0 08-14-2006 08:09 PM


All times are GMT -5. The time now is 12:17 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration