Opened 15 years ago

Closed 15 years ago

Last modified 5 years ago

#4223 closed defect (fixed)

AMIGAOS: Build breaks in "base/commandline"

Reported by: raziel- Owned by: Kirben
Priority: normal Component: Port: AmigaOS4
Version: Keywords: build
Cc: Game:

Description

ScummVM 0.14.0svn (Mar 11 2009 22:58:36) Features compiled in: Vorbis FLAC MP3 zLib

On building the latest source with NOT using --host=ppc-amigaos (see https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2603571&group_id=37116) i get a break and stop of the build process in base/commandline.cpp

Using it while configuring makes the building go past it, very strange :-?

g++ -Wp,-MMD,"base/.deps/commandLine.d",-MQ,"base/commandLine.o",-MP -Wall -g -ansi -W -Wno-unused-parameter -Wconversion -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder -pedantic -Wpointer-arith -Wcast-qual -Wcast-align -Wshadow -Wimplicit -Wnon-virtual-dtor -Wwrite-strings -fno-rtti -fno-exceptions -fcheck-new -DHAVE_CONFIG_H -DDATA_PATH=\"/usr/local/share/scummvm\" -DPLUGIN_DIRECTORY=\"/usr/local/lib/scummvm\" -DSDL_BACKEND -DENABLE_SCUMM=STATIC_PLUGIN -DENABLE_SCUMM_7_8 -DENABLE_HE -DENABLE_AGI=STATIC_PLUGIN -DENABLE_AGOS=STATIC_PLUGIN -DENABLE_CINE=STATIC_PLUGIN -DENABLE_DRASCULA=STATIC_PLUGIN -DENABLE_GOB=STATIC_PLUGIN -DENABLE_GROOVIE=STATIC_PLUGIN -DENABLE_KYRA=STATIC_PLUGIN -DENABLE_LURE=STATIC_PLUGIN -DENABLE_MADE=STATIC_PLUGIN -DENABLE_PARALLACTION=STATIC_PLUGIN -DENABLE_QUEEN=STATIC_PLUGIN -DENABLE_SAGA=STATIC_PLUGIN -DENABLE_IHNM -DENABLE_SKY=STATIC_PLUGIN -DENABLE_SWORD1=STATIC_PLUGIN -DENABLE_SWORD2=STATIC_PLUGIN -DENABLE_TOUCHE=STATIC_PLUGIN -DENABLE_TUCKER=STATIC_PLUGIN -I. -I. -I./engines -I/SDK/Local/newlib/include/SDL -D_GNU_SOURCE=1 -c base/commandLine.cpp -o base/commandLine.o base/commandLine.cpp: In function 'void Base::usage(const char*, ...)': base/commandLine.cpp:140: error: 'vsnprintf' was not declared in this scope base/commandLine.cpp: In function 'Common::String Base::parseCommandLine(Common::StringMap&, int, char**)': base/commandLine.cpp:362: error: 'strcasecmp' was not declared in this scope base/commandLine.cpp:367: error: 'strcasecmp' was not declared in this scope base/commandLine.cpp: In function 'void Base::runDetectorTest()': base/commandLine.cpp:675: error: 'strcasecmp' was not declared in this scope gmake: *** [base/commandLine.o] Error 1

AmigaOS4 gcc version 4.2.4 (adtools build 20090118)

Ticket imported from: #2684645. Ticket imported from: bugs/4223.

Change History (7)

comment:1 by Kirben, 15 years ago

Component: --Unset--
Owner: set to Kirben
Resolution: fixed
Status: newclosed

comment:2 by lordhoto, 15 years ago

Reopened at request of Raziel^.

comment:3 by lordhoto, 15 years ago

Resolution: fixed
Status: closednew

comment:4 by raziel-, 15 years ago

Thanks LordHoto and sorry for re-opening this

The error is back and after backtracing the source and later (with big help of waltervn) the revisions of configure (which is the cuplrit) i found that revision 39530 of configure breaks my build process and lets base/commandline.cpp error out: http://scummvm.svn.sourceforge.net/viewvc/scummvm/scummvm/trunk/configure?view=log&pathrev=39530

I haven't changed makefile at all as this is also affected by r39530, so it's configure only for me, i believe

Can someone help me fix this one once and for all, please?

comment:5 by waltervn, 15 years ago

Fixed in trunk. The AmigaOS4 SDK uses newlib, so we cannot use -ansi.

comment:6 by waltervn, 15 years ago

Resolution: fixed
Status: newclosed

comment:7 by digitall, 5 years ago

Component: --Unset--Port: AmigaOS4
Note: See TracTickets for help on using tickets.