FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems building Mango

 
Post new topic   Reply to topic     Forum Index -> Mango
View previous topic :: View next topic  
Author Message
uzair



Joined: 31 Oct 2006
Posts: 1
Location: London, UK

PostPosted: Tue Oct 31, 2006 5:56 pm    Post subject: Problems building Mango Reply with quote

Hello all,

I'm living life on the edge with Mango (ie, using the latest on trunk) and not having very much luck building it with the latest version of dmd (v0.172) and Build/bud. Here's some output to illustrate the situation:

Uzair@zujitsu[561]:/home/Uzair/D/mango/build# svn info
Path: .
URL: http://svn.dsource.org/projects/mango/trunk/build
Repository Root: http://svn.dsource.org/projects/mango
Repository UUID: 029f6efb-1fe5-0310-9a28-d4398304ef11
Revision: 928
Node Kind: directory
Schedule: normal
Last Changed Author: kris
Last Changed Rev: 857
Last Changed Date: 2006-04-27 07:46:47 +0100 (Thu, 27 Apr 2006)

Uzair@zujitsu[562]:/home/Uzair/D/mango/build# bud mango
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(321): identifier 'TimeUnit' is not defined
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(321): TimeUnit is used as a type
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(321): cannot have parameter of type void
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(356): identifier 'Condition' is not defined
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(356): Condition is used as a type
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(356): function mango.locks.ReentrantLock.ReentrantLock.newCondition of type void() overrides but is not covariant with mango.locks.Lock.Lock.newCondition of type Condition()
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(507): identifier 'Condition' is not defined
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(507): Condition is used as a type
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(507): cannot have parameter of type void
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(524): identifier 'Condition' is not defined
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(524): Condition is used as a type
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(524): cannot have parameter of type void
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(543): identifier 'Condition' is not defined
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(543): Condition is used as a type
C:\cygwin\home\Uzair\D\mango\mango\locks\ReentrantLock.d(543): cannot have parameter of type void
C:\cygwin\home\Uzair\D\mango\mango\locks\CyclicBarrier.d(116): identifier 'Condition' is not defined
C:\cygwin\home\Uzair\D\mango\mango\locks\CyclicBarrier.d(116): Condition is used as a type
C:\cygwin\home\Uzair\D\mango\mango\locks\CyclicBarrier.d(116): variable mango.locks.CyclicBarrier.CyclicBarrier.trip voids have no value

In addition, when trying to build a project that relies on mango.http.client.HttpClient, I get lots of errors pointing to mango.io.Socket:

^MOPTLINK (R) for Win32 Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved

C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _closesocket@4
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _select@20
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _gethostbyname@4
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _gethostbyaddr@12
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _inet_addr@4
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _inet_ntoa@4
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _WSAStartup@8
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _WSACleanup@0
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _WSAGetLastError@0
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _setsockopt@20
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _getsockopt@20
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _recvfrom@24
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _recv@16
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _sendto@24
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _send@16
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _getsockname@12
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _getpeername@12
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)
Error 42: Symbol Undefined _shutdown@8
C:\cygwin\home\Uzair\D\mango\mango\io\Socket.obj(Socket)

Any pointers much appreciated.

BTW, is there a chatroom to discuss D development/problems?

Cheers,

Uzair
Back to top
View user's profile Send private message AIM Address MSN Messenger
teqdruid



Joined: 11 May 2004
Posts: 390
Location: UMD

PostPosted: Wed Nov 01, 2006 4:19 pm    Post subject: Re: Problems building Mango Reply with quote

uzair wrote:

Any pointers much appreciated.

BTW, is there a chatroom to discuss D development/problems?


To fix the mango.locks compile issues, do an SVN update. I've just fixed the issues. FYI, you don't have to compile all of mango into mango.lib; rather, you can use bud- just point bud at the mango source dir in addition to your source and it will compile mango along with all of your source.

As for the linking issues, these are w=Windows-specific. (I am not a Windows user)... As I recall, you have to link in one of the windows libraries. Based on some mango code, I think it's "wsock32". Try adding the following to your code:
Code:
version (Win32)
         pragma (lib, "wsock32");


As for the chatroom- there's #D on Freenode (IRC), but I'm not certain how active it is.

Please let me know if you have any other issues with Mango.

~John
Back to top
View user's profile Send private message Send e-mail AIM Address
davidl



Joined: 17 Aug 2006
Posts: 27

PostPosted: Mon Nov 06, 2006 5:10 am    Post subject: Reply with quote

also patch for mango xml dom


module mango.xml.dom.model.all;

public import mango.xml.dom.model.Attr,
mango.xml.dom.model.CharacterData,
mango.xml.dom.model.Document,
mango.xml.dom.model.DocumentType,
mango.xml.dom.model.DOMException,
mango.xml.dom.model.DOMImplementation,
mango.xml.dom.model.Element,
mango.xml.dom.model.Entity,
mango.xml.dom.model.Node,
mango.xml.dom.model.Notation,
mango.xml.dom.model.ProcessingInstruction;
Back to top
View user's profile Send private message
teqdruid



Joined: 11 May 2004
Posts: 390
Location: UMD

PostPosted: Mon Nov 06, 2006 8:01 am    Post subject: Reply with quote

davidl wrote:
also patch for mango xml dom


module mango.xml.dom.model.all;

public import mango.xml.dom.model.Attr,
mango.xml.dom.model.CharacterData,
mango.xml.dom.model.Document,
mango.xml.dom.model.DocumentType,
mango.xml.dom.model.DOMException,
mango.xml.dom.model.DOMImplementation,
mango.xml.dom.model.Element,
mango.xml.dom.model.Entity,
mango.xml.dom.model.Node,
mango.xml.dom.model.Notation,
mango.xml.dom.model.ProcessingInstruction;


Thanks. Fixed in SVN now.

~John
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Mango All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group