You are not logged in.

#1 2010-10-30 14:39:07

scarletxfi
Member
From: Australia
Registered: 2010-04-19
Posts: 105

convert php to c++, with HipHop from ....Facebook

I haven't tried this out yet, but looks cool...
any comments, would be much appreciated

http://github.com/facebook/hiphop-php/wiki

Last edited by scarletxfi (2010-10-30 14:39:40)

Offline

#2 2010-12-17 09:12:32

tinix
Member
From: Bumkcuf, Egypt
Registered: 2006-11-12
Posts: 20
Website

Re: convert php to c++, with HipHop from ....Facebook

https://github.com/facebook/hiphop-php/ … issue/257/

[ 87%] Building CXX object src/compiler/CMakeFiles/hphp_analysis.dir/parser/hphp.tab.cpp.o
[ 87%] Building CXX object src/compiler/CMakeFiles/hphp_analysis.dir/parser/parser.cpp.o
Linking CXX static library ../../bin/libhphp_analysis.a
[ 87%] Built target hphp_analysis
Scanning dependencies of target hphp
[ 87%] Building CXX object src/hphp/CMakeFiles/hphp.dir/main.cpp.o
[ 88%] Building CXX object src/hphp/CMakeFiles/hphp.dir/externals.cpp.o
Linking CXX executable hphp
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/libc-client.a(osdep.o): In function `ssl_onceonlyinit':
(.text+0x7089): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/libc-client.a(osdep.o): In function `checkpw_cleanup':
(.text+0x18c2): undefined reference to `pam_setcred'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/libc-client.a(osdep.o): In function `checkpw':
(.text+0x6eb8): undefined reference to `pam_start'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/libc-client.a(osdep.o): In function `checkpw':
(.text+0x6f12): undefined reference to `pam_set_item'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/libc-client.a(osdep.o): In function `checkpw':
(.text+0x6f21): undefined reference to `pam_authenticate'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/libc-client.a(osdep.o): In function `checkpw':
(.text+0x6f30): undefined reference to `pam_acct_mgmt'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/libc-client.a(osdep.o): In function `checkpw':
(.text+0x6f42): undefined reference to `pam_setcred'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib/libc-client.a(osdep.o): In function `checkpw_cleanup':
(.text+0x18d2): undefined reference to `pam_end'
collect2: ld returned 1 exit status
make[2]: *** [src/hphp/hphp] Error 1
make[1]: *** [src/hphp/CMakeFiles/hphp.dir/all] Error 2
make: *** [all] Error 2
(~) gordo@queso $ nm /usr/lib/libc-client.a | grep pam
                 U pam_acct_mgmt
                 U pam_authenticate
                 U pam_end
                 U pam_set_item
                 U pam_setcred
                 U pam_start
(~) gordo@queso $ objdump -T /lib/libpam.so |grep pam_
0000000000008600 g    DF .text    000000000000016b  LIBPAM_MODUTIL_1.0 pam_modutil_getlogin
0000000000006cc0 g    DF .text    0000000000000042  LIBPAM_1.0  pam_open_session
0000000000006d10 g    DF .text    0000000000000042  LIBPAM_1.0  pam_close_session
0000000000007d20 g    DF .text    0000000000000066  LIBPAM_MODUTIL_1.0 pam_modutil_read
0000000000003fe0 g    DF .text    0000000000000239  LIBPAM_EXTENSION_1.1.1 pam_get_authtok_verify
0000000000002340 g    DF .text    000000000000012e  LIBPAM_1.0  pam_set_data
0000000000005a40 g    DF .text    00000000000005f5  LIBPAM_1.0  pam_set_item
00000000000075a0 g    DF .text    0000000000000223  LIBPAM_EXTENSION_1.0 pam_vprompt
0000000000002470 g    DF .text    0000000000000058  LIBPAM_1.0  pam_get_data
0000000000007e00 g    DF .text    000000000000021e  LIBPAM_MODUTIL_1.0 pam_modutil_getgrgid
0000000000007a40 g    DF .text    000000000000008b  LIBPAM_EXTENSION_1.0 pam_syslog
0000000000006040 g    DF .text    000000000000017d  LIBPAM_1.0  pam_get_item
0000000000003fb0 g    DF .text    0000000000000008  LIBPAM_EXTENSION_1.1 pam_get_authtok
0000000000008420 g    DF .text    00000000000001da  LIBPAM_MODUTIL_1.0 pam_modutil_getspnam
0000000000008900 g    DF .text    0000000000000049  LIBPAM_MODUTIL_1.0 pam_modutil_user_in_group_nam_gid
0000000000002290 g    DF .text    000000000000004b  LIBPAM_1.0  pam_setcred
0000000000006d60 g    DF .text    0000000000000402  LIBPAM_1.0  pam_start
0000000000002690 g    DF .text    0000000000000053  LIBPAM_1.0  pam_fail_delay
0000000000007d90 g    DF .text    0000000000000066  LIBPAM_MODUTIL_1.0 pam_modutil_write
0000000000007170 g    DF .text    0000000000000428  LIBPAM_1.0  pam_strerror
0000000000007b10 g    DF .text    0000000000000003  LIBPAM_MODUTIL_1.1 pam_modutil_audit_write
00000000000077d0 g    DF .text    0000000000000088  LIBPAM_EXTENSION_1.0 pam_prompt
0000000000007b40 g    DF .text    00000000000001da  LIBPAM_MODUTIL_1.0 pam_modutil_getpwnam
00000000000021a0 g    DF .text    0000000000000042  LIBPAM_1.0  pam_acct_mgmt
0000000000008950 g    DF .text    0000000000000049  LIBPAM_MODUTIL_1.0 pam_modutil_user_in_group_uid_nam
0000000000003fc0 g    DF .text    0000000000000016  LIBPAM_EXTENSION_1.1.1 pam_get_authtok_noverify
00000000000061c0 g    DF .text    0000000000000318  LIBPAM_1.0  pam_get_user
0000000000003850 g    DF .text    00000000000001a9  LIBPAM_1.0  pam_getenvlist
0000000000006b90 g    DF .text    0000000000000125  LIBPAM_1.0  pam_chauthtok
0000000000002db0 g    DF .text    0000000000000395  LIBPAM_1.0  pam_end
00000000000021f0 g    DF .text    000000000000009a  LIBPAM_1.0  pam_authenticate
00000000000033d0 g    DF .text    000000000000038a  LIBPAM_1.0  pam_putenv
0000000000008240 g    DF .text    00000000000001da  LIBPAM_MODUTIL_1.0 pam_modutil_getgrnam
0000000000007860 g    DF .text    00000000000001de  LIBPAM_EXTENSION_1.0 pam_vsyslog
0000000000008020 g    DF .text    000000000000021e  LIBPAM_MODUTIL_1.0 pam_modutil_getpwuid
00000000000089a0 g    DF .text    0000000000000049  LIBPAM_MODUTIL_1.0 pam_modutil_user_in_group_uid_gid
0000000000003760 g    DF .text    00000000000000e3  LIBPAM_1.0  pam_getenv
00000000000088b0 g    DF .text    0000000000000049  LIBPAM_MODUTIL_1.0 pam_modutil_user_in_group_nam_nam

/usr/lib/libc-client.a is provided by the imap package. Something isn't linking properly?

Offline

#3 2011-06-20 08:25:33

fzerorubigd
Member
Registered: 2011-06-19
Posts: 19

Re: convert php to c++, with HipHop from ....Facebook

I get the same error and by changing -O3 to -O2 (in CMakeCache.txt) every thing is ok now.
If you use  git, make sure you delete the CMakeCache.txt  and then let cmake to create new one for you, after that edit the file and change the O3 to O2

Offline

Board footer

Powered by FluxBB