Questions tagged [gnu]

This tag is for programming questions related to software and tools provided by the GNU ("GNU's Not Unix") project.

The GNU Project is a free software, mass collaboration project, announced on September 27, 1983, by Richard Stallman at MIT. It initiated GNU operating system development in 1984. The founding goal of the project was, in the words of its initial announcement, to develop "a sufficient body of free software [...] to get along without any software that is not free."

To make this happen, the GNU Project began working on an operating system called GNU ("GNU" is a recursive acronym that stands for "GNU's Not Unix"). This goal of making a free software operating system was achieved in 1992 when the last gap in the GNU system, a kernel, was filled by the third-party Linux kernel being released as Free Software, under version 2 of the GNU GPL.

2807 questions
15
votes
4 answers

Handling file paths cross platform

Do any C++ GNU standalone classes exist which handle paths cross platform? My applications build on Windows and LInux. Our configuration files refer to another file in a seperate directory. I'd like to be able to read the path for the other…
Superpolock
  • 3,515
  • 7
  • 30
  • 24
15
votes
6 answers

/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

I am trying to install roccc 2.0. I have installed required packages. Now while installing it, it is giving me this error: /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory I searched for gnu/stubs-32.h and came to…
user2931
  • 151
  • 1
  • 1
  • 5
14
votes
1 answer

Is there an equivalent to the GNU linker "--just-symbols" option for non-GNU linkers?

-R filename --just-symbols=filename Read symbol names and their addresses from filename, but do not relocate it or include it in the output. This allows your output file to refer symbolically to absolute locations of memory defined in other…
Adrian
  • 14,931
  • 9
  • 45
  • 70
14
votes
4 answers

ERE - adding quantifier to group with inner group and back-reference

Was trying to get words with consecutive repeated letters occurring twice or thrice. Not able find a way to use quantifier and capture group using ERE $ grep --version | head -n1 grep (GNU grep) 2.25 $ # consecutive repeated letters occurring…
Sundeep
  • 23,246
  • 2
  • 28
  • 103
14
votes
5 answers

What does GNU mean?

Yes, I know GNU means 'GNU is Not Unix', but what's that GNU?? I mean, if I substitute GNU in its own definition, I get 'GNU is Not Unix is Not Unix', and I can do it again infinite times. It could sound quite stupid as a question, but I really…
BlackBear
  • 22,411
  • 10
  • 48
  • 86
14
votes
6 answers

How to install gnu gettext (>0.15) on windows? So I can produce .po/.mo files in Django

When runing django make messages: ./manage.py makemessages -l pt I get: CommandError: Can't find msguniq. Make sure you have GNU gettext tools 0.15 or newer installed. I tried to install but the last version I find with an Instalation Setup is…
NBajanca
  • 3,544
  • 3
  • 26
  • 53
14
votes
5 answers

Library for parsing arguments GNU-style?

I've noticed the basic 'style' of most GNU core applications whereby arguments are: --longoption --longoption=value or --longoption value -abcdefg (multiple options) -iuwww-data (option i, u = www-data) They follow the above style. I want to avoid…
Delan Azabani
  • 79,602
  • 28
  • 170
  • 210
14
votes
2 answers

Design and usage of the memfrob function

From the man page of memfrob: void *memfrob(void *s, size_t n); The memfrob() function encrypts the first n bytes of the memory area s by exclusive-ORing each character with the number 42. The effect can be reversed by using memfrob() on the…
syntagma
  • 23,346
  • 16
  • 78
  • 134
14
votes
2 answers

In GNU Assembler, what does a dot signify at the beginning of a name?

The following is a line from a microprocessor startup file, intended for input into the GNU assembler as: .section .isr_vector,"a",%progbits Does the dot at the beginning of the name .isr_vector mean anything special? PS: This name is referenced…
Sabuncu
  • 5,095
  • 5
  • 55
  • 89
14
votes
2 answers

How do I change the order in which grep looks at files/prints results?

I have a directory with a bunch of files with numerical filenames. They don't have leading zeroes, so if I do something like grep hello * in that directory I might get something like this: 22:hello, world! 6:hello 62:"Say hello to them for me." I'd…
Pandu
  • 1,606
  • 1
  • 12
  • 23
14
votes
1 answer

GNU make wildcard function doesn't find runtime generated files

Summary: I'm using GNU Make (3.81) on a unix-like system and I've run into an issue where the $(wildcard, pattern) function is unable to find a file generated by a (presumably/apparently?) previously executed recipe, whereas other programs (e.g. ls)…
Francis
  • 143
  • 1
  • 5
13
votes
7 answers

Linux: Block until a string is matched in a file ("tail + grep with blocking")

Is there some one-line way in bash/GNU tools to block until there's a string matched in a file? Ideally, with timeout. I want to avoid multi-line loop. Update: Seems like I should have emphasize that I want the process to end when the string is…
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
13
votes
3 answers

PKG_CHECK_MODULES syntax error near luajit

I'm new to GNU autotools.In my project when i try ./configure it generates following error : ./configure: line 9852: syntax error near unexpected token `luajit,' ./configure: line 9852: ` PKG_CHECK_MODULES(luajit,…
Prabhakar
  • 513
  • 1
  • 5
  • 22
13
votes
0 answers

ld: unknown option: --no-as-needed. Any workaround?

I am trying to install a project which was developed on Ubuntu, but now I am trying to make it run on Max OSX - version: 10.10.5 (Yosemite). My current ld version that comes by default with OSX: ld -v @(#)PROGRAM:ld PROJECT:ld64-253.3 configured to…
Abhishek Balaji R
  • 665
  • 10
  • 25
13
votes
2 answers

Why .SECONDARY does not work with patterns (%) while .PRECIOUS does?

My question is to understand better what i missed in make process and .SECONDARY purpose vs .PRECIOUS, not to get my script working, since it does work already. I am using make to either open a emacs editor on a file ( java but irrelevant for…
philippe lhardy
  • 3,096
  • 29
  • 36