Bug #75618 [NEW]: embed sapi can not compile

From: Date: Mon, 04 Dec 2017 08:45:17 +0000
Subject: Bug #75618 [NEW]: embed sapi can not compile
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212887@lists.php.net to get a copy of this message
From:             jsntzhuhu at gmail dot com
Operating system: Linux Mint
PHP version:      7.2.0
Package:          Unknown/Other Function
Bug Type:         Bug
Bug description:embed sapi can not compile

Description:
------------
simple sapi code can't link.

same as https://bugs.php.net/bug.php?id=48911 




Test script:
---------------
#include "sapi/embed/php_embed.h"
int main( int argc , char ** argv){
	PHP_EMBED_START_BLOCK(argc,argv);
	
	PHP_EMBED_END_BLOCK();
	return 0;
	
}


gcc -Iphp7/include/php	-Iphp7/include/php/main -Iphp7/include/php/Zend
-Iphp7/include/php/TSRM -Wall -g -lstdc++ -lphp7 -Lphp7/lib ukcframe.c
-o ukcframe

Expected result:
----------------
compile success

Actual result:
--------------
ukcframe.c:6: undefined reference to `php_embed_init'
ukcframe.c:6: undefined reference to `executor_globals'
ukcframe.c:6: undefined reference to `executor_globals'
ukcframe.c:6: undefined reference to `executor_globals'
ukcframe.c:8: undefined reference to `executor_globals'
ukcframe.c:8: undefined reference to `executor_globals'
ukcframe.c:8: undefined reference to `php_embed_shutdown'


-- 
Edit bug report at https://bugs.php.net/bug.php?id=75618&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=75618&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=75618&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=75618&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=75618&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=75618&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=75618&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=75618&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=75618&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=75618&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=75618&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=75618&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=75618&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=75618&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75618&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=75618&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=75618&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=75618&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75618&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=75618&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=75618&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#212887) next »