www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

D.gnu - Phobos error with Linux D

↑ ↓ ← "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
→ Manfred Hansen <manfred toppoint.de> writes:
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

Apr 15 2003
→ 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