Thread overview
Phobos error with Linux D
Apr 15, 2003
Craig St. Jean
Apr 15, 2003
Manfred Hansen
Apr 16, 2003
Garen Parham
April 15, 2003
Hello, I am using Mandrake 9.1, so I have gcc 3.2.2 by default. I removed the -Werror in the makefile to make it compatible, however whenever I try to make, I get this:
"...
make[1]: Leaving directory `/home/craig/dli-0.1.2/phobos'
./dli test.d -unittest
phobos/libphobos.so: undefined reference to `errno'
collect2: ld returned 1 exit status
./test hello arguments
make: ./test: Command not found
make: *** [testfoo] Error 127"
and then make stops.
Has anyone had or solved this problem?

Thanks

April 15, 2003
Hello,

i have the same problem of my GNU/HURD Machine.

hurd:/home/hansen/dli-0.1.2# ./dli -o hello hello.d phobos/libphobos.so: undefined reference to `errno'

The same gcc: gcc version 3.2.2 20021231 (Debian prerelease)

Regards
Manfred Hansen

Craig St. Jean wrote:

> Hello, I am using Mandrake 9.1, so I have gcc 3.2.2 by default. I
> removed the -Werror in the makefile to make it compatible, however
> whenever I try to make, I get this:
> "...
> make[1]: Leaving directory `/home/craig/dli-0.1.2/phobos'
> ./dli test.d -unittest
> phobos/libphobos.so: undefined reference to `errno'
> collect2: ld returned 1 exit status
> ./test hello arguments
> make: ./test: Command not found
> make: *** [testfoo] Error 127"
> and then make stops.
> Has anyone had or solved this problem?
> 
> Thanks

April 16, 2003
Craig St. Jean wrote:

...
> phobos/libphobos.so: undefined reference to `errno'
> collect2: ld returned 1 exit status
> ./test hello arguments
> make: ./test: Command not found
> make: *** [testfoo] Error 127"
> and then make stops.
> Has anyone had or solved this problem?

Sounds like there is a missing #include <errno.h> in there.