[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
build weirdness
From: |
Jason Stover |
Subject: |
build weirdness |
Date: |
Thu, 16 Mar 2006 17:22:07 -0500 |
User-agent: |
Mutt/1.5.10i |
The mystery build trouble was caused by the use of automake 1.8.5. My
machines that built pspp have automake 1.9.6, and you can see
the difference in the corresponding lines that compile src/message.c:
Broken version:
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I./src -I./lib -I./intl -I./gl -I./gl
-I./src/language -I./src/language/lexer -I./src/ui/terminal -I./src/data
-I./src/libpspp -Wall -W -Wwrite-strings -Wstrict-prototypes -Wpointer-arith
-Wno-sign-compare -Wmissing-prototypes -Dunix -g -O2 -MT src/message.o -MD -MP
-MF ".deps/src/message.Tpo" -c -o src/message.o src/message.c; \
It breaks because -MF .deps/src/message.Tpo should be -MF src/.deps, or
better yet, here is the working version:
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I./src -I./lib -I./intl -I./gl -I./gl
-I./src/language -I./src/language/lexer -I./src/ui/terminal -I./src/data
-I./src/libpspp -I/usr/local/include -Wall -W -Wwrite-strings
-Wstrict-prototypes -Wpointer-arith -Wno-sign-compare -Wmissing-prototypes
-Dunix -g -O2 -MT src/message.o -MD -MP -MF "$depbase.Tpo" -c -o src/message.o
src/message.c; \
Notice the -MF $depbase.Tpo instead of .deps/src/message.Tpo in the first,
broken example. automake 1.8.5 doesn't define depbase in Makefile.in; automake
1.9.6 does.
automake 1.8.5 was the problem. Upgrading to 1.9.6 solved it. I
recommend changing the README.CVS to mention this.
-Jason
- build weirdness,
Jason Stover <=