Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#34141 closed defect (fixed)

simutrans @99-17-1 compilation error

Reported by: synthetiser@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: simutrans

Description

With compilator i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)

from the log :

/usr/bin/g++-4.2 -arch x86_64 -O3 -fomit-frame-pointer -g -DDEBUG -fno-inline -O0 -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align   -DSTEPS16 -I/opt/local/include -L/opt/local/lib -DUSE_16BIT_DIB -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -o dataobj/loadsave.o -c dataobj/loadsave.cc
:info:build dataobj/loadsave.cc: In member function ‘bool loadsave_t::rd_open(const char*)’:
:info:build dataobj/loadsave.cc:43: error: cannot convert ‘FILE*’ to ‘gzFile_s*’ for argument ‘1’ to ‘char* gzgets(gzFile_s*, char*, int)’
:info:build dataobj/loadsave.cc:51: error: cannot convert ‘FILE*’ to ‘gzFile_s*’ for argument ‘1’ to ‘int gzclose(gzFile_s*)’
...

Attachments (1)

main.log (44.0 KB) - added by synthetiser@… 13 years ago.
Log file

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by synthetiser@…

Attachment: main.log added

Log file

comment:1 Changed 13 years ago by synthetiser@…

I should be a good occasion to update it, the stable is the v100

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: simutrans build removed

Surely there must be a newer stable version than that by now. In January 2011 I began trying to update the port to version 102.2.2. I didn't succeed however so I didn't commit it. According to the download page, the latest release of simutrans is 111.2.2.

comment:3 Changed 13 years ago by synthetiser@…

Indeed, that's the last version and I succeed to compile it. But it's under ssh on my father computer, and personally I left the mac world, so I can't really check and maintain it. Anyway this is the way I used :
With exactly the same dependencies as the current simutrans port version
Download the sources
Copy config.template to config.default
In config.default, uncomment at least the lines :

BACKEND = sdl
COLOUR_DEPTH = 16
OSTYPE = mac
SDL_CONFIG     = sdl-config

Optionally uncomment and complete the line BUILDDIR to install in /opt/games or something

If somebody can, it should be nice to update the port. If not, maybe if I have enough time and a mac, I'll try to do it.

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

I updated the port in r92255 and it works for me. Can you test it too?

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Oh right, sorry, you said you don't actually have a Mac. I'll just assume this is sufficient then.

comment:6 Changed 13 years ago by synthetiser@…

Ok, I tried through ssh, and it works well, my father said that it seems all ok

Thanks

Note: See TracTickets for help on using tickets.