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...
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...
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 ...
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...
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...
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...
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...
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?
...
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...
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?!
Do I need extra files?
...
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...
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...
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?
...
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 ...
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...
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).
...
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...
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...
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?
...