Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678148 - net-fs/ncpfs-2.2.6-r3 + PHP >= 7.0 - error: '(*server)->value.str' is a pointer; did you mean to use '->'
Summary: net-fs/ncpfs-2.2.6-r3 + PHP >= 7.0 - error: '(*server)->value.str' is a point...
Status: RESOLVED DUPLICATE of bug 582516
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Joshua Kinard
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PHP-7-compat
  Show dependency tree
 
Reported: 2019-02-16 15:00 UTC by segmentation fault
Modified: 2019-02-16 15:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,311.36 KB, text/x-log)
2019-02-16 15:04 UTC, segmentation fault
Details

Note You need to log in before you can comment on or make changes to this bug.
Description segmentation fault 2019-02-16 15:00:38 UTC
Setting the PHP CLI to version 5.6

eselect php list cli
  [1]   php5.6 *
  [2]   php7.0
  [3]   php7.1
  [4]   php7.2

compilation of net-fs/ncpfs-2.2.6-r3 works without problems and the package can be merged.

Setting PHP CLI to one of the 7,x versions (no matter whether this is 7.0, 7.1 or 7.2) results in an error and the package cannot be merged:

eselect php set cli 4
eselect php list cli
  [1]   php5.6
  [2]   php7.0
  [3]   php7.1
  [4]   php7.2 *

emerge -1av net-fs/ncpfs

...

php_auth_nds.c:1077:32: error: '(*server)->value.str' is a pointer; did you mean to use '->'?
  servern = (*server)->value.str.val;
                                ^
                                ->
php_auth_nds.c:1078:28: error: '(*user)->value.str' is a pointer; did you mean to use '->'?
  usern = (*user)->value.str.val;
                            ^
                            ->
php_auth_nds.c:1079:34: error: '(*password)->value.str' is a pointer; did you mean to use '->'?
  sent_pw = (*password)->value.str.val;
                                  ^
                                  ->
php_auth_nds.c:1080:30: error: '(*group)->value.str' is a pointer; did you mean to use '->'?
  groupn = (*group)->value.str.val;
                              ^
                              ->
php_auth_nds.c:1086:25: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
   RETURN_STRING(errstr,1);
                         ^
php_auth_nds.c:1086:3: error: 'RETURN_STRING' undeclared (first use in this function); did you mean 'SYN_NU_STRING'?
   RETURN_STRING(errstr,1);
   ^~~~~~~~~~~~~
   SYN_NU_STRING
make[2]: *** [/zram/portage/net-fs/ncpfs-2.2.6-r3/work/ncpfs-2.2.6/contrib/php/build/rules_common.mk:64: php_auth_nds.slo] Error 1
make[2]: Leaving directory '/zram/portage/net-fs/ncpfs-2.2.6-r3/work/ncpfs-2.2.6/contrib/php'
make[1]: *** [/zram/portage/net-fs/ncpfs-2.2.6-r3/work/ncpfs-2.2.6/contrib/php/build/rules.mk:28: all-recursive] Error 1
make[1]: Leaving directory '/zram/portage/net-fs/ncpfs-2.2.6-r3/work/ncpfs-2.2.6/contrib/php'
make: *** [Makefile:25: all] Error 2
 * ERROR: net-fs/ncpfs-2.2.6-r3::gentoo failed (compile phase):


See attached build.log.


Workaround
----------

Maybe the ebuild can warn the user to  not use PHP CLI 7.x... A true solution would be to correct the error...Did not try versions other than 2.2.6-r3 though...
Comment 1 segmentation fault 2019-02-16 15:04:32 UTC
Created attachment 565552 [details]
build.log
Comment 2 Brian Evans (RETIRED) gentoo-dev 2019-02-16 15:15:22 UTC

*** This bug has been marked as a duplicate of bug 582516 ***