Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot compile latest 64bit v.1.3.0 #2110

Closed
temuri416 opened this issue Feb 27, 2014 · 4 comments
Closed

[BUG] Cannot compile latest 64bit v.1.3.0 #2110

temuri416 opened this issue Feb 27, 2014 · 4 comments
Labels
bug A bug report status: medium Medium

Comments

@temuri416
Copy link
Contributor

Because of #1209 (comment) I have to first comment out deprecation error and do "php gen-build" first.

My steps:

  1. Comment out deprecation error in ext/di/service.c
  2. php gen-build
  3. ./install

Result:

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
/bin/bash /root/cphalcon/build/64bits/libtool --mode=compile gcc  -I. -I/root/cphalcon/build/64bits -DPHP_ATOM_INC -I/root/cphalcon/build/64bits/include -I/root/cphalcon/build/64bits/main -I/root/cphalcon/build/64bits -I/var/web/php/include/php -I/var/web/php/include/php/main -I/var/web/php/include/php/TSRM -I/var/web/php/include/php/Zend -I/var/web/php/include/php/ext -I/var/web/php/include/php/ext/date/lib  -DPHALCON_RELEASE -DHAVE_CONFIG_H  -march=native -mtune=native -O2 -fno-delete-null-pointer-checks -finline-functions -fomit-frame-pointer -fno-builtin-memcmp -fvisibility=hidden   -c /root/cphalcon/build/64bits/phalcon.c -o phalcon.lo
mkdir .libs
 gcc -I. -I/root/cphalcon/build/64bits -DPHP_ATOM_INC -I/root/cphalcon/build/64bits/include -I/root/cphalcon/build/64bits/main -I/root/cphalcon/build/64bits -I/var/web/php/include/php -I/var/web/php/include/php/main -I/var/web/php/include/php/TSRM -I/var/web/php/include/php/Zend -I/var/web/php/include/php/ext -I/var/web/php/include/php/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -march=native -mtune=native -O2 -fno-delete-null-pointer-checks -finline-functions -fomit-frame-pointer -fno-builtin-memcmp -fvisibility=hidden -c /root/cphalcon/build/64bits/phalcon.c  -fPIC -DPIC -o .libs/phalcon.o
/root/cphalcon/build/64bits/phalcon.c: In function âphalcon_call_class_method_aparamsâ:
/root/cphalcon/build/64bits/phalcon.c:4364:1: error: âphalcon_interned_parentâ undeclared (first use in this function)
/root/cphalcon/build/64bits/phalcon.c:4364:1: note: each undeclared identifier is reported only once for each function it appears in
/root/cphalcon/build/64bits/phalcon.c:4365:1: error: âphalcon_interned_selfâ undeclared (first use in this function)
/root/cphalcon/build/64bits/phalcon.c:4366:1: error: âphalcon_interned_staticâ undeclared (first use in this function)
make: *** [phalcon.lo] Error 1

Thanks!

@iby
Copy link
Contributor

iby commented Feb 28, 2014

I think you're on Ubuntu, not sure if that will work. Try compiling from the ext folder with this:

cd ext
sudo phpize --clean && phpize && ./configure --silent CFLAGS="-O1 -g3 -Wall -Wno-unused-parameter -Werror -Wno-unused-function -fvisibility=hidden -Wno-unicode" CC=clang && make --silent -B -j75 install

@iby
Copy link
Contributor

iby commented Feb 28, 2014

If won't, try this also from ext. Don't promise that it will work on Ubuntu still, but what you need is to compile from the latest source, not from the pre-build version of it.

sudo phpize —clean && phpize && ./configure CFLAGS="-O0 -g3" CC=gcc && make -j75 && sudo make install

@iby
Copy link
Contributor

iby commented Feb 28, 2014

Or try changing CC from clang to gcc in the first one.

@temuri416
Copy link
Contributor Author

No longer an issue.

@niden niden added bug A bug report status: medium Medium and removed Bug - Medium labels Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report status: medium Medium
Projects
None yet
Development

No branches or pull requests

3 participants