[nzlug] description of error message required
Richard Dingwall
rdingwall at gmail.com
Wed Aug 30 10:51:52 NZST 2006
you're trying to port cstdlib to linux 2.6?
On 8/29/06, Vikrant_Basotra <Vikrant_Basotra at satyam.com> wrote:
> Hi All,
> Can any one explain the exact description of the error message
>
> error: previous definition of 'strtoul' was here
> error: conflicting types for 'strtoul'
>
> what does it means, sma ecode i was able to compile for Linux 2.4 but now i ma trying to port the cod eon Linux 2.6 with diffrent tool chain, its giving this error. Does this error has to do any thing with the library used.
>
> Please do let me know ... For your refrence small part of the code is pasted below
>
> Regards,
>
> Vikrant
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
>
>
> powerpc-SATYAM-linux-gnu-gcc -g -O6 -Wall -D__powerpc__ -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-com
> mon -fomit-frame-pointer -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -DMWI_LINUX
> -DPQ27E -DONBRD -DINTERNAL_MEM_OFFSET=0 -DINTERRUPTS=1 -DDEBUG_ERRORS=0 -DB_TRAILER=0 -DTMP_DEF=1 -DUSE_MCC=1 -DREPORT_
> EVENTS=0 -DEP8248E_1.0 -I/home/satyam/APS/linux/include -I../../../../../etc -I../../../../../env/Linux_2_4 -I../../../.
> ./../inc -I../../../../../integrations/PQ27E/inc -c ../../../../../env/Linux_2_4/stdlib.c
> <command line>:22:10: warning: ISO C requires whitespace after the macro name
> ../../../../../env/Linux_2_4/stdlib.c:41: error: conflicting types for 'strtoul'
> /opt/aps/gcc-3.4.1-glibc-2.3.3/powerpc-SATYAM-linux-gnu/lib/gcc/powerpc-SATYAM-linux-gnu/3.4.1/../../../../powerpc-SATYA
> M-linux-gnu/sys-include/stdlib.h:322: error: previous definition of 'strtoul' was here
> ../../../../../env/Linux_2_4/stdlib.c:41: error: conflicting types for 'strtoul'
> /opt/aps/gcc-3.4.1-glibc-2.3.3/powerpc-SATYAM-linux-gnu/lib/gcc/powerpc-SATYAM-linux-gnu/3.4.1/../../../../powerpc-SATYA
> M-linux-gnu/sys-include/stdlib.h:322: error: previous definition of 'strtoul' was here
> ../../../../../env/Linux_2_4/stdlib.c:72: error: conflicting types for 'strtol'
> /opt/aps/gcc-3.4.1-glibc-2.3.3/powerpc-SATYAM-linux-gnu/lib/gcc/powerpc-SATYAM-linux-gnu/3.4.1/../../../../powerpc-SATYA
> M-linux-gnu/sys-include/stdlib.h:316: error: previous definition of 'strtol' was here
> ../../../../../env/Linux_2_4/stdlib.c:72: error: conflicting types for 'strtol'
> /opt/aps/gcc-3.4.1-glibc-2.3.3/powerpc-SATYAM-linux-gnu/lib/gcc/powerpc-SATYAM-linux-gnu/3.4.1/../../../../powerpc-SATYA
> M-linux-gnu/sys-include/stdlib.h:316: error: previous definition of 'strtol' was here
> ../../../../../env/Linux_2_4/stdlib.c:85: error: conflicting types for 'strtoull'
> /opt/aps/gcc-3.4.1-glibc-2.3.3/powerpc-SATYAM-linux-gnu/lib/gcc/powerpc-SATYAM-linux-gnu/3.4.1/../../../../powerpc-SATYA
> M-linux-gnu/sys-include/stdlib.h:368: error: previous definition of 'strtoull' was here
> ../../../../../env/Linux_2_4/stdlib.c:85: error: conflicting types for 'strtoull'
> /opt/aps/gcc-3.4.1-glibc-2.3.3/powerpc-SATYAM-linux-gnu/lib/gcc/powerpc-SATYAM-linux-gnu/3.4.1/../../../../powerpc-SATYA
> M-linux-gnu/sys-include/stdlib.h:368: error: previous definition of 'strtoull' was here
> ../../../../../env/Linux_2_4/stdlib.c:116: error: conflicting types for 'strtoll'
> /opt/aps/gcc-3.4.1-glibc-2.3.3/powerpc-SATYAM-linux-gnu/lib/gcc/powerpc-SATYAM-linux-gnu/3.4.1/../../../../powerpc-SATYA
> M-linux-gnu/sys-include/stdlib.h:362: error: previous definition of 'strtoll' was here
> ../../../../../env/Linux_2_4/stdlib.c:116: error: conflicting types for 'strtoll'
> /opt/aps/gcc-3.4.1-glibc-2.3.3/powerpc-SATYAM-linux-gnu/lib/gcc/powerpc-SATYAM-linux-gnu/3.4.1/../../../../powerpc-SATYA
> M-linux-gnu/sys-include/stdlib.h:362: error: previous definition of 'strtoll' was here
> ../../../../../env/Linux_2_4/stdlib.c:187: error: parse error before "__extension__"
> make: *** [stdlib_intr] Error 1
>
>
>
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
> _______________________________________________
> NZLUG mailing list NZLUG at linux.net.nz
> http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
>
More information about the NZLUG
mailing list