Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
for quite a long duration now I have had problems with my C++ compiler (g++ version 3.6.6). Here's the latest error I receive when compiling the mythtv plugins:
Code:
bash-3.00# make
cd mythcontrols && make -f Makefile
make[1]: Entering directory `/home/zax/Desktop/mythplugins-0.19/mythcontrols'
cd mythcontrols && make -f Makefile
make[2]: Entering directory `/home/zax/Desktop/mythplugins-0.19/mythcontrols/mythcontrols'
ccache distcc g++ -c -pipe -march=pentiumpro -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT -DPIC -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -DUSING_DBOX2 -DHAVE_DVDNAV -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/usr/share/qt/mkspecs/default -I. -I/usr/local/include -I/usr/kde/3.3/include -I/usr/local/include -I/usr/X11R6/include -I/usr/include -o action.o action.cpp
ccache distcc g++ -c -pipe -march=pentiumpro -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT -DPIC -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -DUSING_DBOX2 -DHAVE_DVDNAV -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/usr/share/qt/mkspecs/default -I. -I/usr/local/include -I/usr/kde/3.3/include -I/usr/local/include -I/usr/X11R6/include -I/usr/include -o actionset.o actionset.cpp
ccache distcc g++ -c -pipe -march=pentiumpro -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT -DPIC -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DMMX -Di386 -DUSING_DBOX2 -DHAVE_DVDNAV -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/usr/share/qt/mkspecs/default -I. -I/usr/local/include -I/usr/kde/3.3/include -I/usr/local/include -I/usr/X11R6/include -I/usr/include -o keybindings.o keybindings.cpp
distcc[29674] (dcc_get_hostlist) Warning: no hostlist is set; can't distribute work
distcc[29674] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc[29674] ERROR: compile /root/.ccache/keybinding.tmp.ZAXCOMP.29670.ii on localhost failed
keybindings.cpp: In member function `void KeyBindings::commitAction(const
ActionID&)':
keybindings.cpp:124: error: `ClearKey' undeclared (first use this function)
keybindings.cpp:124: error: (Each undeclared identifier is reported only once
for each function it appears in.)
keybindings.cpp:127: error: `BindKey' undeclared (first use this function)
keybindings.cpp: In member function `void KeyBindings::commitJumppoint(const
ActionID&)':
keybindings.cpp:154: error: `ClearJump' undeclared (first use this function)
keybindings.cpp:157: error: `BindJump' undeclared (first use this function)
make[2]: *** [keybindings.o] Error 1
make[2]: Leaving directory `/home/zax/Desktop/mythplugins-0.19/mythcontrols/mythcontrols'
make[1]: *** [sub-mythcontrols] Error 2
make[1]: Leaving directory `/home/zax/Desktop/mythplugins-0.19/mythcontrols'
make: *** [sub-mythcontrols] Error 2
I can supply more errors that I receive (most likely stemming from my gcc) if need be. However, if you are experienced in writing or compiling c++ and can tell me what might be wrong, let me know! Thanks.
it's far more than just mythtv, this is a problem with my compiler... here's another installment of this drama:
Code:
zax@ZAXCOMP:~/Desktop/gnomad2-2.8.3$ sudo ./configure
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GN... yes
checking for gtk+-2.0 >= 2.6.0... checking for TAG... Package id3tag was not found in the pkg-config search path.
Perhaps you should add the directory containing `id3tag.pc'
to the PKG_CONFIG_PATH environment variable
No package 'id3tag' found
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
once again there seems to be a problem with my cpp library. any hints on how to fix this would be great
it seems that the config.log is far to long to post, so if any part of it may be useful let me know
I'd suggest that you take a look at the config.log and see what the exact error is (it's usually towards the end of the file). Also, can you try to compile this simple C++ program:
Code:
#include <iostream>
using namespace std;
int main(void)
{
cout << "Hello, world." << endl;
return 0;
}
This will produce an executable that will print "Hello, world." on the console when run. Save the code into a file called prog1.cpp and compile with:
Code:
g++ prog1.cpp -o prog1
Does it work with no errors? If not, what are the errors?
Also, there's no such g++ version as 3.6.6 -- did you mean 3.3.6? What version of Slackware are you running on?
bash-3.00# make
make -C driver all
make[1]: Entering directory `/home/zax/Programs/ivtv-0.6.2/driver'
created ivtv-svnversion.h
make -C /lib/modules/2.6.16.19/build M=/home/zax/Programs/ivtv-0.6.2/driver modules
make[2]: Entering directory `/usr/src/linux-2.6.16.19'
CC [M] /home/zax/Programs/ivtv-0.6.2/driver/ivtv-osd.o
CC [M] /home/zax/Programs/ivtv-0.6.2/driver/ivtv-queue.o
CC [M] /home/zax/Programs/ivtv-0.6.2/driver/ivtv-driver.o
/home/zax/Programs/ivtv-0.6.2/driver/ivtv-driver.c: In function `ivtv_parse_std':
/home/zax/Programs/ivtv-0.6.2/driver/ivtv-driver.c:612: error: `V4L2_STD_NTSC_M_KR' undeclared (first use in this function)
/home/zax/Programs/ivtv-0.6.2/driver/ivtv-driver.c:612: error: (Each undeclared identifier is reported only once
/home/zax/Programs/ivtv-0.6.2/driver/ivtv-driver.c:612: error: for each function it appears in.)
make[3]: *** [/home/zax/Programs/ivtv-0.6.2/driver/ivtv-driver.o] Error 1
make[2]: *** [_module_/home/zax/Programs/ivtv-0.6.2/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.16.19'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/zax/Programs/ivtv-0.6.2/driver'
make: *** [all] Error 2
bash-3.00#
this may be different though... perhaps my v4l is not properly compiled into my kernel
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.