gnu

Best General GNU/Linux Book

What is the best general GNU/Linux book? I've been occasionally using Linux for a few years, but I could still benefit from a good complete manual that isn't tied too closely to a specific distribution. Is there one that stands above the rest? I am fine with online books too. Topics I'm interested in include file systems, security, direc...

GNU Compiler Debug 'Level'

While browsing the various option switches for my compiler (GNU C++ 3.2.3 is supported by my organization for my given hardware configuration), I ran across this: -glevel : Level 3 includes extra information, such as all the macro definitions present in the program. Some debuggers support macro expansion when you use -g3. I compile...

Problem compiling gnustep-gui-0.16.0 undefined reference to png_sizeof

I'm trying to compile GNUstep on a linux box but gnustep-gui-0.16.0 package is failing. I downloaded GNUstep Startup stable 0.20.1 (http://wwwmain.gnustep.org/resources/downloads.php)and follow instructions about how to compile (./configure && make). I'm getting this error: libgnustep-gui.so: undefined reference to 'png_sizeof' I have ...

What make g++ include GLIBCXX_3.4.9?

I compiled 2 different binaries on the same GNU/Linux server using g++ version 4.2.3. The first one uses: GLIBC_2.0 GLIBC_2.2 GLIBC_2.1 GLIBCXX_3.4 GLIBC_2.1.3 The second one uses: GLIBC_2.0 GLIBC_2.2 GLIBC_2.1 GLIBCXX_3.4.9 GLIBCXX_3.4 GLIBC_2.1.3 Why the second binary uses GLIBCXX_3.4.9 that is only available on libstdc++.so.6.0...

Limiting visibility of symbols when linking shared libraries

Some platforms mandate that you provide a list of a shared library's external symbols to the linker. However, on most unixish systems that's not necessary: all non-static symbols will be available by default. My understanding is that the GNU toolchain can optionally restrict visibility just to symbols explicitly declared. How can that b...

Linking symbols to fixed addresses on Linux

How would one go about linking (some) symbols to specific fixed addresses using GNU ld so that the binary could still be executed as normal in Linux (x86)? There will not be any accesses to those symbols, but their addresses are important. For example, I'd have the following structure: struct FooBar { Register32 field_1; Regist...

How do I use GNU Screen transparently

I want to use GNU screen in such a way that the user doesn't know it's there. It's to help ensure that a text based management application that I'm writing can only be used by a single user at a time. To guard against against users locking everyone else out by running the application and going, leaving it running when going on holiday, I...

How do I change the "[remote detached]" message in GNU Screen

When I remote detach a screen session and connect to it myself (screen -r -d), I see the following on the detached session. [remote detached] Is it possible to change this message? ...

Can someone explain this directly assembled x86 JMP opcode?

At school we have been using a bootstrap program to run stand-alone programs without an operating system. I have been studying this program and when protected mode is enabled there is a far jump executed by directly assembling the opcode and operands as data within the program. This was for the GNU assembler: /* this code imme...

Dependency problem with gnu make

Hi all, I am facing a rather strange problem with make. My make file contains: all: item1 item2 item1: dep1 dep2 dep1: @echo cd $(HOME)/apps; /bin/rm -f $(D_ALL_OBJECTS) cd $(SRCHOME)/fusionapps; make -k -f $(SOMEMAKEFILE) $(D_ALL_OBJECTS) @echo dep2: @echo cd $(HOME)/apps; /bin/rm -f $(D2_ALL_OBJECTS) cd...

How to compile simple C file using GNU C Compiler/gcc & Mobile-Terminal on the iPhone?!

How to compile simple C file using GNU C Compiler/gcc & Mobile-Terminal on the iPhone?! Do I need extra files? ...

Why does e.g. Object inheritsFrom: fooobaar return true in Smalltalk?

It seems that the inheritsFrom: method in GNU Smalltalk returns true for every undefined class name sent to it as a parameter. This might make a program very hard to debug, IMHO. Looking at the code for this in the Behavior class, it looks like this: inheritsFrom: aClass [ "Returns true if aClass is a superclass of the receiver" <categ...

GNU Licensing

I am in a bind here. I found some old code written a long time ago, that someone had implemented under the GNU public license, in .NET 1.1. The original code was language agnostic, essentially a file parser. The .NET implementation of this parser was also released under GNU General Public License as a class library, i.e. a single DLL(Ass...

[GNU Smalltalk] Why can I not create a new subclass and use it in the same sentence?

I am wondering why the following does not work in GNU Smalltalk: Object subclass: Foo [ ] new printNl I was expecting a printout of something like "a Foo", but instead gst prints "nil". Doesn't this seem a bit odd? ...

How do you detach the 2nd screen from within another screen?

I've accidentally attached to a 2nd GNU screen session from within an existing screen session and cannot detach or issue commands to the inner screen. I remember figuring out how to do that before but completely forgot and would like to keep it as reference. One way is to detach the inner screen by doing screen -dr from shell, but what ...

How can you find out the maximum size of the memory stack for a C++ program on linux? (gnu compiler)

I am curious about how to find out what the maximum stack size is for a particular compiler/os combo. I am using Ubuntu/GNU compiler. A few questions I have in addition are: Who controls the default maximum stack size; OS or compiler? Is the default maximum scaled according to total memory? (ie a machine with 2gb memory would have larg...

Is it possible to use MIPS register names with GAS (GNU assembler)?

If I use register names I get: Error: illegal operands `add $t0,$zero,$zero' If I use register number ($8 instead of $t0 and $0 instead of $zero) it works. (I'm using binutils 2.17). ...

Where can I find an interrupt list for i486-linux-gnu instruction set?

I am developing a compiler for my senior project in school, and I am using AS (GNU Assembler) to assemble. All of my tests have been fairly successful, but no interrupt lists I have seen have seemed to work or match up with my test code. The relevant information for this version of AS: GNU assembler 2.17 Debian GNU/Linux Copyright 2005...

how to build GNU Classpath and JamVM

I'm trying to build GNU Classpath 0.98 and JamVM 1.5.2. Following the JamVM readme, I did 'configure; make; make install' on the jamVM, and it worked. I then added jamvm and Sun javac to the path. Then with GNU Classpath I did this: ./configure --enable-jni --disable-gtk-peer --disable-gconf-peer --disable-plugin I got this error: Th...

How do I diff utf-16 files with GNU diff?

GNU diff doesn't seem to be smart enough to detect and handle UTF-16 files, which surprises me. Am I missing an obvious command-line option? Is there a good alternative? ...