On Mon, 14 Apr 2008, Lucas Nussbaum wrote:
The problem is very likely to be caused by dpkg 1.14.18 now
setting default values for CFLAGS and some other variables (see
dpkg-buildpackage(1)).
It seems so. As I said it works in chroot and if I try to use
debuild on my normal box. I reworked all the autotools stuff
which did not helped. In the new configure file a failure occures
at the posistion where I included the following debug line:
--- configure.orig 2008-04-21 14:14:21.000000000 +0200
+++ configure 2008-04-21 15:51:26.000000000 +0200
@@ -3068,6 +3068,7 @@
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
+echo "DEBUG: `pwd` ; $PATH ; `which gtk-config `; `gtk-config --libs`"
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
(eval "$ac_link_default") 2>&5
ac_status=$?
This leads to the following entry in config.log:
...
gcc: '-V' option must have argument
configure:3021: $? = 1
configure:3044: checking for C compiler default output file name
DEBUG: /tmp/buildd/libgtkimreg-0.1.3.1 ;
/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin ; /usr/bin/gtk-config; -L/usr/lib
-lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
configure:3072: gcc -O2 -s `gtk-config --libs` conftest.c >&5
gcc: `gtk-config: No such file or directory
cc1: error: unrecognized command line option "-flibs`"
configure:3075: $? = 1
configure:3113: result:
configure: failed program was:
...
I'd regard this as completely insane because the same snippet looks like this
if I build on the local machine:
gcc: '-V' option must have argument
configure:3021: $? = 1
configure:3044: checking for C compiler default output file name
DEBUG: /home/tillea/debian-maintain/packages/imreg/gtkimreg-0.1.3.1 ;
/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 ; /usr/bin/gtk-config; -L/usr/lib
-lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
configure:3072: gcc conftest.c >&5
configure:3075: $? = 0
configure:3113: result: a.out
But this reveals two cruxial questions:
1. What is the sense to override CFLAGS which above are obviosely
"-O2 -s `gtk-config --libs`" by "" on the local machine?
2. What is the reason for the failure above
gcc -O2 -s `gtk-config --libs` conftest.c
should perfectly work because I verified that there is a working
gtk-config and how comes this strange option "-flibs`" ???
I'm quite clueless.
Any ideas?
Kind regards
Andreas.
--
http://fam-tille.de
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]