[arch-general] Having trouble compileing a2ps
Using: gcc version 4.3.2 default build falgs in makepkg pkgname=a2ps pkgver=4.13c pkgrel=1 pkgdesc="a2ps is an Any to PostScript filter /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFFILE=\"/etc/a2ps/a2ps.cfg\" -I. -I.. -I.. -I../intl -I. -march=i686 -mtune=generic -O2 -pipe -MT hashtab.lo -MD -MP -MF .deps/hashtab.Tpo -c -o hashtab.lo hashtab.c libtool: compile: gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFFILE=\"/etc/a2ps/a2ps.cfg\" -I. -I.. -I.. -I../intl -I. -march=i686 -mtune=generic -O2 -pipe -MT hashtab.lo -MD -MP -MF .deps/hashtab.Tpo -c hashtab.c -o hashtab.o mv -f .deps/hashtab.Tpo .deps/hashtab.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFFILE=\"/etc/a2ps/a2ps.cfg\" -I. -I.. -I.. -I../intl -I. -march=i686 -mtune=generic -O2 -pipe -MT path-concat.lo -MD -MP -MF .deps/path-concat.Tpo -c -o path-concat.lo path-concat.c libtool: compile: gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFFILE=\"/etc/a2ps/a2ps.cfg\" -I. -I.. -I.. -I../intl -I. -march=i686 -mtune=generic -O2 -pipe -MT path-concat.lo -MD -MP -MF .deps/path-concat.Tpo -c path-concat.c -o path-concat.o In file included from path-concat.c:30: /usr/include/string.h:234: error: expected identifier or '(' before 'void' /usr/include/string.h:234: error: expected ')' before '(' token make[3]: *** [path-concat.lo] Error 1 make[3]: Leaving directory `/srv/http/Build/BUILD.i686/extra/a2ps/src/a2ps-4.13/lib' make[2]: *** [all] Error 2 make[2]: Leaving directory `/srv/http/Build/BUILD.i686/extra/a2ps/src/a2ps-4.13/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/srv/http/Build/BUILD.i686/extra/a2ps/src/a2ps-4.13' make: *** [all] Error 2 ==> ERROR: Build Failed. Is this a gcc issue?
On Sun, Feb 1, 2009 at 09:44, Baho Utot <baho-utot@columbus.rr.com> wrote:
In file included from path-concat.c:30: /usr/include/string.h:234: error: expected identifier or '(' before 'void' /usr/include/string.h:234: error: expected ')' before '(' token
What the hell? Maybe try reinstalling the package with that file, perhaps it got munged somehow...
On Sun, Feb 1, 2009 at 12:39, Daenyth Blank <daenyth+arch@gmail.com> wrote:
On Sun, Feb 1, 2009 at 09:44, Baho Utot <baho-utot@columbus.rr.com> wrote:
In file included from path-concat.c:30: /usr/include/string.h:234: error: expected identifier or '(' before 'void' /usr/include/string.h:234: error: expected ')' before '(' token
What the hell? Maybe try reinstalling the package with that file, perhaps it got munged somehow...
I tested it and I am getting the same problem here. The issue is with the config.h file that is getting generated and the following lines in a2ps-4.13/lib/path-contat.c: #ifndef HAVE_MEMPCPY # define mempcpy(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N))) #endif For some reason, the config.h file is not picking up a "#define HAVE_MEMPCPY 1". I just manually added it in, removed the patches and configures from the PKGBUILD and did a "makepkg -e" to test this. You'll want to dig into how that file gets generated. Alternatively, you could just add a patch to remove the 3 lines starting with "#ifndef HAVE_MEMPCPY" I still got one more build problem in a2ps-4.13/lib/xstrrpl.c . Just under the #includes for this file, there is a "extern char * stpcpy();", however, if you look where stpcpy is used later on in the file (line 52), you see that it takes two parameters. I just commented out the "extern char * stpcpy();" and everything built fine. A(nother) patch could take care of this. -Marq
Daenyth Blank wrote:
On Sun, Feb 1, 2009 at 09:44, Baho Utot <baho-utot@columbus.rr.com> wrote:
In file included from path-concat.c:30: /usr/include/string.h:234: error: expected identifier or '(' before 'void' /usr/include/string.h:234: error: expected ')' before '(' token
What the hell? Maybe try reinstalling the package with that file, perhaps it got munged somehow...
Which file? What reinstall a2ps? I have to get it to compile first, otherwise how would I reinstall it, seeing that it isn't presently installed.
On Sun, Feb 1, 2009 at 2:19 PM, Baho Utot <baho-utot@columbus.rr.com> wrote:
Daenyth Blank wrote:
On Sun, Feb 1, 2009 at 09:44, Baho Utot <baho-utot@columbus.rr.com> wrote:
In file included from path-concat.c:30: /usr/include/string.h:234: error: expected identifier or '(' before 'void' /usr/include/string.h:234: error: expected ')' before '(' token
What the hell? Maybe try reinstalling the package with that file, perhaps it got munged somehow...
Which file?
What reinstall a2ps?
I have to get it to compile first, otherwise how would I reinstall it, seeing that it isn't presently installed.
$ pacman -Qo /usr/include/string.h /usr/include/string.h is owned by glibc 2.9-4
Dan McGee wrote:
On Sun, Feb 1, 2009 at 2:19 PM, Baho Utot <baho-utot@columbus.rr.com> wrote:
Daenyth Blank wrote:
On Sun, Feb 1, 2009 at 09:44, Baho Utot <baho-utot@columbus.rr.com> wrote:
In file included from path-concat.c:30: /usr/include/string.h:234: error: expected identifier or '(' before 'void' /usr/include/string.h:234: error: expected ')' before '(' token
What the hell? Maybe try reinstalling the package with that file, perhaps it got munged somehow...
Which file?
What reinstall a2ps?
I have to get it to compile first, otherwise how would I reinstall it, seeing that it isn't presently installed.
$ pacman -Qo /usr/include/string.h /usr/include/string.h is owned by glibc 2.9-4
Being that I compiled all the packages on this machine I am in doubt that the header file is indeed bad. It had compiled other packages after this one. This was not a one time compile. I could extract the file from the package from the arch repos and due a md5sum or diff but I don't think it would be different.
On Sun, Feb 1, 2009 at 18:24, Baho Utot <baho-utot@columbus.rr.com> wrote:
I could extract the file from the package from the arch repos and due a md5sum or diff but I don't think it would be different.
It can't hurt to check.
participants (4)
-
Baho Utot
-
Daenyth Blank
-
Dan McGee
-
Marq Schneider