Bug#349699: [Pbuilder-maint] Bug#349699: pbuilder: CFLAGS is not being interpreted correctly

Junichi Uekawa dancer at netfort.gr.jp
Wed Jan 25 04:10:19 UTC 2006


Hi,

You probably have a CFLAGS defined in your environment.
read Make info pages for details.


regards,
	junichi
-- 
dancer@{debian.org,netfort.gr.jp}   Debian Project

> 
> Today while testing if my package was building OK on pbuilder, I saw an
> error.
> 
> I have a makefile like this (I am putting here just the important part
> of it):
> 
> 
> ZDIR   = ../zlib
> PNGDIR = ../libpng
> CRELEASE = -O2
> CFLAGS = -I$(ZDIR) -I$(PNGDIR) -Wall $(CRELEASE)
> 
> .c$(O):
>         $(CC) $(CFLAGS) -c $<
> 
> Using this makefile, on the pdebuild log I can see:
> 
> gcc -g -Wall -O2 -c pngxread.c
> 
> However, changing all CFLAGS to CFLGS (just removed the A), it worked
> perfectly on a new pdebuild run:
> 
> gcc -I../zlib -I../libpng -Wall -O2 -c pngxread.c
> 
> Running the makefile outside pbuilder, it's compiled perfectly, without
> the need to change CFLAGS to something else.
> 
> If you think that it's important to see the full makefile and the source
> code, I can put on a place. Just say to me if you want.
> 
> Thank you very much!
> Nelson
> 
> -- System Information:
> Debian Release: testing/unstable
>   APT prefers unstable
>   APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/dash
> Kernel: Linux 2.6.13-rc5-mm1
> Locale: LANG=pt_BR, LC_CTYPE=pt_BR (charmap=ISO-8859-1) (ignored: LC_ALL set to pt_BR)
> 
> Versions of packages pbuilder depends on:
> ii  cdebootstrap                  0.3.9      Bootstrap a Debian system
> ii  coreutils                     5.93-5     The GNU core utilities
> ii  debianutils                   2.15.2     Miscellaneous utilities specific t
> ii  debootstrap                   0.3.3      Bootstrap a basic Debian system
> ii  gcc                           4:4.0.2-2  The GNU C compiler
> ii  wget                          1.10.2-1   retrieves files from the web
> 
> Versions of packages pbuilder recommends:
> ii  devscripts                    2.9.11     Scripts to make the life of a Debi
> ii  fakeroot                      1.5.6      Gives a fake root environment
> ii  sudo                          1.6.8p12-1 Provide limited super user privile
> 
> -- no debconf information
> 
> 
> _______________________________________________
> Pbuilder-maint mailing list
> Pbuilder-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pbuilder-maint
> 




More information about the Pbuilder-maint mailing list