ntp fails to cross-build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg-cross (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
ntp fails to cross-build:
Uses correct compiler but chooses wrong-arch header path
arm-linux-
authkeys.c: In function 'authencrypt':
authkeys.c:496:20: error: invalid 'asm': invalid operand for code 'w'
authkeys.c:496:20: error: invalid 'asm': invalid operand for code 'w'
The wierd thing is that this only happens if
-eCONFIG_
Running the debuild command without that causes it to get the include pathright, but not know how big it's LONGs are. Something in the autoconf cache variables is screwing it up, which suggests breakage in the configure file, because providing that info should not break the build.
Background:
The build command is:
xdeb --only-explicit -a armel --prefer-apt --apt-source --debug --force-rebuild bash
The actual build command xdeb issues is:
debuild --no-lintian -eUSER -eCONFIG_
To easily reproduce the build environment in which this bug was discovered follow the HOWTO here:
https:/
Changed in ntp (Ubuntu): | |
importance: | Undecided → Medium |
This build is fixed by removing some default config from the dpkg-cross autoconf cache:
--- /etc/dpkg- cross/cross- config. cache~ 2011-08-23 10:37:59.000000000 +0000 cross/cross- config. cache 2011-10-12 18:05:08.000000000 +0000
+++ /etc/dpkg-
@@ -137,8 +137,8 @@
# ntp libdir= yes incdir= yes openssl_ libdir= yes openssl_ incdir= yes cv_run_ strftime= yes cv_run_ fopen_binary= yes cv_run_ fopen_text= yes
if [ "$PACKAGE" = "ntp" -o "$PACKAGE_NAME" = "ntp" ]; then
-with_openssl_
-with_openssl_
+#with_
+#with_
libopts_
libopts_
libopts_
It's not clear why this forces the wrong-arch headers to be found. I still suspect configure breakage of some sort.
This needs a new upload of dpkg-cross to be buildable.