www.digitalmars.com         C & C++   DMDScript  

D.gnu - Phobos error with Linux D

reply "Craig St. Jean" <SordOnline Yahoo.com> writes:
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
Apr 14 2003
next sibling parent Manfred Hansen <manfred toppoint.de> writes:
Hello,

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


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
Apr 15 2003
prev sibling parent Garen Parham <nospam garen.net> writes:
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.
Apr 16 2003