gnu

Is there a way to parse a dependency tree from a build script output?

I have an inherited project that uses a build script (not make) to build and link the project with various libraries. When it performs a build I would like to parse the build output to determine what and where the actual static libraries being linked into the final executable are and where are they coming from. The script is compiling ...

Java Compiler Options to produce .exe files.

What compiler (I'm using gcj 4.x) options should I use to generate an "exe" file for my java application to run in windows? ...

How did you learn the GNU make tools?

I've been a professional web developer for about five years now, and have compiled many many things for servers. I've also written many simple C programs (one or two files). The main thing which has held me back from creating more complex applications is the fear of leraning to the GNU build tools. The documentation is huge and a bit in...

Need gcc/g++ working on SCO6

Has anyone found a way to get gcc to build/install on SCO6? With 2.95 and 4.3 I get to the point where it needs to use (2.95) or find (4.3) the assembler and that's where it fails. If anyone has figured this out I would appreciate the info! Thanks ...

Pause a DOS Console/GNU Makefile if an error occurs

Part of the install for an App I am responsible compiles some C code libraries. This is done in a DOS console using GNU Make. So, as part of the install, a DOS Console window pops open, you see the make file output wiz by as it compiles and links, when finished the DOS Console window closes and the installer continues. All good, unless...

GnuPG: "decryption failed: secret key not available" error from gpg on Windows

Environment: HP laptop with Windows XP SP2 I had created some encrypted files using GnuPG (gpg) for Windows. Yesterday, my hard disk failed so I had reimage the hard disk. I have now reinstalled gpg and regenerated my keys using the same passphrase as earlier. But, I am now unable to decrypt the files. I get the following error: ...

What is the recommended version of GNU autotools?

We maintain a RPM based software distribution at work so that we have a common set of software across all the platforms that we support. As a result we have to build a lot of third party software, and frequently find situations where we need to run autoconf/automake/libtoolize/etc to get it to build on Solaris or another platform. I'...

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 configuration file into a class which would work on both Linux or Windows. Which class would o...

What GNU/Linux command-line tool would I use for performing a search and replace on a file?

What GNU/Linux command-line tool would I use for performing a search and replace on a file? Can the search text, and replacement, be specified in a regex format? ...

Is there a nice way of handling multi-line input with GNU readline?

My application has a command line interface, and I'm thinking about using the GNU Readline library to provide history, an editable command line, etc. The hitch is that my commands can be quite long and complex (think SQL) and I'd like to allow users to spread commands over multiple lines to make them more readable in the history. Is it...

How do I check syntax in bash without running the script?

Is it possible to check a bash script syntax without executing it? Using Perl, I can run perl -c 'script name', is there any equivalent command for bash scripts? Thanks. ...

What's the bare minimum Cygwin install to have DDD running properly on XP?

I’m using the gcc in MinGW that comes with Strawberry Perl, on Windows XP. I’d like to have ddd (the Data Display Debugger) as well but apparently on Windows the simplest way to get ddd is by running Cygwin. So what's the bare minimum of Cygwin I can install to get ddd up and running? I'd prefer if I could run ddd natively on Win32 but t...

How do you use gcc to generate assembly code in Intel syntax?

The gcc -S option will generate assembly code in AT&T syntax, is there a way to generate files in Intel syntax? Or is there a way to convert between the two? ...

Flash developers: what versions of Flash do you test your stuff with?

I'm curious as to what versions of Flash stuff is tested with. How do you manage it across different browsers? I'm wanting to test things with both swfdec and gnash and hoping maybe there's some way I didn't know about... ...

What GNU tools for refactoring are there?

How to refactor c source code that compiles with gcc, preferably a tool that can be used from the command line? ...

How can I record what process or kernel activity is using the disk in GNU/Linux?

On a particular Debian server, iostat (and similar) report an unexpectedly high volume (in bytes) of disk writes going on. I am having trouble working out which process is doing these writes. Two interesting points: Tried turning off system services one at a time to no avail. Disk activity remains fairly constant and unexpectedly hi...

What is the command to match brackets in Emacs?

Hi, What is the command to match brackets in Emacs (the equivalent of the '%' command in vim)? ...

What does the gnuwin32 program: [.exe do?

Looking in the gnuwin32/bin directory, there is an odd-looking program file named [.exe I couldn't find it in the documentation, gnuwin32.sourceforge.net or in a google search, so I ran it and got: $ [ [: missing `]' $ so I gave it ] as a parameter and got $ [ ] $ It didn't complain, so I assumed it was on the right track. I trie...

Include binary file with GNU ld linker script

I have a working linker script. I want to add another data section whose contents is pulled directly from a file (ld shouldn't parse it and extract the sections and so on). How can I do that? OUTPUT_FORMAT("elf32-i386") ENTRY(start) SECTIONS { .text 0x100000 : { *(.multiboot) *(.text) *(.code) *(.rodata*) } .data :...

Relocatable symbols in ELF format (assembly language)

We are developing a port of the GNU Assembler for a client architecture. Now the problem being faced is that: If an immediate operand to an instruction is an expression involving more than one relocatable symbols, how is it handled in output file in elf format. What will be the relocation information produced in such a case? For exampl...