[ZBX-14335] Error of building proxy on Solaris 11 Created: 2018 May 08  Updated: 2024 Apr 10  Resolved: 2018 Sep 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P)
Affects Version/s: 4.0.0alpha6
Fix Version/s: 4.0.0rc1, 4.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Michael Veksler Assignee: Andris Mednis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Solaris 11


Team: Team A
Team: Team A
Sprint: Sprint 42, Sprint 43
Story Points: 1

 Description   

When we build zabbix proxy on Solaris 11 - we get the error:

./configure --enable-proxy --with-mysql=/opt/csw/bin/amd64/mysql_config --prefix=$(pwd)/dist 
make dbschema
make -s install
...
Making install in zabbix_server/ipmi
Making install in zabbix_server/odbc
Making install in zabbix_server/scripts
Making install in zabbix_proxy
make: Fatal error in reader: Makefile, line 900: Unexpected end of line seen
Current working directory /export/home/zabbix/workspace/trunk/src/zabbix_proxy
*** Error code 1
The following command caused the error:
fail= failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo install-recursive | sed s/-recursive//`; \
list='libs      zabbix_server/dbsyncer  zabbix_server/dbconfig  zabbix_server/discoverer  zabbix_server/httppoller  zabbix_server/pinger  zabbix_server/poller  zabbix_server/trapper  zabbix_server/selfmon  zabbix_server/snmptrapper  zabbix_server/vmware  zabbix_server/ipmi  zabbix_server/odbc  zabbix_server/scripts  zabbix_proxy  '; 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; \
  (CDPATH="${ZSH_VERSION+.}:" && 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 `install-recursive'
Current working directory /export/home/zabbix/workspace/trunk/src
*** Error code 1
The following command caused the error:
fail= failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo install-recursive | sed s/-recursive//`; \
list='src  database  man  misc  upgrades'; 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; \
  (CDPATH="${ZSH_VERSION+.}:" && 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 `install-recursive'

Expectation: successfully build zabbix_proxy on Solaris 11



 Comments   
Comment by Andris Mednis [ 2018 May 08 ]

If make fails on a commercial Unix, it could be a good idea to see if it is vendor's supplied make. If so, look around - is there a GNU make available, maybe it is called gmake. Chances are GNU make will succeed.

Comment by Andris Mednis [ 2018 Sep 14 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-14335.

Comment by Andris Mednis [ 2018 Sep 17 ]

Fixed in versions:

  • pre-4.0.0rc1 (trunk) r84972.
Generated at Fri Apr 19 03:03:43 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.