Created attachment 304071 [details] www-client/links-2.5 build.log www-client/links-2.4-r2 builds without a problem. I took a brief look at the file that caused the build failure, but I did not see anything wrong. $ emerge --info links Portage 2.2.01.20271-prefix (prefix/sunos/solaris/5.10/sparc64, gcc-4.6.2, unavailable, 5.10 sun4u) ================================================================= System Settings ================================================================= System uname: Solaris-2.10-sun4u-sparc-64bit-ELF Timestamp of tree: Fri, 02 Mar 2012 21:42:15 +0000 distcc 3.1 sparcv9-sun-solaris2.10 [disabled] ccache version 3.1.4 [disabled] app-shells/bash: 4.2_p20::gentoo_prefix dev-lang/python: 2.7.2-r3::gentoo_prefix dev-util/ccache: 3.1.4::gentoo_prefix dev-util/pkgconfig: 0.26::gentoo_prefix sys-devel/autoconf: 2.13::gentoo_prefix, 2.68::gentoo_prefix sys-devel/automake: 1.11.1::gentoo_prefix sys-devel/binutils: 2.22-r1::gentoo_prefix sys-devel/gcc: 4.6.2::gentoo_prefix sys-devel/gcc-config: 1.5-r2::gentoo_prefix sys-devel/libtool: 2.4-r4::gentoo_prefix sys-devel/make: 3.82::gentoo_prefix Repositories: gentoo_prefix local_overlay Installed sets: ACCEPT_KEYWORDS="~sparc64-solaris" ACCEPT_LICENSE="* -@EULA" CBUILD="sparcv9-sun-solaris2.10" CFLAGS="-mcpu=ultrasparc3 -mtune=ultrasparc3 -O2 -pipe" CHOST="sparcv9-sun-solaris2.10" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-mcpu=ultrasparc3 -mtune=ultrasparc3 -O2 -pipe" DISTDIR="/home/stufs1/ryao/Gentoo-Solaris/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles force-prefix news nodoc noinfo parallel-fetch parallel-install preserve-libs protect-owned sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS=" -Wl,-O1 -Wl,--as-needed -Wl,--sort-common" MAKEOPTS="-j2" PKGDIR="/home/stufs1/ryao/Gentoo-Solaris/usr/portage/packages" PORTAGE_CONFIGROOT="/home/stufs1/ryao/Gentoo-Solaris/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/tmp/ryao" PORTDIR="/home/stufs1/ryao/Gentoo-Solaris/usr/portage" PORTDIR_OVERLAY="/home/stufs1/ryao/Gentoo-Solaris/usr/local/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="cracklib cxx modules ncurses nls prefix readline sparc64-solaris ssl unicode zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="SunOS" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby19" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= www-client/links-2.4-r2 was built with the following: USE="(prefix) ssl unicode zlib -X -bzip2 (-directfb) (-fbcon) (-gpm) -jpeg -livecd (-suid) (-svga) -tiff"
af_unix.c:32:21: error: expected identifier or '(' before numeric constant af_unix.c: In function 'get_address': af_unix.c:71:38: error: expected identifier before numeric constant af_unix.c:77:9: error: expected identifier before numeric constant af_unix.c:78:16: error: expected identifier before numeric constant af_unix.c:78:16: error: too few arguments to function 'strcpy' af_unix.c: In function 'unlink_unix': af_unix.c:86:20: error: expected identifier before numeric constant That hints that some include is missing, since the compiler doesn't see something it knows (preprocessor likely didn't expand something because of missing definition).
Try links-2.6.
(In reply to comment #2) > Try links-2.6. Same problem: sparcv9-sun-solaris2.10-gcc -DHAVE_CONFIG_H -I. -mcpu=ultrasparc3 -mtune=ultrasparc3 -O2 -pipe -c af_unix.c sparcv9-sun-solaris2.10-gcc -DHAVE_CONFIG_H -I. -mcpu=ultrasparc3 -mtune=ultrasparc3 -O2 -pipe -c auth.c af_unix.c:32:21: error: expected identifier or '(' before numeric constant af_unix.c: In function 'get_address': af_unix.c:71:38: error: expected identifier before numeric constant af_unix.c:77:9: error: expected identifier before numeric constant af_unix.c:78:16: error: expected identifier before numeric constant af_unix.c:78:16: error: too few arguments to function 'strcpy' af_unix.c: In function 'unlink_unix': af_unix.c:87:2: error: expected identifier before numeric constant make[1]: *** [af_unix.o] Error 1 make[1]: *** Waiting for unfinished jobs....
Try again with links-2.10 and let me know. Cheers.