Gustavo Serra
2009-06-10 20:34:04 UTC
Hi.
First of all, sorry if this subject has already been dealt with, I
haven't found any information. Using APBUILD_DEBUG=1 I realized that
-U_FORTIFY_SOURCE is used to compile my sources. However, this flag
seem to disable the options -Wall and -Werror (compiling with gcc
instead of apgcc, I get the new gcc 4.3 warnings about unused return
values):
# /usr/bin/gcc -I/usr/local/include/apbuild -include
/usr/local/include/apbuild/apsymbols.h -DAPBUILD_VERSION="2.0.9"
-fno-stack-protector -U_FORTIFY_SOURCE pdvio.c -pipe -pthread -Wall
-Werror -O2 -fPIC -I../include -march=i486 -c -o .obj/release/pdvio.o
If I run the line above manually and remove the -U flag, I get all the warnings.
I can edit apgcc and remove this flag, but I am unaware of the consequences.
Also, I had to edit apsymbols.h and replace @GLIBC_2.2.5 for
@GLIBC_2.3. Otherwise I would get these errors:
$ make
apgcc -pipe -pthread -Wall -Werror -O2 -fPIC -I../include
-march=i486 -c -o .obj/release/pdvio.o pdvio.c
{standard input}: Assembler messages:
{standard input}:26: Error: multiple versions
[`***@GLIBC_2.3'|`***@GLIBC_2.2.5'] for symbol
`sys_errlist'
{standard input}:27: Error: multiple versions
[`***@GLIBC_2.2.5'|`***@GLIBC_2.3'] for symbol
`_sys_errlist'
{standard input}:28: Error: multiple versions
[`***@GLIBC_2.3'|`***@GLIBC_2.2.5'] for symbol `sys_nerr'
{standard input}:29: Error: multiple versions
[`***@GLIBC_2.2.5'|`***@GLIBC_2.3'] for symbol `_sys_nerr'
What is the correct manner to deal with these problems?
Thanks any advice.
---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/***@public.gmane.org
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/***@public.gmane.org
First of all, sorry if this subject has already been dealt with, I
haven't found any information. Using APBUILD_DEBUG=1 I realized that
-U_FORTIFY_SOURCE is used to compile my sources. However, this flag
seem to disable the options -Wall and -Werror (compiling with gcc
instead of apgcc, I get the new gcc 4.3 warnings about unused return
values):
# /usr/bin/gcc -I/usr/local/include/apbuild -include
/usr/local/include/apbuild/apsymbols.h -DAPBUILD_VERSION="2.0.9"
-fno-stack-protector -U_FORTIFY_SOURCE pdvio.c -pipe -pthread -Wall
-Werror -O2 -fPIC -I../include -march=i486 -c -o .obj/release/pdvio.o
If I run the line above manually and remove the -U flag, I get all the warnings.
I can edit apgcc and remove this flag, but I am unaware of the consequences.
Also, I had to edit apsymbols.h and replace @GLIBC_2.2.5 for
@GLIBC_2.3. Otherwise I would get these errors:
$ make
apgcc -pipe -pthread -Wall -Werror -O2 -fPIC -I../include
-march=i486 -c -o .obj/release/pdvio.o pdvio.c
{standard input}: Assembler messages:
{standard input}:26: Error: multiple versions
[`***@GLIBC_2.3'|`***@GLIBC_2.2.5'] for symbol
`sys_errlist'
{standard input}:27: Error: multiple versions
[`***@GLIBC_2.2.5'|`***@GLIBC_2.3'] for symbol
`_sys_errlist'
{standard input}:28: Error: multiple versions
[`***@GLIBC_2.3'|`***@GLIBC_2.2.5'] for symbol `sys_nerr'
{standard input}:29: Error: multiple versions
[`***@GLIBC_2.2.5'|`***@GLIBC_2.3'] for symbol `_sys_nerr'
What is the correct manner to deal with these problems?
Thanks any advice.
---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/***@public.gmane.org
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/***@public.gmane.org