免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6028 | 回复: 5

[OpenBSD] openbsd编译php,make时出现如下错误,求解决方法 [复制链接]

论坛徽章:
0
发表于 2015-08-29 15:51 |显示全部楼层
本帖最后由 wojuexingle 于 2015-08-29 16:41 编辑

错误信息:
ext/standard/.libs/rand.o(.text+0x4a4): In function `php_rand':
/home/php-5.5.13/ext/standard/rand.c:74: warning: random() may return deterministic values, is that what you want?
main/.libs/php_sprintf.o(.text+0x38 ): In function `php_sprintf':
/home/php-5.5.13/main/php_sprintf.c:38: warning: vsprintf() is often misused, please use vsnprintf()
/usr/local/mysql/lib/libmysqlclient.so.18.0: warning: stpcpy() is dangerous; do not use it
ext/ereg/regex/.libs/regcomp.o(.text+0xa3c): In function `p_bracket':
/home/php-5.5.13/ext/ereg/regex/regcomp.c:1170: warning: strcpy() is almost always misused, please use strlcpy()
ext/mbstring/oniguruma/.libs/regerror.o(.text+0x4a7): In function `onig_snprintf_with_pattern':
/home/php-5.5.13/ext/mbstring/oniguruma/regerror.c:342: warning: strcat() is almost always misused, please use strlcat()
ext/mbstring/oniguruma/.libs/regerror.o(.text+0x40a): In function `sprint_byte_with_x':
/home/php-5.5.13/ext/mbstring/oniguruma/regerror.c:192: warning: sprintf() is often misused, please use snprintf()
ext/openssl/.libs/openssl.o(.text+0x2b48 ): In function `php_openssl_generate_private_key':
/home/php-5.5.13/ext/openssl/openssl.c:917: undefined reference to `RAND_egd'
collect2: ld returned 1 exit status
*** Error 1 in /home/php-5.5.13 (Makefile:272 'sapi/cli/php')

编译选项:
./configure \
--prefix=/usr/local/php \
--with-config-file-path=/usr/local/php/etc \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-mysql-sock=/tmp/mysql.sock \
--with-gd \
--with-iconv-dir \
--with-zlib \
--enable-xml \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--enable-mbregex \
--enable-fpm \
--enable-mbstring \
--enable-ftp\
--enable-gd-native-ttf \
--with-openssl \
--enable-pcntl \
--enable-sockets \
--with-xmlrpc \
--enable-zip \
--enable-soap \
--without-pear \
--with-gettext \
--enable-session \
--with-mcrypt \
--with-curl

pkg_info情况:
autoconf-2.59p4     automatically configure source code on many Un*x platforms
autoconf-2.69p1     automatically configure source code on many Un*x platforms
automake-1.9.6p11   GNU Standards-compliant Makefile generator
bzip2-1.0.6p1       block-sorting file compressor, unencumbered
cmake-3.1.3         portable build system
curl-7.40.0         get files from FTP, Gopher, HTTP or HTTPS servers
cyrus-sasl-2.1.26p12 RFC 2222 SASL (Simple Authentication and Security Layer)
femail-1.0p0        simple SMTP client
femail-chroot-1.0p0 simple SMTP client for chrooted web servers
freetype-1.3.1p3    free and portable TrueType font rendering engine
freetype-doc-1.3.1  documentation for FreeType
gd-2.1.0            library for dynamic creation of images
gettext-0.19.4      GNU gettext
glib2-2.42.1p0      general-purpose utility library
glib2mm-2.42.0p0    C++ interface for glib2
gmake-4.1p0         GNU make
icon-interp-9.5.1   programming language with generators, X11 and more
icon-lib-9.5.1      useful and interesting programs for Icon
icu4c-54.1p3        International Components for Unicode
jpeg-9a             IJG's JPEG compression utilities
libarchive-3.0.4p0  multi-format archive and compression library
libelf-0.8.13p2     read, modify, create ELF files on any arch
libevent-2.0.22     event notification library
libffi-3.0.13       Foreign Function Interface
libiconv-1.14p1     character set conversion library
libidn-1.29p0       internationalized string handling
libltdl-2.4.2p0     GNU libtool system independent dlopen wrapper
libmcrypt-2.5.8p1   interface to access block/stream encryption algorithms
libpqxx-4.0.1       C++ client API for PostgreSQL
libsigc++-2.4.0     callback framework for C++
libtool-2.4.2p0     generic shared library support script
libvpx-1.3.0p1      Google VP8/VP9 video codec
libxml++-2.36.0p1   C++ wrapper for the libxml XML parser library
libxml-2.9.2p0      XML parsing library
mcrypt-2.6.8p4      extendable encryption program that supports many ciphers
metaauto-1.0p1      wrapper for gnu auto*
mhash-0.9.9.9       strong hash library
openldap-client-2.4.40 open-source LDAP software (client)
openldap-server-2.3.43p15 open-source LDAP software (server, legacy version)
openssl-1.0.1k      TLS/SSL library and tools
p5-Clone-0.37       recursively copy Perl datatypes
p5-DBI-1.633        unified perl interface for database access
p5-FreezeThaw-0.5001 module for converting structures to strings and back
p5-MLDBM-2.05       store multi-level hash structure in single-level tied hash
p5-Net-Daemon-0.48p0 extension for portable daemons
p5-Params-Util-1.07p0 utility to make parameter checking easier
p5-PlRPC-0.2018p2   module for writing rpc servers and clients
p5-SQL-Statement-1.405 sql parsing and processing
partial-php-5.5.22  server-side HTML-embedded scripting language
pcre-8.35           perl-compatible regular expression library
png-1.6.16          library for manipulating PNG images
postgresql-client-9.4.1 PostgreSQL RDBMS (client)
python-2.7.9p0      interpreted object-oriented programming language
quirks-2.54         exceptions to pkg_add rules
spawn-fcgi-1.6.3p0  spawn FastCGI processes
t1lib-5.1.2         Type 1 rasterizer library for UNIX/X11
tiff-4.0.3p2        tools and library routines for working with TIFF images
wget-1.16.1         retrieve files from the web via HTTP, HTTPS and FTP
xmlrpc-c-1.06.35    XML-RPC C/C++ client-server implementation
xz-5.2.0            LZMA compression and decompression tools

去掉 --with-openssl后又出现如下错误:
ext/standard/.libs/rand.o(.text+0x4a4): In function `php_rand':
/home/php-5.5.13/ext/standard/rand.c:74: warning: random() may return deterministic values, is that what you want?
main/.libs/php_sprintf.o(.text+0x3: In function `php_sprintf':
/home/php-5.5.13/main/php_sprintf.c:38: warning: vsprintf() is often misused, please use vsnprintf()
/usr/local/mysql/lib/libmysqlclient.so.18.0: warning: stpcpy() is dangerous; do not use it
ext/ereg/regex/.libs/regcomp.o(.text+0xa3c): In function `p_bracket':
/home/php-5.5.13/ext/ereg/regex/regcomp.c:1170: warning: strcpy() is almost always misused, please use strlcpy()
ext/mbstring/oniguruma/.libs/regerror.o(.text+0x4a7): In function `onig_snprintf_with_pattern':
/home/php-5.5.13/ext/mbstring/oniguruma/regerror.c:342: warning: strcat() is almost always misused, please use strlcat()
ext/mbstring/oniguruma/.libs/regerror.o(.text+0x40a): In function `sprint_byte_with_x':
/home/php-5.5.13/ext/mbstring/oniguruma/regerror.c:192: warning: sprintf() is often misused, please use snprintf()
make: don't know how to make cgi (prerequisite of: install)
Stop in /home/php-5.5.13

各位大神,怎么办,网上没资料

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
发表于 2015-08-29 16:05 |显示全部楼层
手动编译的?看样子好像是ssl出了问题。

论坛徽章:
0
发表于 2015-08-29 16:35 |显示全部楼层
回复 2# lsstarboy
对啊,是手动编译,不知怎么解决


   

论坛徽章:
17
巨蟹座
日期:2014-11-20 23:04:5215-16赛季CBA联赛之北控
日期:2018-08-01 16:08:4015-16赛季CBA联赛之浙江
日期:2017-12-08 11:25:2415-16赛季CBA联赛之四川
日期:2016-11-21 00:16:50操作系统版块每日发帖之星
日期:2016-07-28 06:20:0015-16赛季CBA联赛之吉林
日期:2016-05-25 15:36:04操作系统版块每日发帖之星
日期:2016-02-12 06:20:002015亚冠之西悉尼流浪者
日期:2015-08-28 14:48:322015亚冠之平阳省
日期:2015-08-19 14:54:162015亚冠之武里南联
日期:2015-07-07 10:49:112015亚冠之城南
日期:2015-06-22 10:15:002015亚冠之山东鲁能
日期:2015-06-18 18:03:44
发表于 2015-08-29 17:36 |显示全部楼层
根据openbsd5.7的发行说明,bsd的httpd程序已经去除对ssl v2和v3的支持,请尝试使用tls。
OpenBSD httpd(:

    SSLv2/3 is not supported anymore; renamed all occurrences of "SSL" to "TLS".

论坛徽章:
0
发表于 2015-08-29 20:27 |显示全部楼层
回复 4# yyu0378
我该怎么做,大神


   

论坛徽章:
154
2022北京冬奥会纪念版徽章
日期:2015-08-07 17:10:5720周年集字徽章-年
日期:2022-10-26 16:44:2015-16赛季CBA联赛之深圳
日期:2022-11-02 14:02:4515-16赛季CBA联赛之八一
日期:2022-11-28 12:07:4820周年集字徽章-20	
日期:2023-07-19 08:49:4515-16赛季CBA联赛之八一
日期:2023-11-04 19:23:5115-16赛季CBA联赛之广夏
日期:2023-12-13 18:09:34
发表于 2015-08-29 22:50 来自手机 |显示全部楼层
我有时候对bsd真没信心,linux好好的事情跑到bsd就是不行
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP