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

Mago builds, examples does not

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



Joined: 09 Apr 2005
Posts: 16
Location: Ohio, USA

PostPosted: Sat Apr 09, 2005 7:44 pm    Post subject: Mago builds, examples does not Reply with quote

Greetings. I am excited to use Mango but I am at a loss as to what's happening. I started w/mango_release_1-2a.zip and when I had these difficulites, I grabed the SVN copy, which did no better.

I am running dmd v0.120 on Linux. Mango builds w/no problems (SVN copy, 1-2a.zip I had to edit the comments like described in a previous post). But then when I type anything like:

$ make -f linux.make servlets (or another example)

I get errors like this:

dmd -c -version=Posix example/servlets.d
cc -o servlets servlets.o libmango.a -lphobos -lpthread -lm -g
servlets.o(.data+0x2fc): undefined reference to `_ModuleInfo_5mango6format3Int'
servlets.o(.gnu.linkonce.t_D8servlets4Ping10PingThread3runFZi+0x14d): In function `_D8servlets4Ping10PingThread3runFZi':
: undefined reference to `_D5mango6format3Int3Int6formatFiZAa'
libmango.a(DisplayWriter.o)(.data+0x13c): undefined reference to `_ModuleInfo_5mango6format3Int'
libmango.a(DisplayWriter.o)(.data+0x140): undefined reference to `_ModuleInfo_5mango6format4Long'
libmango.a(DisplayWriter.o)(.data+0x144): undefined reference to `_ModuleInfo_5mango6format6Double'
libmango.a(DisplayWriter.o)(.data+0x148): undefined reference to `_ModuleInfo_5mango6format6Number'
libmango.a(DisplayWriter.o)(.gnu.linkonce.t_D5mango2io13DisplayWriter13DisplayWriter9formatIntFkbZv+0x1e): In function `_D5mango2io13DisplayWriter13DisplayWriter9formatIntFkbZv':
: undefined reference to `_D5mango6format3Int3Int6formatFAaiZAa'
libmango.a(DisplayWriter.o)(.gnu.linkonce.t_D5mango2io13DisplayWriter13DisplayWriter9formatIntFkbZv+0x63): In function `_D5mango2io13DisplayWriter13DisplayWriter9formatIntFkbZv':
: undefined reference to `_D5mango6format3Int3Int6formatFAakE5RadixaZAa'
libmango.a(DisplayWriter.o)(.gnu.linkonce.t_D5mango2io13DisplayWriter13DisplayWriter10formatLongFmbZv+0x21): In function `_D5mango2io13DisplayWriter13DisplayWriter10formatLongFmbZv':
: undefined reference to `_D5mango6format4Long4Long6formatFAalZAa'
libmango.a(DisplayWriter.o)(.gnu.linkonce.t_D5mango2io13DisplayWriter13DisplayWriter10formatLongFmbZv+0x69): In function `_D5mango2io13DisplayWriter13DisplayWriter10formatLongFmbZv':
: undefined reference to `_D5mango6format4Long4Long6formatFAamE5RadixaZAa'
libmango.a(DisplayWriter.o)(.gnu.linkonce.t_D5mango2io13DisplayWriter13DisplayWriter7fformatFPvkkZv+0x62): In function `_D5mango2io13DisplayWriter13DisplayWriter7fformatFPvkkZv':
: undefined reference to `_D5mango6format6Double6Double6formatFAadkbZAa'
libmango.a(HttpClient.o)(.data+0x118): undefined reference to `_ModuleInfo_5mango6format3Int'
libmango.a(HttpClient.o)(.gnu.linkonce.t_D5mango4http6client10HttpClient12ResponseLine9getStatusFZi+0x1c): In function `_D5mango4http6client10HttpClient12ResponseLine9getStatusFZi':
: undefined reference to `_D5mango6format3Int3Int5parseFAaE5RadixPkZk'
libmango.a(HttpCookies.o)(.text+0x3a9): In function `_D5mango4http6server11HttpCookies12CookieParser4nextFC5mango2io5model7IBuffer7IBufferC5mango4http6server11HttpCookies11CookieStackZb4scanFAaZi8setValueFiZv':
: undefined reference to `_D5mango6format3Int3Int5parseFAaE5RadixPkZk'
libmango.a(HttpCookies.o)(.data+0x194): undefined reference to `_ModuleInfo_5mango6format3Int'
libmango.a(HttpCookies.o)(.data+0x198): undefined reference to `_ModuleInfo_5mango6format4Long'
libmango.a(HttpCookies.o)(.gnu.linkonce.t_D5mango4http6server11HttpCookies6Cookie5writeFC5mango2io5model7IWriter7IWriterZv+0xc2): In function `_D5mango4http6server11HttpCookies6Cookie5writeFC5mango2io5model7IWriter7IWriterZv':
: undefined reference to `_D5mango6format3Int3Int6formatFAaiZAa'
libmango.a(HttpCookies.o)(.gnu.linkonce.t_D5mango4http6server11HttpCookies6Cookie5writeFC5mango2io5model7IWriter7IWriterZv+0x151): In function `_D5mango4http6server11HttpCookies6Cookie5writeFC5mango2io5model7IWriter7IWriterZv':
: undefined reference to `_D5mango6format4Long4Long6formatFAalZAa'
libmango.a(HttpTokens.o)(.data+0xd0): undefined reference to `_ModuleInfo_5mango6format3Int'
libmango.a(HttpTokens.o)(.data+0xd4): undefined reference to `_ModuleInfo_5mango6format8DateTime'
libmango.a(HttpTokens.o)(.gnu.linkonce.t_D5mango4http6server10HttpTokens10HttpTokens6getIntFAaZi+0x3a): In function `_D5mango4http6server10HttpTokens10HttpTokens6getIntFAaZi':
: undefined reference to `_D5mango6format3Int3Int5parseFAaE5RadixPkZk'
libmango.a(HttpTokens.o)(.gnu.linkonce.t_D5mango4http6server10HttpTokens10HttpTokens7getDateFAaZl+0x3f): In function `_D5mango4http6server10HttpTokens10HttpTokens7getDateFAaZl':
: undefined reference to `_D5mango6format8DateTime8DateTime5parseFAaPkZl'
libmango.a(HttpTokens.o)(.gnu.linkonce.t_D5mango4http6server10HttpTokens10HttpTokens6addIntFAaiZv+0x2a): In function `_D5mango4http6server10HttpTokens10HttpTokens6addIntFAaiZv':
: undefined reference to `_D5mango6format3Int3Int6formatFAaiZAa'
libmango.a(HttpTokens.o)(.gnu.linkonce.t_D5mango4http6server10HttpTokens10HttpTokens7addDateFAalZv+0x2c): In function `_D5mango4http6server10HttpTokens10HttpTokens7addDateFAalZv':
: undefined reference to `_D5mango6format8DateTime8DateTime6formatFAalZAa'
libmango.a(Token.o)(.data+0x18c): undefined reference to `_ModuleInfo_5mango6format3Int'
libmango.a(Token.o)(.data+0x190): undefined reference to `_ModuleInfo_5mango6format4Long'
libmango.a(Token.o)(.data+0x194): undefined reference to `_ModuleInfo_5mango6format6Double'
libmango.a(Token.o)(.gnu.linkonce.t_D5mango2io5Token5Token5toIntFZi+0x1c): In function `_D5mango2io5Token5Token5toIntFZi':
: undefined reference to `_D5mango6format3Int3Int5parseFAaE5RadixPkZk'
libmango.a(Token.o)(.gnu.linkonce.t_D5mango2io5Token5Token6toLongFZl+0x1c): In function `_D5mango2io5Token5Token6toLongFZl':
: undefined reference to `_D5mango6format4Long4Long5parseFAaE5RadixPkZm'
libmango.a(Token.o)(.gnu.linkonce.t_D5mango2io5Token5Token6toRealFZe+0x1a): In function `_D5mango2io5Token5Token6toRealFZe':
: undefined reference to `_D5mango6format6Double6Double5parseFAaPkZd'
libmango.a(Uri.o)(.data+0x244): undefined reference to `_ModuleInfo_5mango6format3Int'
libmango.a(Uri.o)(.gnu.linkonce.t_D5mango2io3Uri3Uri5writeFC5mango2io5model7IBuffer7IBufferZC5mango2io5model7IBuffer7IBuffer+0xd3): In function `_D5mango2io3Uri3Uri5writeFC5mango2io5model7IBuffer7IBufferZC5mango2io5model7IBuffer7IBuffer':
: undefined reference to `_D5mango6format3Int3Int6formatFAaiZAa'
libmango.a(Uri.o)(.gnu.linkonce.t_D5mango2io3Uri3Uri6decodeFAaZAa+0xcd): In function `_D5mango2io3Uri3Uri6decodeFAaZAa':
: undefined reference to `_D5mango6format3Int3Int5parseFAaE5RadixPkZk'
libmango.a(Uri.o)(.gnu.linkonce.t_D5mango2io3Uri3Uri14parseAuthorityFAaZv+0xe2): In function `_D5mango2io3Uri3Uri14parseAuthorityFAaZv':
: undefined reference to `_D5mango6format3Int3Int5parseFAaE5RadixPkZk'
libmango.a(AbstractServer.o)(.data+0xa0): undefined reference to `_ModuleInfo_5mango6format3Int'
libmango.a(AbstractServer.o)(.gnu.linkonce.t_D5mango5utils14AbstractServer14AbstractServer5startFZv+0x56): In function `_D5mango5utils14AbstractServer14AbstractServer5startFZv':
: undefined reference to `_D5mango6format3Int3Int6formatFiZAa'
libmango.a(AbstractServer.o)(.gnu.linkonce.t_D5mango5utils14AbstractServer14AbstractServer5startFZv+0x6c): In function `_D5mango5utils14AbstractServer14AbstractServer5startFZv':
: undefined reference to `_D5mango6format3Int3Int6formatFiZAa'
libmango.a(HttpRequest.o)(.data+0x118): undefined reference to `_ModuleInfo_5mango6format3Int'
libmango.a(HttpRequest.o)(.gnu.linkonce.t_D5mango4http6server11HttpRequest11HttpRequest7getHostFZAa+0x102): In function `_D5mango4http6server11HttpRequest11HttpRequest7getHostFZAa':
: undefined reference to `_D5mango6format3Int3Int5parseFAaE5RadixPkZk'
collect2: ld returned 1 exit status
make: *** [servlets] Error 1

(I sure hope that comes out readable).

Anyway, does anyone have an idea?

Thanks!

Jeremy
Back to top
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Sat Apr 09, 2005 7:58 pm    Post subject: Reply with quote

Drat. The linux makefile is out of date. I've been starting to avoid make, since Build does such a great job instead (without any make files). You can get Build from dsource.org also.

I'll post a new release later today. And I'll try to make sure the linux makefile is working too.

Sorry about the hassle. You might give Build a try in the meantime?
Back to top
View user's profile Send private message
jeremy_c



Joined: 09 Apr 2005
Posts: 16
Location: Ohio, USA

PostPosted: Sat Apr 09, 2005 8:07 pm    Post subject: Reply with quote

kris wrote:
Sorry about the hassle. You might give Build a try in the meantime?


Ha! build doesn't compile for me. However, this gave me some incentive to figure out why. As it turns out, Source/util/BMscanner.d should be Source/util/bmscanner.d ... that made everything work with build.

I then did a build examples/servlets.d and whala! Magic. It all worked.

Thanks! BTW... if the make files are getting out of hand and build does such a great job, why not just retire and remove the makefiles?

Jeremy
Back to top
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Sat Apr 09, 2005 8:08 pm    Post subject: Reply with quote

Or, try the makefile that was just updated: http://svn.dsource.org/svn/projects/mango/trunk/linux.make
Back to top
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Sat Apr 09, 2005 8:10 pm    Post subject: Reply with quote

jerc wrote:
kris wrote:
Sorry about the hassle. You might give Build a try in the meantime?


Ha! build doesn't compile for me. However, this gave me some incentive to figure out why. As it turns out, Source/util/BMscanner.d should be Source/util/bmscanner.d ... that made everything work with build.

I then did a build examples/servlets.d and whala! Magic. It all worked.

Thanks! BTW... if the make files are getting out of hand and build does such a great job, why not just retire and remove the makefiles?

Jeremy

Glad to hear you're up and running. I will absolutely retire those makefiles ~ it was just a case of waiting until Build was good on both platforms. Apparently, I got a bit lazy in the meantime Smile
Back to top
View user's profile Send private message
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