Sendmail comes with a lot of hints about the build process on different platforms and architectures. These rules are based on information about vendor specific compilers and their options. Since OpenPKG should be a closed environment, we should ensure that we always use the %{l_cc} to build the binaries. Here is my patch against sendmail.spec to address this issue (and the possible libz.a dependency of OpenSSL):
--- sendmail/sendmail.spec Tue Oct 11 14:46:24 2005 +++ sendmail.jl/sendmail.spec Sun Feb 19 15:32:57 2006 @@ -145,7 +145,8 @@ esac # configure Sendmail - ( echo "define(\`confMAPDEF', \`-DMAP_REGEX')dnl" + ( echo "define(\`confCC', \`%{l_cc} %{l_cflags}')dnl" + echo "define(\`confMAPDEF', \`-DMAP_REGEX')dnl" echo "define(\`confSBINOWN', \`%{l_musr}')dnl" echo "define(\`confSBINGRP', \`%{l_mgrp}')dnl" echo "define(\`confUBINOWN', \`%{l_musr}')dnl" @@ -181,7 +182,7 @@ %if "%{with_ssl}" == "yes" echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DSTARTTLS')dnl" echo "APPENDDEF(\`conf_sendmail_ENVDEF', \`-DHASURANDOMDEV')dnl" - echo "APPENDDEF(\`conf_sendmail_LIBS', \`-lssl -lcrypto')dnl" + echo "APPENDDEF(\`conf_sendmail_LIBS', \`-lssl -lcrypto -lz')dnl" %endif %if "%{with_sasl}" == "yes" echo "APPENDDEF(\`confENVDEF', \`-DSASL=1')dnl" @@ -197,7 +198,7 @@ %if "%{with_ldap}" == "yes" echo "APPENDDEF(\`confMAPDEF', \`-DLDAPMAP')dnl" echo "APPENDDEF(\`confENVDEF', \`-DSM_CONF_LDAP_MEMFREE=1')dnl" - echo "APPENDDEF(\`confLIBS', \`-lldap -llber -lssl -lcrypto')dnl" + echo "APPENDDEF(\`confLIBS', \`-lldap -llber -lssl -lcrypto -lz')dnl" %endif %if "%{with_mysql}" == "yes" echo "APPENDDEF(\`confMAPDEF',\`-DMYSQLMAP')dnl" This should not harm the build process on other platforms, but enabled my build on IRIX-6.5.x. Cheers, J"org -- Joerg Lehrke GnuPG-KeyID: C66844AC Pi-BI: 2593079121 The Knoc http://k.noc.de/ Skype callto://skypedzanq Bgm.-Haffner-Str. 7, D-87600 Kaufbeuren, Germany Tel +49 179 7882842 GNU -- Protect your freedom! ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List openpkg-dev@openpkg.org