On Fri, Nov 27, 2009, Victor G. Bolshakov wrote: > While build patch on Solaris 10: > > config.status: creating Makefile > config.status: creating config.h > + /openpkg/bin/make --no-print-directory -j4 > ./update-version.sh: syntax error at line 24: `(' unexpected > make: *** [VERSION] Error 2 > error: Bad exit status from /openpkg/RPM/TMP/rpm-tmp.11878 (%build) > > > RPM build errors: > Bad exit status from /openpkg/RPM/TMP/rpm-tmp.11878 (%build) > > When i add > echo `!#` > update-version.sh > at begin of %build (just dirty hack) i go:
Ok, hack added to the "patch" package. > /openpkg/bin/cc -std=gnu99 -o src/patch -O2 -pipe gl/lib/argmatch.o > gl/lib/backupfile.o gl/lib/basename.o gl/lib/dirname.o > gl/lib/stripslash.o gl/lib/error.o gl/lib/exitfail.o gl/lib/getopt.o > gl/lib/getopt1.o gl/lib/hash.o gl/lib/quote.o gl/lib/quotearg.o > gl/lib/safe-write.o gl/lib/xmalloc.o gl/lib/xstrndup.o > gl/lib/full-write.o src/inp.o src/maketime.o src/partime.o src/patch.o > src/pch.o src/quotesys.o src/util.o src/version.o > gl/lib/xstrndup.o: In function `xstrndup': > xstrndup.c:(.text+0x8): undefined reference to `strndup' > collect2: ld returned 1 exit status > make: *** [src/patch] Error 1 Hmmm... this I don't understand: Patch has a fallback strndup(3) implementation but seems like it does not use it at all. I've applied a cruel hack (inclusion of a local copy of strncpy) and it now builds for me under Solaris 10. Ralf S. Engelschall r...@engelschall.com www.engelschall.com ______________________________________________________________________ OpenPKG http://openpkg.org User Communication List openpkg-users@openpkg.org