The acl_trivial(3SEC) manpage says it needs the "-lsec" ld flag. Maybe you need to set LDFLAGS="-lsec" when running configure?
-Jerry Manish Chakravarty wrote: > Hey BOSUG, > > I am trying to compile GNU gettext on a plan SX install ( b114) using > Sun Studio. > I ran the build as follows: > ./configure --prefix=/export/home/manish/staging/ CC=/opt/SUNWspro/bin/cc > > Got GNU gettext from http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz > > Anyone got a clue? The trace is below..... > > Thanks in advance! > > > ======Trace====== > /opt/SUNWspro/bin/cc -g -o .libs/msgcmp msgcmp-msgcmp.o > ./.libs/libgettextsrc.so > /export/home/manish/Software/gettext-0.17/gettext-tools/gnulib-lib/.libs/libgettextlib.so > -lcroco-0.6 -lglib-2.0 -ltermcap -lc > -R/export/home/manish/staging//lib > Undefined first referenced > symbol in file > acl_trivial > /export/home/manish/Software/gettext-0.17/gettext-tools/gnulib-lib/.libs/libgettextlib.so > ld: fatal: symbol referencing errors. No output written to .libs/msgcmp > *** Error code 1 > make: Fatal error: Command failed for target `msgcmp' > Current working directory > /export/home/manish/Software/gettext-0.17/gettext-tools/src > *** Error code 1 > make: Fatal error: Command failed for target `all' > Current working directory > /export/home/manish/Software/gettext-0.17/gettext-tools/src > *** Error code 1 > The following command caused the error: > failcom='exit 1'; \ > for f in x $MAKEFLAGS; do \ > case $f in \ > *=* | --[!k]*);; \ > *k*) failcom='fail=yes';; \ > esac; \ > done; \ > dot_seen=no; \ > target=`echo all-recursive | sed s/-recursive//`; \ > list='doc intl gnulib-lib libgrep src libgettextpo po projects styles > misc man m4 tests gnulib-tests examples'; for subdir in $list; do \ > echo "Making $target in $subdir"; \ > if test "$subdir" = "."; then \ > dot_seen=yes; \ > local_target="$target-am"; \ > else \ > local_target="$target"; \ > fi; \ > (cd $subdir && make $local_target) \ > || eval $failcom; \ > done; \ > if test "$dot_seen" = "no"; then \ > make "$target-am" || exit 1; \ > fi; test -z "$fail" > make: Fatal error: Command failed for target `all-recursive' > Current working directory > /export/home/manish/Software/gettext-0.17/gettext-tools > *** Error code 1 > make: Fatal error: Command failed for target `all' > Current working directory > /export/home/manish/Software/gettext-0.17/gettext-tools > *** Error code 1 > The following command caused the error: > failcom='exit 1'; \ > for f in x $MAKEFLAGS; do \ > case $f in \ > *=* | --[!k]*);; \ > *k*) failcom='fail=yes';; \ > esac; \ > done; \ > dot_seen=no; \ > target=`echo all-recursive | sed s/-recursive//`; \ > list='gnulib-local gettext-runtime gettext-tools autoconf-lib-link'; > for subdir in $list; do \ > echo "Making $target in $subdir"; \ > if test "$subdir" = "."; then \ > dot_seen=yes; \ > local_target="$target-am"; \ > else \ > local_target="$target"; \ > fi; \ > (cd $subdir && make $local_target) \ > || eval $failcom; \ > done; \ > if test "$dot_seen" = "no"; then \ > make "$target-am" || exit 1; \ > fi; test -z "$fail" > make: Fatal error: Command failed for target `all-recursive' > > ================= >