[r2209] Undefined reference to `itoa' on Linux

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
ivangotoy
Posts: 13
Joined: Mon Dec 03, 2007 2:00 am
Location: http://digtvbg.com/
Contact:

[r2209] Undefined reference to `itoa' on Linux

Post by ivangotoy »

Hello , I tried to build zdoom and at the end it complained about a linking problem. I am building it on ubuntu 10.04 lucid lynx , using gcc 4.4.3 that comes with the distro.
I believe that issue is more related to gcc other than to zdoom code base but I think it is worth mentioning it.

Code: Select all

Linking CXX executable ../zdoom
CMakeFiles/zdoom.dir/tempfiles.o: In function `FTempFileName::FTempFileName(char const*)':
tempfiles.cpp:(.text+0x73): warning: the use of `tempnam' is dangerous, better use `mkstemp'
../dumb/libdumb.a(readpsm.o): In function `dumb_read_psm_quick':
readpsm.c:(.text+0x147b): undefined reference to `itoa'
collect2: ld returned 1 exit status
make[2]: *** [zdoom] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: [r2209] Undefined reference to `itoa' on Linux

Post by Gez »

I'm going to guess that r2200 would compile, given that r2201 saw an update in the libdumb code; which is what's failing here.
ivangotoy
Posts: 13
Joined: Mon Dec 03, 2007 2:00 am
Location: http://digtvbg.com/
Contact:

Re: [r2209] Undefined reference to `itoa' on Linux

Post by ivangotoy »

You are right , revision 2200 compiled just fine.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: [r2209] Undefined reference to `itoa' on Linux

Post by Gez »

Okay, so just revert this single change and that should fix the issue.
Guest

Re: [r2209] Undefined reference to `itoa' on Linux

Post by Guest »

Thanks for pointing out the correct line of code. I changed it and everything compiled properly.
Cheers :)
Post Reply

Return to “Closed Bugs [GZDoom]”