Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#20867 closed defect (fixed)

a2ps fails build on 10.6 (looks like stpcpy issue)

Reported by: jowens (John Owens) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: snowleopard Cc:
Port: a2ps

Description

$ sudo port -v install a2ps
Password:
--->  Computing dependencies for a2ps.
--->  Building a2ps
/usr/bin/make  all-recursive
Making all in auxdir
make[2]: Nothing to be done for `all'.
Making all in m4
make[2]: Nothing to be done for `all'.
Making all in etc
make[2]: Nothing to be done for `all'.
Making all in ps
make[2]: Nothing to be done for `all'.
Making all in ogonkify
Making all in doc
make[3]: Nothing to be done for `all'.
Making all in m4
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in lib
/usr/bin/make  all-am
if /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/local/share/locale\" -DSYSCONFFILE=\"/opt/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I.  -I/opt/local/include  -O2 -arch x86_64  -MT xstrrpl.lo -MD -MP -MF ".deps/xstrrpl.Tpo" -c -o xstrrpl.lo xstrrpl.c; \
        then mv -f ".deps/xstrrpl.Tpo" ".deps/xstrrpl.Plo"; else rm -f ".deps/xstrrpl.Tpo"; exit 1; fi
if /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/local/share/locale\" -DSYSCONFFILE=\"/opt/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I.  -I/opt/local/include  -O2 -arch x86_64  -MT pathwalk.lo -MD -MP -MF ".deps/pathwalk.Tpo" -c -o pathwalk.lo pathwalk.c; \
        then mv -f ".deps/pathwalk.Tpo" ".deps/pathwalk.Plo"; else rm -f ".deps/pathwalk.Tpo"; exit 1; fi
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/local/share/locale\" -DSYSCONFFILE=\"/opt/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I. -I/opt/local/include -O2 -arch x86_64 -MT xstrrpl.lo -MD -MP -MF .deps/xstrrpl.Tpo -c xstrrpl.c -o xstrrpl.o
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/local/share/locale\" -DSYSCONFFILE=\"/opt/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I. -I/opt/local/include -O2 -arch x86_64 -MT pathwalk.lo -MD -MP -MF .deps/pathwalk.Tpo -c pathwalk.c -o pathwalk.o
xstrrpl.c:25:22: error: macro "stpcpy" requires 2 arguments, but only 1 given
xstrrpl.c:25: error: 'stpcpy' redeclared as different kind of symbol
make[3]: *** [xstrrpl.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_a2ps/work/a2ps-4.14" && /usr/bin/make -j2 all " returned error 2
Command output: /usr/bin/make  all-recursive
Making all in auxdir
make[2]: Nothing to be done for `all'.
Making all in m4
make[2]: Nothing to be done for `all'.
Making all in etc
make[2]: Nothing to be done for `all'.
Making all in ps
make[2]: Nothing to be done for `all'.
Making all in ogonkify
Making all in doc
make[3]: Nothing to be done for `all'.
Making all in m4
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in lib
/usr/bin/make  all-am
if /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/local/share/locale\" -DSYSCONFFILE=\"/opt/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I.  -I/opt/local/include  -O2 -arch x86_64  -MT xstrrpl.lo -MD -MP -MF ".deps/xstrrpl.Tpo" -c -o xstrrpl.lo xstrrpl.c; \
        then mv -f ".deps/xstrrpl.Tpo" ".deps/xstrrpl.Plo"; else rm -f ".deps/xstrrpl.Tpo"; exit 1; fi
if /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/local/share/locale\" -DSYSCONFFILE=\"/opt/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I.  -I/opt/local/include  -O2 -arch x86_64  -MT pathwalk.lo -MD -MP -MF ".deps/pathwalk.Tpo" -c -o pathwalk.lo pathwalk.c; \
        then mv -f ".deps/pathwalk.Tpo" ".deps/pathwalk.Plo"; else rm -f ".deps/pathwalk.Tpo"; exit 1; fi
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/local/share/locale\" -DSYSCONFFILE=\"/opt/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I. -I/opt/local/include -O2 -arch x86_64 -MT xstrrpl.lo -MD -MP -MF .deps/xstrrpl.Tpo -c xstrrpl.c -o xstrrpl.o
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -DLOCALEDIR=\"/opt/local/share/locale\" -DSYSCONFFILE=\"/opt/local/etc/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I. -I/opt/local/include -O2 -arch x86_64 -MT pathwalk.lo -MD -MP -MF .deps/pathwalk.Tpo -c pathwalk.c -o pathwalk.o
xstrrpl.c:25:22: error: macro "stpcpy" requires 2 arguments, but only 1 given
xstrrpl.c:25: error: 'stpcpy' redeclared as different kind of symbol
make[3]: *** [xstrrpl.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for a2ps): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Change History (3)

comment:1 Changed 15 years ago by tobypeterson

Resolution: fixed
Status: newclosed

comment:2 in reply to:  1 Changed 14 years ago by el_alquemista@…

Replying to toby@…:

r56498

Actually the reason for the error: xstrrpl.c:25:22: error: macro "stpcpy" requires 2 arguments, but only 1 given xstrrpl.c:25: error: 'stpcpy' redeclared as different kind of symbol

is that line 25 in xstrrpl.c is declaring stpcpy as an external function and the compiler is complaining about the function having only one argument. I suspect stpcpy is now a macro instead of a function and the pre-processor is chocking on the external function declaration. To fix the problem comment the external function declaration (line 25) out.

comment:3 Changed 14 years ago by mf2k (Frank Schima)

Port: a2ps added
Note: See TracTickets for help on using tickets.