Programming :: Any Option To Make GCC Case Insensitive
Jul 11, 2010
I am working with a third party that use windows to compile. When we port that code I am running into a lot of case issues where the includes are not case sensitive. Is there any option in GCC to make it case insensitive. I know its a long shot, as I have done reading and does not seem so.
I'm rsync'ing a bunch of files between a Windows and a Linux system. Since not all Windows care about case, some of the files on the Windows system no longer have the same casing as they had on the Linux system. But rsync now treats these files as different and uploads a new copy.
Recently I've been migrating my development environment to ubuntu (desktop edition, because this is not a server, is just my computer) and I've been having some problems with apache case-sensitive (I'm an absolute beginner with it). I want to make apache case-insensitive, but I didn't find a complete and easy to follow solution online more than doing this:
From the command line, type sudo su to get root privileges. nano /etc/apache2/mods-available/speling.conf Type CheckSpelling on and hit ctrl-x, y to exit and save the file. type a2enmod and then speling and hit enter. type /etc/init.d/apache2 reload to reload apache. Mistype a url to test it.
I found that here: [URL]. It worked for some things but I'm still having a lot of problems with capitalization. I don't wanna go back to windows an ISS. BTW I'm using ubuntu 10.10 desktop edition 32-bits, and I've not moved any apache configuration more than that described above.
I'm using Centos 5.4 and Subversion 1.4.2. I use MySQL to authz user when connect to SVN. In MySQL database, I have a username 'Harry', and in the file access control, I typed username 'harry'. Now I just can login with 'harry' user, cannot with 'Harry'. How can I check lower case on SVN before it requires authz, I tried to use AuthzForceUsernameCase Lower but apache cannot start.
This is my subversion.conf file <Location /> DAV svn SVNParentPath /svn SVNListParentPath on AuthType Basic AuthName "Authorization Realm" AuthzSVNAccessFile /var/svn/svnauth AuthMYSQLEnable on AuthMySQLHost mydomain AuthMySQLUser username AuthMySQLPassword password AuthMySQLDB db AuthMySQLUserTable user AuthMySQLNameField userid AuthMySQLPasswordField passwd AuthMySQLPwEncryption md5 Require valid-user </Location>
Is there a way I can mount NTFS and VFAT partitions and make them case-insensitive? Somehow I installed Linux this time around and it's all case sensitive. Argh.
The issue which I am having is that, when it does the search for the correct row to be inputted into valuecheck, it will input the value as written in the database, which is in Uppercase. For this case, if I type in stupid for $Title and jerlyn for $Author, it searches the correct row, but the awk will print "STUPID" into the variable as that is what is written in the database. So how can I make my if statement case insensitive? Currently it reads like this:
Code: if [ $Title = $valuecheck ] ; then which means if [stupid = StUPiD ] ; then
How can I make the if statement it case insensitive to allow it to display "HOHOHO"
I am downloading some files via tftp from the server (call it my server) and I need the server to be case insensitive to the file names requested. That is If I request "SoMe.TTL" and the actual file name is "some.ttl" it should send "some.ttl" back! Right now it is case sensitive and is a pain in the but because some windows clients upload files to that directory and the names can have any case. Furthermore, the file request mechanism must allow the user to input the required file name, hence the user can write using any case. Can the tftp-server solve cases by it's own? How about dnsmasq's internal tftp server? Ok, maybe I wasn't explicit above: I need to make the fedora tftpd-server Case Insensitive!
(i) I usually make multiple dir using -p optionex: mkdir -p dicttest/audrep/tdriver/testNow after creating this dir's i stay in current dir instead i want to go directly to test dir how can i acheive this.(ii) When i execute which command as followswhich testerm i will get the location of testterm now i want to open this filewhen i did in this wayhich testterm | vi The file dosent get opened how can i acheive this ?ex:
linuxx86:110$ which testterm /view/rdl110_linuxx86/vobs_usrrdl/sc/testterm linuxx86:110$ which testterm| vi
I am dealing with one FORTRAN 90 code, have made small changes.
milenko@milenkons:~/mt4$ make mt4 make: 'mt4' is up to date. milenko@milenkons:~/mt4$ ifort -c MT2DDIB1.FOR milenko@milenkons:~/mt4$ make mt4 make: 'mt4' is up to date. milenko@milenkons:~/mt4$ make mt4 make: 'mt4' is up to date. milenko@milenkons:~/mt4$ make mt4 make: 'mt4' is up to date.
I go for make command but it does not see that the source code has been modified.Than I do compilation from command line,try make again but no use. F95=ifort FFLAFGS= -O1
I do 'mkisofs -iso-level 1 -o image John Smith.txt'. Only an example. When I mount image, ls outputs john_smi.txt. So it has shorten to 8.3 and translated ' ' into '_'. This is in accordance with the manual, although it doesn't say the conversion will be done.
Quote:
-iso-level level ......................... With all iso9660 levels from 1..3, all filenames are restricted to upper case letters, numbers and the underscore (_). ...........................
However, as it did not reject the file name, it should have converted it to all upper case, it seems to me. And -iso-level 2|3 does the same thing.
Code:
root@darkstar:~# mkisofs -iso-level 1 -o image John Smith.txt Total translation table size: 0 Total rockridge attributes bytes: 0 Total directory bytes: 0
As you know that GNU-C provides qsort() function in <cstdlib> in this prototype
Code:
You may know about Selection Sort Algorithm already, I want to write a function to perform Selection Sort but it can apply generally for many type: int, long, float, double... like qsort() above.
the following works and BASH doesn't complain, but VIM highlights the closing square bracket is if it sees a syntax error. Is there a better way to express regex in a case statement or is this an issue with VIM?
I'm having this problem with this piece of code, and i don't really get what the problem is, maybe is because i am already too sleepy to concentrate enough but maybe
I want to display 4 options using the case command and refresh the screen when options 1 and 2 are chosen (no changes to the options and you get asked again to chose option), but give a message for option 3 and exit on option 4. I set this up with the script below, but choosing option 1 works and choosing option 2 exits the script.
I have a file like below. For all the lines (except for the ones listed as 'Unknown Owner' and N/A') I would like to change to lower case and concatenate the first and last names.Before:
Code: aaa.bbb.ccc.ddd,Unknown Owner ddd.eee.fff.ggg,N/A hhh.iii.jjj.kkk,John Doe aaa.bbb.ccc.ddd,Mary Jane
As you can see, I want to pass arguments depending on the option(s) chosen by the user; ie. --snooze, or --channel. By default, if no options are chosen, I'll display a usage message; though in the future I'll provide some sane defaults. I'd like to create a case statement to handle passing arguments to any number of options; something like:
Code:
wakethehellup.sh --snooze 20 --message 'wake up!'
and for the other arguments, it would have a default set. The case statement I provided fails with a syntax error "syntax error near unexpected token `$2'" near the '--snooze' in the statement, so I take it you can't pass a parameter in this way; but I'm confused as to how I'm supposed to pass different parameters to different options without the options being confused as parameters.
Few months back I learnt a *few* concepts about bits/bytes and started writing a program for bit packing in C++. Now that program has grown upto 600 lines and I am still working on it. Yesterday I realized I missed some special cases due to which the program was malfunctioning. Now I have modified the program and it is working properly but I think If I would have designed all the possible test cases before writing the code, I would have finished the program long ago.
I. What is proper way to design the test cases before coding?
II. How should I make sure that I do not miss any cases while making the test case doc. ?
III. Does writing test cases prior to coding solve messy code issues or should I consider something else ?
I wasn't sure where to put this so if I need to move it just let me know.I have a strange problem that I cannot figure out. When I use gdb to debug our rpm-installed program, it says (no debugging symbols found) when it loads. Thing is, when I use nm on the program it can print the symbols, and even stranger is if I use gdb on the program before it is packed up by rpmbuild it loads the debug symbols just fine.Our program is built via the standard make using:GS=-g -Wall-pedantic and as I mentioned I can debug the resulting program. After the build, I package it up using:
cmd="rpmbuild -v -bb ptsnmp.spec --define "ver ${cmvc_release}" --define "rel ${cmvc_level}" --define "_topdir $rpmdir""When this package is installed via rpm, the binary on the machine shows all the debug info via nm, file shows it is not stripped:pt_snmp: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not strippedyet when I try to debug it I get the no debugging symbols found.This is really taxing my brain and I am sure I am just missing something
I tried to add my wife , and when I put in a password for her, this error comes up."Please set a valid user name consisting of a lower case letter followed by lower case letters and numbers." I did all that and I still can't set a password for her.
I've got an old iMac g3 on which I'd like to install Ubuntu Dapper Drake.Here's the problem:I insert the disk in the computer.Keep pressing "C" till this comes out:Quote:"The default option is "live" bla bla bla but in case of problems use "Live video=ofonly"I write "Live".The orange progress bar appears, but the the screen becomes black.I still can hear sounds: the classic ubuntu log-in music, but I can not see anything: I guess the live has started, but the screen is just black.By pressing CTRL-ALT-BACKSPACE I'm able to come back to shell.
Once rebooted, I try "Live video=ofonly".Again the orange progress bar, but then this message comes outQuote:"Failed to start the X Server, It is likely that is not set up correctly. Would you like to view the server output to diagnose the problem?"Even if I dont select anything, some random words appear in the screen, too fast for me to read them.Then I'm back to shell.I read here (that the problem is caused by Xorg and that the solution can but editing his configuration by using Quote:sudo nano /etc/X11/xorg.confBut I just don't know when to do that: Ubuntu is not installed yet and there is only MacOS 9.2 on that machine.
I'm sorry to post so much, but every time I solve one problem another comes up! xD
Anyways, I created an install CD for the newest Ubuntu, and the CD works. I used it to install Ubuntu, but when I went to reboot to complete the setup, it just went back to Windows normally. Then when I booted from the CD directly, bypassing Windows entirely, my monitor displayed "No sync" and refused to display anything until I turned off all power to the computer and restarted into Windows normally.
I downloaded kernel 2.6.30 for my project. But I want to see the all symbol and debugging information. So, I try to use option "-g" with make file I don't know how...
I just know the make kernel "make all"
If I want to use "-g" option for vmlinuz with whole symbol for debugging, how can I put that "-g" option into the "make"
Do I have to modify the "Makefile" ? or "only command is possible like make -g something...."