Software :: Compiler Flags Are Not Used When Stored In /etc/profile

Apr 10, 2010

Running Vector Linux 6.0 light (icewm). I've always set my compiler flags at the end of my profile file in etc folder (/etc/profile). They always worked whenever it came to compiling any application (./configure && make). Since I installed vector linux they don't. I used mostly slackware in the past then switched to absolute linux. Loved it but then it got old + on reinstall it crashed on bootup with horizontal corruption on bottom half of screen! Don't know why cause everything was the same!

So obviously vector linux works somewhat different as my compiler settings are stored the same way I've always stored them in /etc/profile but they aren't being used-enforced.

Hell I even made a #/bin/bash file with | CFLAGS="blah" CXXFLAGS="${CFLAGS}" && export CFLAGS CXXFLAGS | but after making it executable they don't wanna stick. Not sure if it was done before the ./configure part of compiling though... Even if it did work it's still not the set it and forget it that I've always had with past slackware installs

How do I tell vector linux to use my compiler flags without having to make it work but typing in console | CFLAGS="-O2 -march=prescott -mtune=prescott -pipe -ffast-math -fmerge-all-constants -funswitch-loops -mmmx -msse -msse2 -msse3 -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" && export CFLAGS CXXFLAGS ./configure | everytime I wanna compile something?

I can login-stay in real-mode terminal console incase I feel like doing things outside of X. I like vector linux but I wish it was more slackware like. It seems a bit proprietary for being like slackware.

View 2 Replies


ADVERTISEMENT

Programming :: Add Some Compiler Flags In Code Blocks / IDE For Mysql Headers And APIs?

Jul 9, 2011

I am writing a C program which is contains Mysql header files and APIs but it can not compile it and its error is : Quote: undefined reference to

to all of Mysql APIs that I included their headers .In command line I compile my source like this with no problem: Quote: gcc test.c -Wall -o test -lz `mysql_config --cflags --include --libs`

I think code block does not have bold italic part of this command. How can I add this to code block to compile my project or those project that contains Mysql APIs (just my project not all of defined projects that has no relation to mysql APIs)with this gcc flags.

View 3 Replies View Related

Programming :: Add Some Compiler Flags In Code Blocks IDE For Mysql Headers And APIs?

Jul 10, 2011

I am writing a C program which is contains Mysql header files and APIs but it can not compile it and its error is :

Quote:

undefined reference to

to all of Mysql APIs that I included their headers .In command line I compile my source like this with no problem:

Quote:

gcc test.c -Wall -o test -lz `mysql_config --cflags --include --libs`

I think code block does not have bold italic part of this command. How can I add this to code block to compile my project or those project that contains Mysql APIs (just my project not all of defined projects that has no relation to mysql APIs)with this gcc flags.

View 2 Replies View Related

Ubuntu :: Where Konsole Profile Settings Stored?

Feb 5, 2010

I've been using the KDE version of Jaunty Jackalope since it came out last spring, installing it on several different machines. Each time, I make a series of changes to the profile settings in konsole to make it look and act the way I like. Recently, I've installed JJ on yet another machine and I find myself reluctant to tackle the tedious job of changing those profile setting, one by one, yet again.

It occurs to me that the settings are probably kept in a file someplace, and that I might be able simply to copy that file from a machine on which I have the settings already in place, and paste it onto the new machine. I've tried making a minor change in the profile, then looking for a file that's time-stamped at that moment, but I haven't found anything in the places I've looked.

View 2 Replies View Related

Fedora :: Where Are Stored PWs For Remote Desktop Viewer Stored?

Oct 20, 2010

I have machine that I used to VNC to on my network with Remote Desktop Viewer from my Fedora 12. When I first connected I checked the checkbox that I wanted to store the pw. Now the pw on the other machine has changed but Remote Desktop Viewer does not ask for a new password, it just gives me a black screen, like I am connected but I can't see anything. I'd like to know if anyone knows where this pw data is stored on the system so I can start fresh. I already tried uninstalling Remote Desktop Viewer and installing it again.

View 1 Replies View Related

Fedora :: Share Default Profile File By NIS Not Have To Setup Profile In Every NIS Clients?

Jul 28, 2010

How do I share default profile file by NIS so that I do not have to setup profile in every NIS clients?

View 3 Replies View Related

Ubuntu :: Edit Profile.ini To Lead To Windows Profile

Dec 21, 2010

I've already gotten into the .mozilla folder and found the profiles.ini file. My windows XP system has it's Documents and Settings folder on a seperate drive (D:Documents and settings) And I've located the profile (application datamozillafirefoxprofiles) Now all I need to do is put the path into the profiles.ini file in the .mozilla folder in Ubuntu. The problem is I don't know exactly how to format it.

In windows the path is:

How would I translate this into something ubuntu "follows?" I already have the profile name changed as well.

View 1 Replies View Related

Software :: Build A C Compiler Without An Existing C Compiler?

Dec 14, 2010

So for those of you who has built GCC from source would know that you can't install GCC without an existing GCC. So my question is, what would happen if all computers in the world suddenly just died, and all you had was the computer in front of you, and a copy of GCC 4.5. How would you install that?

I ask because I would like to install GCC 4.5 on my old powerbook G4 mac without installing a binary GCC provided by Tiger 10.4 disks. I would like to build GCC from source, without an existing GCC to complicate updating.

View 6 Replies View Related

Programming :: Makefile Flags ?

May 19, 2010

I have problems with linking object files.

This is what I get:

View 8 Replies View Related

Programming :: In ASM - When Will The FLAGS Will Be Reset

Mar 14, 2011

I am executiong a instruction, ADD CX, BX ;which affects the (carry flag) CF =1

Now, my question is when (CF =0) it will be reset ?

Is there any constrains for other flags/instruction to reset FLAGS?

View 1 Replies View Related

General :: List Of All UNIX Flags ?

Jun 29, 2011

I have beeen trying to find a list of all flags that can be used in UNIX and their meaning but I have had no luck.

Does anyone know if such a list exists?

If so where can I find it?

View 10 Replies View Related

Software :: Best GCC Flags For Memory And Size?

Sep 7, 2010

I am creating a very minimal LFS distro that will be targeted towards a very low ram machine as a server.

The machine has 32MB of RAM and a P3 Processor.

I am using a flash drive as the hard drive. The flash drive is rated at 512 MB.

The processor I am not worried about but the RAM I am.

What would be the best optimization flags for RAM and Size?

I didn't set "march" to "native" because I am building the LFS distro on a much much faster PC and going to run it on the older PC.

I know: CFLAGS="-Os -s -march=pentium3" is the minimal but is there anything else?

Should I use "-march=pentium3" or "-march=i686"?

View 2 Replies View Related

Debian Installation :: Installing Metapackages With Apt-get Flags?

Jul 23, 2015

I'm researching how I want to go about making my own LXDE install without using any of the options from tasksel. I have a few questions about metapackages.

First: Will the apt-get flags "--install-suggests" and "--no-install-recommends" affect what is installed from metapackage dependencies?

For example, if I install the lxde package, it also installs lxde-core. If I do:

Code: Select allsudo apt-get install lxde --no-install-recommends will recommended packages from lxde-core also be excluded?

Second: Is there a way to automatically install the alternative "or" packages listed?

For example, [URL] lists several alternatives to the defaults: audacious instead of lxmusic, transmission instead of deluge, etc.

View 2 Replies View Related

Fedora :: Set Default Gcc Flags For Building Packages

Nov 2, 2009

I have several questions:

Is it possible to find out with which flags system was build?

Is it possible with what options and flags application was built ( mplayer for example)?

How to set default gcc flags for building packages in fedora?

View 2 Replies View Related

Ubuntu :: ERROR While Getting Interface Flags - No Such Device

Mar 26, 2011

i am trying to connect my AWUS036H to my Compaq CQ60 laptop running Ubuntu 10.10. when i check ifconfig, one minute my wlan1 is there, next minute its not, if i try to do a sudo ifconfig wlan1 up i get, wlan1: ERROR while getting interface flags: No such device and when i try it again it accepts the command no probs, i suspect this is because the device is in and out every few seconds. when i checked rfkill, i found a hard block which i resolved with unblock all, i have checked the unit under windows and it works just fine so i suspect it is a problem with my ubuntu

View 2 Replies View Related

General :: Automatically Append Flags To Certain Commands?

Feb 12, 2011

Greetings, I want to automatically append flags to certain commands. For example, when I type:

ls

at the prompt, I want the

-la

flags automatically appended without me having to type:

ls -la

View 2 Replies View Related

General :: Error While Getting Interface Flags No Such Device

Jun 28, 2011

While using wifi slax every gos ok until i get wlan0 error while getting interface flags no such device how can i fix this.

View 1 Replies View Related

Programming :: C++ - Where To Place Library Flags In A Makefile?

Apr 10, 2011

If I would normal compile using the following line:

Code:

Where should those library flags go in a makefile? Say I having the following makefile:

Code:

all: ${PROGS}

clean:

View 8 Replies View Related

Fedora Security :: Restricting Xattr Flags With Selinux ?

Jul 12, 2009

I've got a question about chattr command. is it possible to restrict a root access for this command. what i want is something similar to freebsd behaviour aka the kernel secure level. setting a particular security level results in limiting some operations (i.e changing immutable flags on files) by root. well, if someone gained an access to a machine in some way, nothing would stop him changing the file's flags. so the question is if it can be achieved with selinux?

View 2 Replies View Related

OpenSUSE :: Chromium Crashes After Enabling Stuff In About:flags

Dec 8, 2010

Chromium was running fine , till i enabled GPU Acceleration , Click2Play and tabbed preferences from "about:flags" ... Now every time i start chromium it instantly crashes..

This is the crash report :

----------- .xsession-errors ---------------------
[5095:5095:2310863628:ERROR:base/native_library_linux.cc(32)] dlopen failed when trying to open /usr/lib/chromium/libffmpegsumo.so: /usr/lib/chromium/libffmpegsumo.so: cannot open shared object file:
[5097:5097:2310891375:ERROR:base/native_library_linux.cc(32)] dlopen failed when trying to open /usr/lib/chromium/libffmpegsumo.so: /usr/lib/chromium

[Code].....

I think i need to disable GPU acceleration to get it running... so i need to disable it from a config file in /home/.config/chromium .

View 1 Replies View Related

Ubuntu Networking :: ERROR While Getting Interface Flags: No Such Device

Apr 9, 2010

I am having an odd problem with a program I'm trying to run which is supposed to connect to a network. The messages printed when I start up the program are:

SIOCSIFNETMASK: No such device
192.168.11.50: ERROR while getting interface flags: No such device
SIOCADDRT: File exists

One reason this is particularly odd is that the network itself appears to be working fine, otherwise. I can connect to the internet on my computer and everything, but the program is not able to connect to it, for whatever reason. I've tried tinkering with the settings but nothing worked.

View 3 Replies View Related

Ubuntu :: Use Flags As Language Indicators On My Gnome-panel?

May 4, 2010

I use 4 languages on my Gnome Desktop, that's the max that they allow! I also use flags as language indicators on my gnome-panel. The problem is that, I am using two Indian languages and the flags for these two is the same.. (The Indian one!) I would like to use custom flags for these two languages.. I know that I have to place them in /usr/share/pixmaps/ ..... But, how do I ensure that these two languages target two different files? Presently both the languages are using the in.png file...

View 3 Replies View Related

Ubuntu Networking :: ERROR While Getting Interface Flags: No Such Device (tried The Ra0 As Well)

Mar 29, 2011

I wanted to stop hi jacking the work around thread. I'm running Kubuntu 64 bit I started by following this walk through[URL].. everything is fine until i get to Step 5 this line :

sudo ifconfig wlan0 down (on some hardware it is ra0)I receive this output: wlan0: ERROR while getting interface flags: No such device I started browsing other threads to see what else could be happening. I ran this line : sudo lshw -C network

with an output of:
*-network:0 UNCLAIMED
description: Network controller
product: RaLink
vendor: RaLink
physical id: 0
bus info: pci@0000:06:00.0
version: 00
width: 32 bits

[Code]...

View 9 Replies View Related

Ubuntu Installation :: Compile Flags For Paralel Building?

May 28, 2011

this is how to set your ubuntu for compiling to use multi processor. some older packages require you to use only 1 processor. so comment the export make flag, then "echo $MAKEFLAGS" to see how many processors your using you might need to "source .bashrc" to update the rc file

Code:
cat >> ~/.bashrc << "EOF"
# parallel compile settings

[code]....

View 2 Replies View Related

General :: Can Both EXT4_FEATURE_INCOMPAT_META_BG And EXT4_FEATURE_INCOMPAT_FLEX_BG Flags Turn On The Same Time

Mar 16, 2010

Can both EXT4_FEATURE_INCOMPAT_META_BG and EXT4_FEATURE_INCOMPAT_FLEX_BG flags turn on the same time? If yes, I am wondering whether there is a correlation between the numbers of block groups in META group and FLEX group. Where are backups of superblock and group description table (GDT) stored in this case?

View 1 Replies View Related

Networking :: Location Of Standard Interface Flags On SUSE

Jun 15, 2010

I am reporting various network statistics in a c++ program by reading the values out of /proc. However, I am having trouble determining the link status. In particular, I am wondering:

1. How are the standard interface flags (IFF_UP, IFF_RUNNING) as referenced in if.h accessed from user land? The ifconfig man page lists its files as

/proc/net/socket (doesn't exist in suse), /proc/net/dev, and /proc/net/if_inet6. None of these seem to contain these flags.

2. ip link show reports a "NO-CARRIER" flag. How does this correlate with the "UP" and/or "RUNNING" flags as reported by ifconfig, and how is it accessed from user space?

View 1 Replies View Related

Programming :: Cannot Seem To Find Any Good Documentation On Role Of Flags

Mar 16, 2010

I cannot seem to find any good documentation on the role of flags -Bdynamic and -Bstatic in g++. The man pages are not very helpful either.I found an example on the web:"gcc object1.o object2.o -Wl,-Bstatic -lapplejuice -Wl,-Bdynamic -lorangejuice -o binary".According to which -Bstatic instructs the linker to statically link
the applejuice library and to dynamically link the orangejuice library. If orangejuice uses the applejuice library anywhere however,the applejuice is also linked dynamically. Is it correct to assume that this is correct and describes the true functionality of those two flags in gcc? (ie: Bstatic and Bdynamic are used for mixing static and shared libraries during linking)Is it correct to assume that the same applies to g++ as well?

View 2 Replies View Related

Ubuntu Networking :: Eth3: ERROR While Getting Interface Flags: No Such Device

Jun 14, 2010

yesterday without reason my eth0 dissappeared. I read through various threads, tried couple of things, and now its s back as eth3. If I bring up the network on the console it says [OK], but I cant ping my router or access any website.

BTW: During the proccess I removed network-manager-kde, which I regret now (cause I cant install it again w/o network). Even so my network was configured manually, it would be good to have it now for testing connections. The machine also got no CDROM-drive, I installed via USB.

EDIT: I booted up again, and now eth3 is gone again I get the former error message when I restart the network: "eth3: ERROR while getting interface flags: No such device"Same with all other ethX. As far as I can see w/ my basic knowledge, the realtek adapter is present and working. ifconfig only shows me "lo" nothing else.

View 9 Replies View Related

Ubuntu Servers :: Bond1: ERROR While Getting Interface Flags: No Such Device

Oct 14, 2010

On Ubuntu Server 10.10 the second bond device won't come up. Someone please advise the correct configuration. Error message when I run /etc/init.d/networking restart:

Code:
SIOCSIFADDR: No such device
bond1: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
bond1: ERROR while getting interface flags: No such device
bond1: ERROR while getting interface flags: No such device
Failed to bring up bond1.

[code]...

View 5 Replies View Related

Programming :: Makefile: Change Compilation Flags By Changing Target Name

Nov 12, 2010

I'd like to create a target named "debug" or something similar which will use some special optimization flags useful when debugging (for example -ggdb). At the moment my makefile is neat (which I like) and looks like

Code:
SRC = $(wildcard *.cxx)
OBJ = $(SRC:.cxx=.o)
INCDIR = -I.
LIB = -lm

[Code]....

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved