General :: Compiling Main.c, Conflicting Types And Previous Declaration Was Here Errors
Jun 15, 2011
I'm trying to compile a main.c file that contains a while statement. Embedded in the while statement are functions that are being called. After the while statement, I have 2 more functions being called, one to find the average(getaverage), and one to print the results (printstuff). I also used a header file (my.h) that contains all of the needed #define and #include, along with each of the void function() statements.
There isn't any problems with the while statement/ the functions in while, but when I try and compile main.c I get the following errors:
main.c error: conflicting types for 'getaverage'
my.h error: previous declaration of 'getaverage'
and then the same thing for 'printstuff'
I'm trying to use "netlink" to get ip address of a Linux box. But the linux/types.h included from "linux/rtnetlink.h" introduced many conflicting type declarations with "sys/types.h".
#include <rtnetlink.h> #include <sys/types.h> #include <sys/socket.h> int main (int argc, char *argv[]) { return 0; }
I need to have a global variable PHP Code: volatile sig_atomic_t int Terminazione=0; but I get the error error: two or more data types in declaration specifier even if I have included signal.h.
I'm trying to compile a beta MIPS simulator application built on the Qt UI framework, called QtSpim. It's been quite a learning experience for me so far, but I've run into a roadblock.The beta can be downloaded from here: URL... (look in the column on the right).I first had trouble finding qmake, then found out that I could use qmake-qt4.
I am trying to upload an IOS in the cisco NAC Appliance. The IOS version has to be updated as 4.8. I am getting the below error when i tried. File is not in gzip format Child return status 1 Error exit delayed from previous errors. I am using the below command to unzip the IOS file. tar xzvf ccca_upgrade-4.8.0-from-4.6.x.tar.gz.
today I tried to run desktopdrapes. my first command ./configure was completet after I installed the missing pakages. the next step is the 'make' command. But with this command I get 5 Errors and 2 Warnings:
Code: e-Lasto:/home/carolin/programme/drapes # make Making all in drapes make[1]: Entering directory `/home/carolin/programme/drapes/drapes' /usr/bin/gmcs -debug -r:System.Xml -r:Mono.Posix -pkg:gconf-sharp-2.0 -pkg:glade-sharp-2.0 -pkg:gnome-vfs-sharp-2.0 -resource:../data/drapes.glade,drapes.glade
I would like port 80 to have a small daemon running on it that detects HTTP traffic and sends a small redirect response, and any other traffic begins streaming data from my VPN daemon. I was wondering if this has already been made, or any kind of technology for detecting types of traffic and allowing you to run multiple types of servers on the same port.
I've made the real mistake of buying a laptop with a Broadcom wifi adapter on it. (That thwacking sound is me kicking myself for not noticing after spending weeks and weeks carefully choosing the model I wanted.)
I have downloaded the 32 bit drivers from here (am running Mandriva 2010.1 Free 32 bit). The readme indicates the 4727 is supported by the latest OS drivers amazingly. [URL]. I have installed the Linux kernel source files.
First problem comes with the first instruction in the readme. # mkdir hybrid_wl # cd hybrid_wl # tar xzf <path>/hybrid-portsrc.tar or <path>/hybrid-portsrc-x86_64.tar.gz
The tar instruction just does nothing, so I just right clicked in Dolphin and unpacked it to its own directory. I navigated the terminal to where it unpacked and did make. I got this:
Code: [robertw@localhost hybrid-portsrc-x86_32-v5.60.48.36]$ make KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd` make[1]: Entering directory `/usr/src/linux-2.6.33.5-2mnb'
ERROR: Kernel configuration is invalid. include/generated/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it. WARNING: Symbol version dump /usr/src/linux-2.6.33.5-2mnb/Module.symvers is missing; modules will have no dependencies and modversions.
CC [M] /home/robertw/Downloads/hybrid-portsrc-x86_32-v5.60.48.36/src/shared/linux_osl.o /home/robertw/Downloads/hybrid-portsrc-x86_32-v5.60.48.36/src/shared/linux_osl.c:1: error: code model "kernel" not supported in the 32 bit mode /home/robertw/Downloads/hybrid-portsrc-x86_32-v5.60.48.36/src/shared/linux_osl.c:1: sorry, unimplemented: 64-bit mode not compiled in make[2]: *** [/home/robertw/Downloads/hybrid-portsrc-x86_32-v5.60.48.36/src/shared/linux_osl.o] Error 1 make[1]: *** [_module_/home/robertw/Downloads/hybrid-portsrc-x86_32-v5.60.48.36] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.33.5-2mnb' make: *** [all] Error 2
When I compile evince from its source code, I am able to run ./configure properly, but when I run make the following output is displayed.
Code: make all-recursive make[1]: Entering directory `/media/New_Volume/untitled folder/evince-2.32.0' Making all in cut-n-paste make[2]: Entering directory `/media/New_Volume/untitled folder/evince-2.32.0/cut-n-paste' Making all in zoom-control make[3]: Entering directory `/media/New_Volume/untitled folder/evince-2.32.0/cut-n-paste/zoom-control' ..... make[3]: *** [libevview.la] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
I am not able to ascertain the source of this error, even though I seem to have the file in question-libevdocument.la. What do I do now to remove this error?
I did a ./configure and make and got this returned about 1/2 hr later:
Code: undefined reference to `glDisable' undefined reference to `glDisable' undefined reference to `glutKeyboardFunc' undefined reference to `glutSpecialFunc' undefined reference to `glReshapeFunc'
And the oddest part is.... I passed --disable-gl to configure!
After messing up with grub, I reformatted my hdd and installed opensuse 11.4 (gnome+kde) from the dvd and also included the java sdk while installing, now the problem is that whenever i compile a java program, I get this error Code: /usr/src/packages/BUILD/glibc-2.11.3/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
We have a file that declares many environmental variables. Out of which I have doubt on few. These variables are declared in UNIX environment. We are planing to migrate them along with applications to Linux.
Code: export MAILSERVER="%new@hub" MAIL_USERS="vinay.new"{MAILSERVER}",vijay.new"{MAILSERVER} Does the above declarations work in Linux ? The above declarations expands to Code: mail vinay.new%new@hub,vijay.new%new@hub which looks little wierd.
I don't mean that it prevents me from using it, on the contrary, it changes all of the text boxes to the same color, making it hard if it's not a conflicting color. I want to install dark themes such as Cobra and Aero-ion but they conflict with Firefox, and I don't want to use Chromium. Do I have to stick with basic and default themes if I want to customize or switch to Google Chromium? Can someone point out a website that, well, has ones compatible with Firefox 4?
I am in a production environment where ip addresses are configured in dchp but when I changes the ip address (public or private ip) of any one system then after restarting the network service it gives the message that the ip is used by any other host in the network.
I am trying to install this vpn thing for school (I need to access some of my info). I seem to get to the installation part somehow but I keep getting this message
Making module make -C /lib/modules/2.6.31-17-generic/build SUBDIRS=/home/mblack3/Desktop/vpnclient modules make[1]: Entering directory `/usr/src/linux-headers-2.6.31-17-generic' CC [M] /home/mblack3/Desktop/vpnclient/linuxcniapi.o /home/mblack3/Desktop/vpnclient/linuxcniapi.c:12:26: error: linux/config.h: No such file or directory .....
Until some time ago I had a dual Windows 7 and Fedora operating system, then I completely moved to Fedora. Recently I have become interested in Scientific Linux and wanted to install it besides my Fedora. I took a back up of all my data and formatted my HDD for a clean install of both of them. This is what I did:
First I installed Scientific Linux with these partitions (contents of /etc/fstab):
[Code]...
Then I went on to install Fedora 15; I kept the same primary and extended partitions but only changed the names of "/FedoraRoot" to "/" and "/" to "/SLRoot" in the above list while installing Fedora. I also chose the boot directory of Fedora to be /dev/sda1/ which I wanted to be the /boot file for both systems while I had chosen the boot file for Scientific Linux to be "/dev/sda".
Everything went well until the final step of copying the files an error came that some of files that Fedora wanted to install in /usr/share, /usr/lib64, /usr/bin, /etc/system..., /etc/issue..., /etc/redhat-release... and /etc/rpm are already present in the Scientific Linux format and so there is a conflict and it has to terminate!!! I must have made some strange mistakes in the definitions
I'm using Grsync and I want to be able to plug in any drive into my laptop and run rsync on it to back up all the user documents on there to another external hdd and to exclude everything else. Working on the principle that user documents don't always appear where we'd expect I want rsync to look through the whole drive and filter what it backs up by file type. I am only having partial success, however.
I am using the 'filter' option in the 'additional options' box. I am using the command Code: filter='merge /home/tim/Desktop/filter' and I am attaching the filter file I have written. (I have added the .txt extention to upload it).
I have tested this script on my home folder and here's what's going wrong. Rsync will copy the entire directory structure regardless of whether there are any files to be copied over in those directories. I am also getting only some file types getting included and not others. .odt and .ods files are copied, for instance, but not .doc or .rtf.
This is concerning the normal login password at command line by changing via the 'passwd' command. Is there a way to change the type of passwords used? For example, the majority of linux distros use MD5. In Slackware or Centos, where would I change the security setting to go from MD5 to DES or some other encryption?
Linux RED HAT 5 Liteon 18X DVD rom I used Liteon dvd rom for installation, worked well but it dose not recognize all data DVD and all type of cd disks while in windows XP every thing was fine.
If there is a command I can use to find specific file types? Say if I want to find all the jpg's in my home folder, but they don't have the .jpg extension in the name, how would I do it? Or can I set some kind of size parameter to find them? The ones I want are all from my digicam and roughly the same size.