Software :: Why GCC Includes Files From Unexpected Dirs
Nov 23, 2010
Now I'm porting a WIFI driver to my platform, MIPS little endian, Linux-2.6.18, uClibc environment for STB. And I'm experiencing some strange symptom. As you know, there are some kind of include files that system provides such like GCC-provided(usually in /usr/include), LIBC-includes(/usr/include), Linux-includes(${LINUX}/include/linux), ASM-includes(${LINUX}/include/asm) and so on, and there are many files resides different directories as the same name (e.g. time.h, types.h, limits.h ...) and many of them has
different contents.
I'm confusing because that some include files are read from unexpected directories.
The command line is like following. $ cross-gcc -o Target -I$(GCC_INC) -I$(LIB_INC) -I$(appl_inc) -isystem $(LINUX)/include -isystem $(LINUX)/include/linux Source.c
And some symbol means:
GCC_INC: directory for GCC include files.
LIB_INC: directory for LIBC include files.
LINUX: Linux kernel directory.
[code]....
As shown above, some include files are read from unexpected directory. This causes some severe compile errors. I've verified these by adding '-E' to the command line. How can I order GCC to read files from where I'm expect?
View 1 Replies
ADVERTISEMENT
Jan 10, 2010
My website can`t open because of the error, Parse error: syntax error, unexpected T_STRING in /home/dodonet2/public_html/includes/config.php on line 45.
View 8 Replies
View Related
Oct 31, 2010
For example I have "/some/dir" which contains user's files and directories. I want to check if there are any files or directories of root. I guess I should use "find" command but what's the full command to find it out?
View 2 Replies
View Related
Mar 19, 2010
I have prepared a static lib(.a) comprising 2 function definitions. I have created a different shared library(.so) comprising 2 more functions. The two functions of .so use the functions defined in the .a file. That is, the .so file uses the services of the .a file. Next, I create an executable that uses the shared library(.so). When I build my executable, it needs to be linked with the .a file as well. it gives me undefined reference for the functions defined in the .a file. Why is that so? I am posing this question because, the .a file has already been included(static linking) while bulding the .so. Is there any workaround so that I need not link the .a file with my final executable?
View 2 Replies
View Related
Jul 22, 2011
suppose in my current directory, I have 50 sub-directories. Now, I am interested only in about 20 of those sub-directories (whose names match a pattern). I would like to recursively list the contents of these 20 sub-directories. How do I do that ? I would like to do this in Solaris 10 and Linux(RHEL 5.x).
View 3 Replies
View Related
Sep 17, 2010
I have installed the files from Betavine - SuSE Linux Drivers and installed it by clicking the rpms and installing now the error is this- Vodafone Mobile Connect needs the following files and dirs with some specific permissions in order to work properly: /etc/ppp/chap-secrets should have 0660 mode, found 0666 /etc/ppp/peers should be readable and writtable by group root user Rob should be a member of group root
View 3 Replies
View Related
Apr 13, 2010
Recently I have moved to F11. While I am trying to install directFB explicitly, I am getting error related to X 11 dependencies. It could find no includes files under the directory /usr/include/x11/. But x11 libraries are available in the system. I remember that, i had these x11 include files in my F9. Do I need to install any external packages to get the x11 include files in place?
View 4 Replies
View Related
Oct 20, 2010
I have quite a few sound sample files totaling over 4 gigs in size with around 80 root folders and then around 34 sub folders. i have a total of 13 DVD's in the above format. how do i "change the date" on all files in one go is that possible?
View 3 Replies
View Related
Mar 7, 2011
today some one of my friends removed /boot/grub directory from my pc. i tried both
root (hd0,0) Kernel /vm - but it's not coming (coz that file is already removed.
and after
root (hd0,0)
setup (hd0)
it showed grub file is installed but i couldn't find
/boot/grub/grub/conf or vm linuz
and after i used rescue method.
/sbin/grub-install /dev/sda
tried this method but still couldn't make effect.
[Code]...
View 2 Replies
View Related
Jul 30, 2011
I'm trying to use tar which I've used a bit before but have never had to do this so I'm unsure. I'm trying to remove parent dirs from the backup. example;
Code: tar cvpjf /path/to/backup.tar.bz2 /path/to/the/source I want the backup.tar.bz2 to only contain the contents of source. At the moment the contents of the backup.tar.bz2 have the following file structure /path/to/the/source/files. How can I remove the parent dirs from the backup.tar.bz2? Alternatively, How could I just extract the contents of source with out the above folder structure? at the moment when I extract the backup.tar.bz2, I get the full folder structure in the location that I extracted it to.
View 2 Replies
View Related
Aug 27, 2010
I need to list a directory recursively but I want to skip subdirs that were already mounted. There are 2 cases:
a) a filesystem was mounted twice, like in this example:
- "/dev/sda2" was mounted on "/mnt/mnt_point1"
- "/dev/sda2" was mounted on "/mnt/mnt_point2"
I want to list "/mnt" but descend only in "/mnt/mnt_point1"
b) part of the file hierarchy was remounted somewhere else, with "mount --bind":
- "mount --bind /home/user/tmp/test /home/user/tmp/mounted_test"
I want to list "/home/user/tmp" but descend only in "test" "statfs" and "statvfs" don't offer any information to discern if a dir was mounted twice. One solution would be to read "/etc/mtab" (as "find" command does it) and perform some checks, but I think that this is pretty expensive (one has to read /etc/mtab every time one encounters a dir; if this file is read only when program starts, a mount could occur in between reads, so that the program will be inaccurate). Another solution would be to filter kernel events (via libudev or Netlink) and do this reading of /etc/mtab only when a MOUNT event was issued.
View 1 Replies
View Related
Feb 8, 2011
I'm trying to use the dirs command with the +N option. The manual says: dirs [-clpv] [+n] [-n]Without options, displays the list of currently remembered directories. The default display is on a single line with directory names separated by spaces. Direc- tories are added to the list with the pushd command; the popd command removes entries from the list. +n Displays the nth entry counting from the left of the list shown by dirs when invoked without options, starting with zero.
dirs -v shows:
0 /dir1/
1 /dir2/
2 /dir3/
However, dir +n 1, dir +N 1, dir -v +n 1, dir -v +N 1 all give:
[Code]...
View 2 Replies
View Related
Jul 7, 2010
I have to format 4 years worth of awstats data "static" for a client and then move it to their new server.I don't want to run the commend to do this 48 times. If possible I would like to use a bash script that uses the folders in a directory so the script knows which year-month to do this for me and which folder to place the output in.
View 5 Replies
View Related
May 17, 2011
I have to use the older ksh on SUN and AIX alot...and kinda missed the pushd concept for jumping around a bunch of directories.but not really, because I didnt always want to pop off my directory, just wanted to cd there.So I wrote a ksh or bash friendly script with usage as below.Make it available by sourcing: . godir.sh
Code:
# Script: godir
# Written: 05-16-11 13:49:17 By: AWJurgensen
[code]....
View 1 Replies
View Related
Jun 27, 2010
Trying to write a shell script called make to read a file called dirs with the following in it
programs
scripts
documents
Read file line by line and make the directories in the current directory when you type ./make dirs if no file is given then program should print usage:
make dirs filename
View 3 Replies
View Related
Mar 23, 2011
Want create script that run in background 5 programs from 5 given dirs and all of them should be in one controlling screen. In other words how via script after created screen and attaching to it via screen -r via script vreate new window within that screen, run given program and detach for new itaration
View 7 Replies
View Related
Jan 28, 2010
I am searching a GUI based "tree view utility" which shows me which directories consume how much hard disc space (cumulative, including recursively the sub directories; including hidden files). Is there such a tool fur Ubuntu/Linux and how do I install it? Is there at least a cmdline command which does the same job in terminal window?
View 1 Replies
View Related
May 2, 2011
I have this message in the syslog from squeeze:
Code:
May 2 21:18:19 squeeze x-session-manager[1732]: WARNING: Could not launch application 'user-dirs-update-gtk.desktop': Unable to start application: Failed to execute child process "xdg-user-dirs-gtk-update" (No such file or directory)
View 1 Replies
View Related
Jan 26, 2011
I've got a Web app on a server, that may dynamically create some directories inside "/public/sites/medias" from the inside of the app. I've got no problem so far to tell Git to ignore everything _actually_ in "public/sites/medias", but the problem is when users begin to create new dirs and add files like these :
/public/sites/medias
---------------------/images
---------------------------/4
[code]....
View 1 Replies
View Related
Mar 17, 2010
I'm using Plesk as my control panel. After the PIX was installed, I mapped the old IPs to the new IPs. Port 80 is OPEN. My PHP includes won't work when I use the domain, actually nothing works when I use the domain infront of it. I tried adding 10.0.0.1 [URL] to /etc/hosts and still had no luck
View 1 Replies
View Related
Jun 18, 2009
If I use my current iptables firewall settings my php includes from my own site get blocked by the firewall. If I use accept all tcp and udp it still does not work. If I use a default policy of accept all, then the php includes work which is not safe. I am running a drupal 6 site on a centos 5.3 vps with apache 2.2.0 and php 5.2.6 w/ safe mode on. He is my current iptable configuration.
Quote:
Chain VZ_FORWARD (1 references)
target prot opt source destination
Chain VZ_INPUT (1 references)
target prot opt source destination
[code]....
View 2 Replies
View Related
Feb 26, 2010
I've been trying to install a development version of kde 4 and when i attempt to install kdelibs it tells me that it can't find the phonon libraries. Does anyone know what the trouble might be? I'm using Debian Sid.
View 5 Replies
View Related
Dec 21, 2010
Here's my current regular expression(used in sed):sed 's///!Start.*//!End//g' in > outThe only problem being that the wildcard . does not work across multiple lines,
View 1 Replies
View Related
Feb 18, 2011
First of all, let me just state that i want to make a small server for my home.. which includes hosting a website and a small FTP server.
Now as far as ease, stability, use, etc.. just overall, which would be more ideal to use for this?
My top choices are FreeBSD and Ubuntu Server.
However, I do not know which of these to go with, since this is my first time setting up a server. I hear BSD is really best for web servers, but I would like to hear what the people at LQ has to say.
I know Ubuntu Server would probably be more easy to set up, but how is it in terms of stability and speed?
View 6 Replies
View Related
Aug 7, 2010
As per our requirement, I need to implement a Secure FTP server for around 500 users which includes security level on both - Transfer and Rest data. Apart from this I also need the following features -
1. Size quota on Users & reminder mails for the same
2. Password expiry notifications and user interface to change their password within specified time interval
3. Aging of data - After specified time, data will be moved to some other location from their home directory
4. All type of log maintenace for each file and user and log exporting
5. Uploading & Downloading speed consistency as per server level.
6. Read-write interface for user and read-only interface for their client for the same account.
7. Backup and Recovery options.
As of now, I am using VSFTPD which does not give these much of features in combine.
View 2 Replies
View Related
Jul 19, 2011
I'm trying to create an array with variable including hyphenbut ksh refuses the first element
set -A allArgs
set +A allArgs ${allArgs[@]} -all
set +A allArgs ${allArgs[@]} -date
[code]...
View 5 Replies
View Related
Mar 4, 2011
Before i wiped windows (and the dual-booted slackware on it to make a slackware only hdd) i (sort of) backed up my files. I put something into my /etc/fstab that wiped /tmp/ when i shutdown/rebooted.
View 4 Replies
View Related
Apr 17, 2010
I want to learn how to build a Linux network from scratch that includes file and printer sharing, intranet. I have an intermediate-level knowledge of Windows networking. Can anyone suggest a book or online tutorial that I can learn from? Now let me be clear: I am finding no shortage of tutorials on the web. However, too many are old or incomplete.
A little extra info: I am a teacher/network admin for a small private school with about 50 student computers (that I wish to become Linux machines in the future) and about 10 staff computers (mostly Windows laptops--I do not expect the staff to convert to Linux as readily), I currently do not have an intranet implemented.
View 1 Replies
View Related
Sep 23, 2010
I had a Ubuntu USB key that booted x64 and brought up the wireless network mgr with DLINK WDA-2320. But it was lost.Now I am trying different distro images to get back to what I had. But none has the Network mgr with wireless in it.I don't have any other Linux/UNIX machine here at home. Just Winbloze.Do you know which Ubuntu CD/USB image comes with a network manager and wireless for DLink WDA-2320 PCI ?
View 4 Replies
View Related
Feb 27, 2011
I would like to know what shell command I could use for finding a phrase (which is a URL) in many files, with a different phrase. I have tried the "sed" command, but it does not like the forward slash.
View 5 Replies
View Related