CentOS 5 :: Unable To GCC Compile Any Stuff - Random Errors
Jan 24, 2009
I am new to CENTOS (5.2) and more importantly new to linux. Any time I try to gcc compile something, it always throws random errors. I yum installed development-tools which is what I have seen other threads suggest but that did not solve the issue. I still get the same errors. I cannot find a common error among the many things I have attempted to compile.
Here is my most recent file for an example made when trying to compile up-imapproxy :
gcc -g -O2 -I. -I./include -c -o src/icc.o src/icc.c
gcc -g -O2 -I. -I./include -c -o src/main.o src/main.c
src/main.c: In function "int main(int, char**)":
src/main.c:618: error: invalid conversion from *void* to *void* (*)(void*)
src/main.c:618: error: initializing argument 3 of int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*)
src/main.c:646: error: invalid conversion from int* to socklen_t*
src/main.c:646: error: initializing argument 3 of int accept(int, sockaddr*,socklen_t*)
src/main.c:675: error: invalid conversion from void* to void* (*)(void*)
src/main.c:675: error: initializing argument 3 of int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*)
make: *** [src/main.o] Error 1
View 3 Replies
ADVERTISEMENT
Mar 26, 2011
i'm unable to compile the v4linux.
[az@server v4l-dvb-abd3aac6644e]$ uname -a
Linux server.home 2.6.18-194.17.1.el5.centos.plus #1 SMP Thu Sep 30
19:27:35 EDT 2010 i686 athlon i386 GNU/Linux
rpm -qa |grep kernel*
[Code]....
View 19 Replies
View Related
Aug 18, 2010
Because I have Windows and two different Linux distributions installed, I have two GRUBs on my system. The first one that starts when I boot the computer is Linux Mint's GRUB. It can run Mint, Windows, or Kubuntu's GRUB, which in turn can run Kubuntu. Right now I mostly use Kubuntu, but I haven't changed the setup of the GRUBs because it worked. Until yesterday, when Mint's GRUB worked well, but Kubuntu's GRUB gave me an error while trying to run Kubuntu. I restarted the computer a few times, and it happened every time. Sometimes the errors I got were 16 and sometimes 18. Occasionally, even the first GRUB had errors.
I thought that maybe something's wrong with my hard disk, so I booted from a Kubuntu Live CD and did a fsck, which showed no errors at all (except that it's rather suspicious, because it checked the partition instantly, is it supposed to work like that?). Then, I reinstalled Kubuntu's GRUB and rebooted the computer. This time, everything went well! I even rebooted it later once, and didn't get any errors.
Today, I got up and wanted to use the computer, and it gave me the same errors again. :O I rebooted a few times, and it was just like before. Then, I booted from the Live CD, there I didn't start the system, but I picked "boot from hard drive" and it miraculously worked. This is weird. What could possibly cause these errors? I haven't even installed or updated anything recently.
View 9 Replies
View Related
Jan 28, 2011
I am running a headless Ubuntu 10.04 server with the 2.6.32-28-generic kernel. For what I can figure out no single direct cause I get a high load average and the following syslog output at random intervals. Generally the load average will drop back down to normal however the kernel errors will still continue What little I have been able to find has pointed to memory issues. I am not totaly convinced this is the cause as the server will be showing >50% free when the errors are happening.
[code]...
View 2 Replies
View Related
Mar 28, 2009
I am trying to install CentOS 5.2 on an HP rp5700 desktop unit. These units were originally sold as a Point of Sales unit I believe, but HP also markets it as a high life cycle server for SMB market.I tried to load CentOS on this unit via CD (created from downloaded ISO of course). It presents the initial CentOS banner page and waits for the obligatory "enter" to continue. It begins the boot process up to discovering the PCI stuff and just locks up, no response. I have to power down to restart.Since this does not even get to the point of installing. I am at a loss what to do next. Has anyone had a similar issue with other PCs.The boot stops at the lineACPI: PCI Root Bridge [PCI0] (0000:00)
View 3 Replies
View Related
Mar 2, 2010
I un-installed all packages that I downloaded and removed all references to the attempted kernel and I thought it was over. Today I tried to install xubuntu-desktop and the install exits with a dpkg errros that refers to that old custom kernel attempt. I run dpkg as instructed (see below):
[code]...
I cannot run apt-get until I try to figure out where this error is.
View 1 Replies
View Related
Nov 1, 2010
I have a machine with X-Fi Titanium sound card. Im getting the following errors when trying to compile the driver.
[Code]...
View 3 Replies
View Related
Jan 31, 2010
I've been trying to compile and install different terminal emulators:Eterm, aterm, and libAfterImage for urxvt.
I've been getting all these errors, and it seems odd to me. I did some fiddling awhile back enabling KMS with my radeon, install custom packages for xf86-ati, mesa, and libdrm. Could that or some other fiddling have broken these dependencies?
Here is an excerpt, with the full error log attached and here:url
Code:
In file included from libungif/../xwrap.h:5,
from libungif/../asim_afterbase.h:23,
from libungif/../afterbase.h:36,
from libungif/gif_hash.h:24,
from libungif/gif_lib_private.h:5,
code....
View 1 Replies
View Related
Mar 1, 2011
As part of an assignment, our class was given a small set of c++ classes which are compiled using a makefile. As part of the assignment, I have created a namespace and saved in it a .cpp file. The functions, constants and typedefs from the namespace are now used in one of the original files, and so I added an <#include MyFile.cpp> to the file I modified, in addition to a using MyNamespace;
When I try to use the original makefile, the compiler gives a lot of errors about multiple definitions of every function in the namespace. What do I need to do to resolve this? Do I need to change the makefile or one of the files themselves? I am new to Linux programming and makesfiles.
View 2 Replies
View Related
May 15, 2010
I'm trying to compile ardour 2.8.7 from source and the compile got past the dependencies and everything else fine but it stopped at one point with these errors
[code]...
I have no experience compiling python. I would not like to install from a package as the one with ubuntu is wrongly compiled and so are many others which are hosted I have heard the only way to make the problems with packaged versions stop is by compiling ardour yourself so I would still like to go ahead with it.
View 6 Replies
View Related
May 29, 2011
I am trying to compile OpenCV 2.0 with ffmpeg (with x264) support on my Ubuntu 11.04 64-bit machine. (Since I want to use the binaries provided by other developers, I have to use opencv 2.0 version)
I followed the guide from: [URL] to compile x264 and ffmpeg manually, and succeeded.
Then I followed the guide in the INSTALL file provided by the OpenCV 2.0 package. I use CMake to configure and generate them, and use "make" command to try compiling. However, I got the following error report, which haunted me for almost half a week.
Code:
Linking CXX static library ../../lib/libhighgui_pch_dephelp.a
[ 71%] Built target highgui_pch_dephelp
Scanning dependencies of target pch_Generate_highgui
[ 71%] Generating _highgui.h
[ 71%] [COLOR="rgb(65, 105, 225)"]Generating
[Code].....
View 7 Replies
View Related
Aug 19, 2011
I have played around with Fedora for a few years and recently switched to Ubuntu. I am installing VMWare Workstation version 7.1.0 from a retail packaged CD. When I attempt to install VMWare Workstation and VMWare Player I get the following error:
Aug 15 16:24:54.826: app-3078788800| Your GCC version: 4.5
Aug 15 16:24:54.837: app-3078788800| Your GCC version: 4.5
Aug 15 16:24:54.889: app-3078788800| Trying to find a suitable PBM set for kernel 2.6.38-10-generic.
Aug 15 16:24:54.895: app-3078788800| Trying to find a suitable PBM set for kernel 2.6.38-10-generic.....
Aug 15 16:24:56.163: app-3078788800| Failed to compile module vmmon!
I tried installing the patch for kernal 2.6.38-8 found here - [URL] - but it did not resolve the issue. Is there a patch for kernal 2.6.38-10?
I also found this posting for the same problem: [URL]. I followed the following instructions as advised in the post . . .
sudo apt-get update
sudo apt-get install make
sudo apt-get install gcc
Then enter:
uname -r
My kernel was: 2.6.38-10-generic
sudo apt-get install build-essential linux-headers-2.6.38-10-generic
Now run the vmware-install.pl script.
Everything ran without error. However, I continue to get the same error. Another post suggested uninstalliung and reinstalling the software, but this had no affect either. Another post suggested that after running the above update to them run the /usr/bin/vmware-config.pl script. However I do not seem to have the vmware-config.pl in my /usr/bin directory. I checked the various VMWARE directories in /etc and the /tmp/vmware-root directories but no vmware-config.pl
View 2 Replies
View Related
Jun 8, 2010
configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found: none).
configure: warning: flex versions supported for regeneration of the Zend/PHP parsers:
[code]....
View 4 Replies
View Related
Jun 10, 2010
First, I'm trying to cross compile mono 2.6.4 so that it will run on Freescale Embedded Linux for a PowerPC CPU. My host machine is running Fedora 13 on an x86. Freescale provides a copy of the Linux Target Image Builder (LTIB) that has been pre-configured for the particular board I'm using, and LTIB seems to be able to help with the cross compilation of other stuff--you can add in your own packages to be built and included in your newly-built Linux image.
Mono depends on pkg-config and glib-2, so I have selected them in the LTIB package selection config. I've also added a new package for mono that builds mono-2.6.4 from the source tar (after the other deps have also been built).
I'm having a problem getting the glib-2.24.0 package libraries created. Basically they appear to build and link ok, but then libtool runs and errors out claiming it has a syntax error! (numerous wths followed...)
Here is LTIB's temporary build script for only the glib2 package:
Code:
Here is the output when building the glib2 package (configure + make):
Code:
Build path taken because: directory build, build key set, no prebuilt rpm,
View 7 Replies
View Related
Nov 4, 2010
I have been going through all the help files I can including here. I just can't get it going. I will post any info just give me a command and I will post results. I just want to be able to play movies and music and stuff.
View 3 Replies
View Related
Jan 27, 2011
System: Dell Inspiron 6000 laptopUbuntu version: completely stock Maverick installAfter using my laptop for about half an hour to an hour, the following odd symptoms appear, usually while using Firefox:Firefox is unable to display web pages, displaying a Javascript error.The notification icons all disappear.The icons in the application launcher disappear, but the menus are still accessible - however selecting an application has no effect.The shutdown menu is inaccessible, so the only way to recover is to hard reset.
View 3 Replies
View Related
Feb 19, 2010
I just started setting up a linux box in the office...I have some experience with ssh commands but not setting up a linux system and stuff.The box is connected to our network but I have no clue how to make windows & osx talk with it. How can I go by doing that and also setting up an apache server to be able to connect through network. Right now I have apache/linux/mysql running it works when i go to localhost, but I would also like to let all the computers in office to access it. I would guess that will deal with virtual host which I know how to setup. I just need to setup an IP.
View 19 Replies
View Related
May 7, 2010
I'm trying to drag and drop apps from my applications menu and into cairo dock, but the icon won't drag, it did in karmic but i don't think lucid lets me, how do i enable that.
View 7 Replies
View Related
Mar 19, 2010
Use python as example, I have 64bit python 2.4.3 yet I can't found rpm for 32bit one so I try to build it.Use default make or make --enable-readline is ok, python make cannot use CFLAGS, can use OPT and LDFLAGS to add -m32, yetit seems can only search for 64bit lib, or else crush.[Moderator edit: Moved from CentOS-4 to CentOS-5 forum.]
View 9 Replies
View Related
Apr 19, 2010
Where a CentOS 5.3 installation on a server randomly restarts. The problem is that I am not able to find a viable solution. I have updated the system to the latest available kernel, but to no avail...
The output I see in /var/log/messages when the restart occurs is very similar everytime:
...remainder of system boot logs
View 8 Replies
View Related
Oct 21, 2010
It seems with the newer linux headers, two functions changed their names slightly and caused a crash when attempting to build the Asus-provided USB-N13 drivers.
I'm still in the middle of getting the device to work, but actually compiling the driver was a major problem for me and others I've seen that complained of the breakage in 10.10.
Here's the fix:
Within the include/os/rt_linux.h and os/linux/rt_usb_util.c files, the usb_buffer_alloc and usb_buffer_free functions are part of an internal macro. These functions do not exist anymore and are replaced by the usb_alloc_coherent and usb_free_coherent respectively. Input parameters did not change, just the names.
The macro is defined in rt_linux.h and the functions are used in a symbol export within rt_usb_util.c. Simply renaming the functions should allow it to build.
As I said, I'm still in the process of getting the wireless to work, just wanted to let everyone know of the quick fix.
This issue will probably be addressed with a macro fix somewhere eventually.
#define usb_alloc_coherent(a, b, c, d) usb_buffer_alloc(a, b, c, d)
#define usb_free_coherent(a, b, c, d) usb_buffer_free(a, b, c, d)
View 3 Replies
View Related
Jun 24, 2009
I try to set up a 5 nodes cluster and a shared Coraid Storage with conga but it fails with "Shared Storage Support" checked.The message is:'A problem occurred when installing packages: Packages of set "Clustered Storage" are not present in available repository' and it is shown under every node on the next sceen after I submit.The pc where conga runs is on the same subnet (192.168.xxx.xxx) and it has the same /etc/hosts of the other nodes.In that pc runs a proxy too and the nodes go out through it (that pc has 2 NICs)Every node (2.6.18-128.1.14.el5-xen-x86_64) is patched whith the last yum update (this morning) the same is for the pc (2.6.18-128.1.14.el5).Every node has 4 NICs , 2 NICc towards the storage the others in bonding towards the WAN.Every node is exactly alike, they have been installed with the ks.cfg generated from the first node and they all have the support for Clustering, Virtualization, and Clustered Storage.
View 1 Replies
View Related
Jul 8, 2009
I'm running CentOS 5.3 x86_64 on my laptop (dell vostro 1400, core2duo, 3GB RAM, intel 3945ABG wireless, nvidia video and LAN). The problem is that some times (like 15-20% of times) I shutdown the laptop, I get a kernel panic related always to the wireless kernel module (I haven't been able to get screenshot or anything). I'm using the latest centosplus kernel. I never get these panics with the standard CentOS kernel, however the standard kernel doesn't light the wireless led, and that annoys me a lot. Therefore I'm forced to use centosplus kernel. The question is not how to solve this (i know I've not given enough details) but what to do to diagnose better the cause of the panic and then correct it.
View 3 Replies
View Related
Oct 2, 2009
I recently installed CentOS 5.3 on a Dell PowerEdge 1800 server that used to have Microsoft Windows SBS 2003 on it. Everything seemed to be going fine until a few days ago. Here's the sum of it all...
- System seems to randomly hang, at which it becomes unavailable on the network (can't be pinged, monitor won't come back on, and you can't wake it up... have to reboot, the scroll lock and caps lock keys flash at the same time)
- Received this error message...
Uhhuh. NMI received for unknown reason a0.
You probably have a hardware problem with your RAM chips.
Dazed and confused, but trying to continue.
...it doesn't crash at this point though. I ran memtest86 twice and did not experience any problems. I updated the BIOS to the newest version, which contained a few bug fixes, but still experienced the same problems
View 2 Replies
View Related
Apr 13, 2011
I configured a Postfix Server to relay the messages to an Exchange Server. To keep it simple I configured all my users locally and I setup local .forward files in their home folders, specifying their local Exchange address.
Everything seemed to work fine (for years now), until I upgraded postfix in October, 23rd 2010.
Alas, lately I noticed that, since then, even if I just realized it now, sometimes the server seems not to use the .forward file and tries to use the local delivery using cyrus, which does not find a local mail folder (obviously, since I never created them as I didn�t want to) and replies to the sender with a "550-Mailbox unknown" error. Today I enabled the "-v" mode for "local" in master.cf the debugging the problem a bit better, to see what's the problem.
If I was sure about the problem being the postfix version (2.3.3, which is way too old now!), I'd give it a try and substitute it with the latest 2.8.2 (even if the server is a production server and is almost untouchable).
Following the error and my main.cf and master.cf setup files:
View 10 Replies
View Related
Nov 9, 2010
- The icons in my desktop is always changing randomly upon startup
- Evince can't remember the last page i read before quitting
- Unable to mount usb automatically (have to do 'mount /dev/sdc1/ /media/usb' and 'df -h' every startup)
All of these problems happened just recently. I thought they were coming from unresolved packaging but after upgrading and distro-upgrading from packman only, and gnome, the problems still persist. If it helps, here's my zypper lr -d
[Code]...
View 2 Replies
View Related
Nov 18, 2010
After about an hour of using my Eeepc 1000 there is random sustained SSD access. How can i check what is accessing the SSD so much?
View 3 Replies
View Related
Jan 16, 2010
I have set up a software raid 5 and a software raid 1 on the same 3 disks.
But my problem is, every couple of days the software raid starts automatically resyncing. This resync is always succesful.
I do not know why this happens, any ideas to troubleshoot this further? I can not see an error in /var/log/messages
View 14 Replies
View Related
Jan 19, 2010
I'm looking for a script that copies a random .jpg from a random folder in my ~/Pictures folder to my ~/temp folder with a standard filename. This file will then be displayed in Conky. I can fix the last part, but I cannot find a way to do the first part.
View 3 Replies
View Related
Dec 9, 2010
from the commend line i went to compile the c program by giving the commend "gcc first.c -o first" but the commend line showing gcc is not found. iam using fedora 13 what can i do to compile the program . the program i used to compile is below
#include<stdio.h>
main()
{
printf("hello word
");
}
View 1 Replies
View Related