LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-04-2008, 01:10 PM   #1
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 260

Rep: Reputation: 29
I am getting errors from the "make" command


I am trying to install this software and the ./configure went smoothly but the "make" command is giving me several warnings and a few errors which I am not sure how to fix
this is the output of them
Code:
/opt/qt/include/qstring.h: In member function ‘char QChar::latin1() const’:
/opt/qt/include/qstring.h:194: warning: conversion to ‘char’ from ‘int’ may alter its value
/opt/qt/include/qstring.h: In member function ‘void QChar::setCell(uchar)’:
/opt/qt/include/qstring.h:219: warning: conversion to ‘ushort’ from ‘int’ may alter its value
/opt/qt/include/qstring.h: In member function ‘void QChar::setRow(uchar)’:
/opt/qt/include/qstring.h:220: warning: conversion to ‘ushort’ from ‘int’ may alter its value
/opt/qt/include/qstring.h: In constructor ‘QChar::QChar(uchar, uchar)’:
/opt/qt/include/qstring.h:264: warning: conversion to ‘ushort’ from ‘int’ may alter its value
/opt/qt/include/qstring.h: In constructor ‘QStringData::QStringData(QChar*, uint, uint)’:
/opt/qt/include/qstring.h:362: warning: conversion to ‘unsigned int:30’ from ‘uint’ may alter its value
/opt/qt/include/qstring.h:362: warning: conversion to ‘unsigned int:30’ from ‘uint’ may alter its value
In file included from /opt/qt/include/qobject.h:45,
                 from /opt/qt/include/qwidget.h:43,
                 from /opt/qt/include/qdialog.h:42,
                 from _editaddmul.h:14,
                 from editaddmul.h:3,
                 from editaddmul.cpp:1:
/opt/qt/include/qevent.h: In member function ‘void QDropEvent::setAction(QDropEvent::Action)’:
/opt/qt/include/qevent.h:520: warning: conversion to ‘unsigned char’ from ‘uint’ may alter its value
In file included from /opt/qt/include/qwidget.h:49,
                 from /opt/qt/include/qdialog.h:42,
                 from _editaddmul.h:14,
                 from editaddmul.h:3,
                 from editaddmul.cpp:1:
/opt/qt/include/qsizepolicy.h: In member function ‘void QSizePolicy::transpose()’:
/opt/qt/include/qsizepolicy.h:122: warning: conversion to ‘uchar’ from ‘uint’ may alter its value
/opt/qt/include/qsizepolicy.h:122: warning: conversion to ‘uchar’ from ‘uint’ may alter its value
editaddmul.cpp: In member function ‘virtual void EditAddMul::OkSlot()’:
editaddmul.cpp:52: error: ‘atof’ was not declared in this scope
editaddmul.cpp:54: error: ‘atof’ was not declared in this scope
make[3]: *** [editaddmul.o] Error 1
make[3]: Leaving directory `/home/link/Docs/Builds/Astro/skylendar-1.7.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/link/Docs/Builds/Astro/skylendar-1.7.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/link/Docs/Builds/Astro/skylendar-1.7.1'
make: *** [all] Error 2
 
Old 06-04-2008, 02:20 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Try to run ./configure in the /src directory.
 
Old 06-04-2008, 03:07 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
"skylendar-1.7.1"
Compiles with no problems on Slackware 12 and PCLinuxOS 2007 both with Qt-3.3.8
Is it a genuine Arch Qt, you are using ?? Which version ?
It could also be a help showing us 5 lines above where the errors begin.
Sometimes it is possible with 'make | less'
(You could be missing a header or 2)

Probably not possible to run configure elsewhere than the top directory.

Rgds
 
Old 06-04-2008, 04:52 PM   #4
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 260

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by knudfl View Post
"skylendar-1.7.1"
Compiles with no problems on Slackware 12 and PCLinuxOS 2007 both with Qt-3.3.8
Is it a genuine Arch Qt, you are using ?? Which version ?
It could also be a help showing us 5 lines above where the errors begin.
Sometimes it is possible with 'make | less'
(You could be missing a header or 2)

Probably not possible to run configure elsewhere than the top directory.

Rgds

Not sure what you mean by "Arch Qt, you are using ?? Which version ?" I just know that I am using 64 bit Arch
here is the whole thing


Makefile:847: warning: overriding commands for target `clean-bcheck'
Makefile:825: warning: ignoring old commands for target `clean-bcheck'
Makefile:852: warning: overriding commands for target `bcheck-am'
Makefile:830: warning: ignoring old commands for target `bcheck-am'
Makefile:869: warning: overriding commands for target `clean-bcheck'
Makefile:847: warning: ignoring old commands for target `clean-bcheck'
Makefile:874: warning: overriding commands for target `bcheck-am'
Makefile:852: warning: ignoring old commands for target `bcheck-am'
Makefile:906: warning: overriding commands for target `clean-bcheck'
Makefile:869: warning: ignoring old commands for target `clean-bcheck'
Makefile:911: warning: overriding commands for target `bcheck-am'
Makefile:874: warning: ignoring old commands for target `bcheck-am'
make all-recursive
make[1]: Entering directory `/home/link/Docs/Builds/Astro/skylendar-1.7.1'
Makefile:847: warning: overriding commands for target `clean-bcheck'
Makefile:825: warning: ignoring old commands for target `clean-bcheck'
Makefile:852: warning: overriding commands for target `bcheck-am'
Makefile:830: warning: ignoring old commands for target `bcheck-am'
Makefile:869: warning: overriding commands for target `clean-bcheck'
Makefile:847: warning: ignoring old commands for target `clean-bcheck'
Makefile:874: warning: overriding commands for target `bcheck-am'
Makefile:852: warning: ignoring old commands for target `bcheck-am'
Makefile:906: warning: overriding commands for target `clean-bcheck'
Makefile:869: warning: ignoring old commands for target `clean-bcheck'
Makefile:911: warning: overriding commands for target `bcheck-am'
Makefile:874: warning: ignoring old commands for target `bcheck-am'
Making all in src
make[2]: Entering directory `/home/link/Docs/Builds/Astro/skylendar-1.7.1/src'
Making all in pics
make[3]: Entering directory `/home/link/Docs/Builds/Astro/skylendar-1.7.1/src/pics'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/link/Docs/Builds/Astro/skylendar-1.7.1/src/pics'
make[3]: Entering directory `/home/link/Docs/Builds/Astro/skylendar-1.7.1/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/src/pics -I/opt/kde/include -I/opt/qt/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -MT editaddmul.o -MD -MP -MF ".deps/editaddmul.Tpo" -c -o editaddmul.o editaddmul.cpp; \
then mv -f ".deps/editaddmul.Tpo" ".deps/editaddmul.Po"; else rm -f ".deps/editaddmul.Tpo"; exit 1; fi
In file included from /opt/qt/include/qvariant.h:42,
from _editaddmul.h:13,
from editaddmul.h:3,
from editaddmul.cpp:1:
/opt/qt/include/qstring.h: In member function ‘char QChar::latin1() const’:
/opt/qt/include/qstring.h:194: warning: conversion to ‘char’ from ‘int’ may alter its value
/opt/qt/include/qstring.h: In member function ‘void QChar::setCell(uchar)’:
/opt/qt/include/qstring.h:219: warning: conversion to ‘ushort’ from ‘int’ may alter its value
/opt/qt/include/qstring.h: In member function ‘void QChar::setRow(uchar)’:
/opt/qt/include/qstring.h:220: warning: conversion to ‘ushort’ from ‘int’ may alter its value
/opt/qt/include/qstring.h: In constructor ‘QChar::QChar(uchar, uchar)’:
/opt/qt/include/qstring.h:264: warning: conversion to ‘ushort’ from ‘int’ may alter its value
/opt/qt/include/qstring.h: In constructor ‘QStringData::QStringData(QChar*, uint, uint)’:
/opt/qt/include/qstring.h:362: warning: conversion to ‘unsigned int:30’ from ‘uint’ may alter its value
/opt/qt/include/qstring.h:362: warning: conversion to ‘unsigned int:30’ from ‘uint’ may alter its value
In file included from /opt/qt/include/qobject.h:45,
from /opt/qt/include/qwidget.h:43,
from /opt/qt/include/qdialog.h:42,
from _editaddmul.h:14,
from editaddmul.h:3,
from editaddmul.cpp:1:
/opt/qt/include/qevent.h: In member function ‘void QDropEvent::setAction(QDropEvent::Action)’:
/opt/qt/include/qevent.h:520: warning: conversion to ‘unsigned char’ from ‘uint’ may alter its value
In file included from /opt/qt/include/qwidget.h:49,
from /opt/qt/include/qdialog.h:42,
from _editaddmul.h:14,
from editaddmul.h:3,
from editaddmul.cpp:1:
/opt/qt/include/qsizepolicy.h: In member function ‘void QSizePolicy::transpose()’:
/opt/qt/include/qsizepolicy.h:122: warning: conversion to ‘uchar’ from ‘uint’ may alter its value
/opt/qt/include/qsizepolicy.h:122: warning: conversion to ‘uchar’ from ‘uint’ may alter its value
editaddmul.cpp: In member function ‘virtual void EditAddMul::OkSlot()’:
editaddmul.cpp:52: error: ‘atof’ was not declared in this scope
editaddmul.cpp:54: error: ‘atof’ was not declared in this scope
make[3]: *** [editaddmul.o] Error 1
make[3]: Leaving directory `/home/link/Docs/Builds/Astro/skylendar-1.7.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/link/Docs/Builds/Astro/skylendar-1.7.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/link/Docs/Builds/Astro/skylendar-1.7.1'
make: *** [all] Error 2
 
Old 06-05-2008, 03:02 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Well, the Qt used, could be a non Arch package, or self compiled.
To know version try 'moc -v' (answer here = Qt Meta Object Compiler version 26 (Qt 3.3.8)
Or se your list of installed packages if available.
'gcc --version' (gcc (GCC) 4.1.1 20060724 (prerelease) (4.1.1-...)
or the long version : 'gcc -v' (will supply a long answer)
'g++ -v' and 'g++ --version' (my version, g++ (GCC) 4.1.1 20060724)
g++ is used together with Qt, so probably important.

Rgds

Last edited by knudfl; 06-05-2008 at 11:44 AM.
 
Old 06-05-2008, 12:11 PM   #6
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 260

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by knudfl View Post
Well, the Qt used, could be a non Arch package, or self compiled.
To know version try 'moc -v' (answer here = Qt Meta Object Compiler version 26 (Qt 3.3.8)
Or se your list of installed packages if available.
'gcc --version' (gcc (GCC) 4.1.1 20060724 (prerelease) (4.1.1-...)
or the long version : 'gcc -v' (will supply a long answer)
'g++ -v' and 'g++ --version' (my version, g++ (GCC) 4.1.1 20060724)
g++ is used together with Qt, so probably important.

Rgds
ok the output of this command " moc -v" tells me " Qt Meta Object Compiler version 59 (Qt 4.3.4)" so I guess that I need to downgrade my qt or what do I need to do
 
Old 06-05-2008, 03:26 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
I wouldn't have guessed that, because configure asks for > qt-3.0 > qt-4.0
meaning a version with a lower number than 4.0
I was sure the reason being gcc-4.3, g++-4.3, (compiles fine with 4.2.3,
Ubuntu 8.04) You didn't mention gcc, g++ ??? versions ?
If you only have kde 4, you will probably also get problems with libkde4-devel.
Its headers are used to build ... later in the compiling, than you have seen.

Solutions, downgrade if you can, carefull, can ruin your system.
Or run it on a small partition with a small distro e.g. PCLosMiniMe2008.
 
Old 06-05-2008, 04:57 PM   #8
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 260

Original Poster
Rep: Reputation: 29
I have gcc (GCC) 4.3.0 so in order for me to compile and install this softawar that I should downgrade
 
Old 06-06-2008, 03:33 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Not necessary to downgrade gcc until it is proven that gcc-4.3,
g++-4 is not working.
The real issue (first) is Qt4 versus Qt3, and probably libkde4-dev.

I wouldn't touch it, its difficult to do.
 
Old 06-06-2008, 05:45 PM   #10
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 260

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by knudfl View Post
Not necessary to downgrade gcc until it is proven that gcc-4.3,
g++-4 is not working.
The real issue (first) is Qt4 versus Qt3, and probably libkde4-dev.

I wouldn't touch it, its difficult to do.
so can I just reinstall QT3 and uninstall QT4? because I am having allot of issues trying to compile different files so if it is possible to do this I would like to know how
 
Old 06-06-2008, 07:36 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Depends on which desktop, you are using, if kde4, no desktop without qt-4.
If at all using kde, install another as a safe fallback, e.g. xfce
to use while switching qt.
 
Old 06-06-2008, 08:44 PM   #12
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
If you have qt4 installed you probably need it (it's not a tipical package that you install by hand, which means that it's probably installed as a dependency for something else).

In gentoo you can have qt-3.x and qt-4.x installed alongside without any problem. I don't have arch installed so I can't tell you how easy or difficult this can be on arch. But on a quick google I found this:

http://www.archlinux.org/news/380/

Quote:
At least until the final release of KDE4 there are plenty of packages which still use version 3 of QT. Therefore a new package called qt3 was introduced.
If I understand correctly, qt-4.x is named as "qt", and qt-3.x is named "qt3". So, you want to install qt3. It should be installable with qt4, otherwise, arch has a serious problem, because kde4 is not really ready for the end user and lots of programs NEED qt-3.x and will not compile against qt-4.x.

Another possibility is that you already have both installed. In that case, the problem is specifying *what* libs do you want to use. For that, you might need to check the correct path for the qt3 libraries, and you might need to pass it as an argument to your program on the ./configure stage. Check ./configure --help to see the available options
 
Old 06-06-2008, 09:17 PM   #13
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 260

Original Poster
Rep: Reputation: 29
Thank you I will check into thoughs
 
  


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
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 03:33 PM
"make headers_check" gives errors during "5.5.1 Installation of Linux API headers " void_man() Linux From Scratch 3 09-26-2007 10:16 PM
Make "ls" command show colors without "--color=always" switch SharpyWarpy Linux - General 4 07-17-2007 12:00 AM
Constant errors during "make" or "make install" with SUSE 10.1 Alpha 4 TehFlyingDutchman Linux - Software 3 12-30-2005 07:25 PM
Why the errors occur after I used "make" command? Xiangbuilder Linux - Hardware 0 04-03-2003 02:12 AM


All times are GMT -5. The time now is 01:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration