




















Thanks. The new PKGBUILD worked perfectly.
I went with the second alternative since we already are shipping a patch file for the source.
Note that I have not tested if this actually works since I do not have a (working) archlinux X11 installation at the current moment. Let me know if it broke the package!
I get a multiple declarations error from the linker when building this package. This happens because in modern C, the declaration of A, B, C, x, y in quadrilateral.c and the declaration of the same variables in triangle.c both have implicit extern linkage. I was able to build the package by adding a linker flag to allow multiple declaration. Specifically, I edited PKGBUILD to add the following line to the prepare() function.
sed -i "s/LDFLAGS = /LDFLAGS = -z muldefs /" build/Makefile
Perhaps, the better solution is to patch quadrilateral.c and triangle.c to insert the keyword static in front of the declarations of these variables.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Restored source via archived upstream 1.5.4 tarball, replaced obsolete texlive-core dependency, added current GCC/build fixes from Debian 1.5.4-6, and installed upstream README/COPYING.