Need to build fully static linphone - compilation

I need to be able to copy a linphone 3.5.2 binary to other PCs without having to install it every time. I was trying to compile a portable linphone, however no configure args helped:
./configure --enable-static --disable-strict --disable-rpath --disable-shared \
--disable-x11 --enable-fast-install --enable-console_ui=yes --enable-gtk_ui=no \
--enable-relativeprefix --enable-ipv6 --enable-nonstandard-gsm --enable-rsvp \
--enable-ssl --enable-video --enable-alsa --enable-portaudio --with-gnu-ld
ldd console/linphonec
linux-vdso.so.1 (0x00007fffe7dff000)
libeXosip2.so.6 => /usr/lib64/libeXosip2.so.6 (0x00007fcf2a8b4000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fcf2a69d000)
libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0 (0x00007fcf2a2c7000)
libssl.so.1.0.0 => /usr/lib64/libssl.so.1.0.0 (0x00007fcf2a05d000)
libsoup-2.4.so.1 => /usr/lib64/libsoup-2.4.so.1 (0x00007fcf29df1000)
libgio-2.0.so.0 => /usr/lib64/libgio-2.0.so.0 (0x00007fcf29aa1000)
libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00007fcf29851000)
libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007fcf2952d000)
libreadline.so.6 => /lib64/libreadline.so.6 (0x00007fcf292e5000)
libncurses.so.5 => /lib64/libncurses.so.5 (0x00007fcf29090000)
libortp.so.8 => /home/wk/linphone-3.5.2/oRTP/src/.libs/libortp.so.8 (0x00007fcf28e6c000)
libportaudio.so.2 => /usr/lib64/libportaudio.so.2 (0x00007fcf28c4b000)
libasound.so.2 => /usr/lib64/libasound.so.2 (0x00007fcf2896a000)
libspeexdsp.so.1 => /usr/lib64/libspeexdsp.so.1 (0x00007fcf28757000)
libv4l1.so.0 => /usr/lib64/libv4l1.so.0 (0x00007fcf28551000)
libv4l2.so.0 => /usr/lib64/libv4l2.so.0 (0x00007fcf28345000)
libavcodec.so.53 => /usr/lib64/libavcodec.so.53 (0x00007fcf27643000)
libavutil.so.51 => /usr/lib64/libavutil.so.51 (0x00007fcf27422000)
libswscale.so.2 => /usr/lib64/libswscale.so.2 (0x00007fcf271e1000)
libtheora.so.0 => /usr/lib64/libtheora.so.0 (0x00007fcf26fad000)
libogg.so.0 => /usr/lib64/libogg.so.0 (0x00007fcf26da6000)
libvpx.so.1 => /usr/lib64/libvpx.so.1 (0x00007fcf26b06000)
librt.so.1 => /lib64/librt.so.1 (0x00007fcf268fd000)
libXv.so.1 => /usr/lib64/libXv.so.1 (0x00007fcf266f7000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fcf264f3000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fcf262d5000)
libm.so.6 => /lib64/libm.so.6 (0x00007fcf25fde000)
libspeex.so.1 => /usr/lib64/libspeex.so.1 (0x00007fcf25dc4000)
libosip2.so.7 => /usr/lib64/libosip2.so.7 (0x00007fcf25bad000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fcf25995000)
libosipparser2.so.7 => /usr/lib64/libosipparser2.so.7 (0x00007fcf25761000)
libc.so.6 => /lib64/libc.so.6 (0x00007fcf253b6000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007fcf25077000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007fcf24e65000)
libosipparser2.so.6 => not found
libosip2.so.6 => not found
libz.so.1 => /lib64/libz.so.1 (0x00007fcf24c4d000)
libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007fcf248f6000)
libgmodule-2.0.so.0 => /usr/lib64/libgmodule-2.0.so.0 (0x00007fcf246f2000)
libffi.so.6 => /usr/lib64/libffi.so.6 (0x00007fcf244ea000)
libv4lconvert.so.0 => /usr/lib64/libv4lconvert.so.0 (0x00007fcf24274000)
libxvidcore.so.4 => /usr/lib64/libxvidcore.so.4 (0x00007fcf23f5a000)
libx264.so.120 => /usr/lib64/libx264.so.120 (0x00007fcf23c0d000)
libvorbisenc.so.2 => /usr/lib64/libvorbisenc.so.2 (0x00007fcf2373e000)
libvorbis.so.0 => /usr/lib64/libvorbis.so.0 (0x00007fcf23511000)
libvo-aacenc.so.0 => /usr/lib64/libvo-aacenc.so.0 (0x00007fcf232f3000)
libmp3lame.so.0 => /usr/lib64/libmp3lame.so.0 (0x00007fcf2307b000)
/lib64/ld-linux-x86-64.so.2 (0x00007fcf2ab20000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007fcf22e5a000)
libjpeg.so.8 => /usr/lib64/libjpeg.so.8 (0x00007fcf22c09000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007fcf22a05000)
libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007fcf227ff000)
Is there any way to deal with this?

Related

Rstudio cannot launch properly with conda environment in Linux cluster

I am trying to launch a Rstudio session with a conda environment activated in a remote linux cluster. The commands are
$conda activate sc-tutorial
$rstudio
I get the following errors:
"TypeError: undefined is not an object (evaluating 'window.desktopHooks.notifyRCrashed')"
QApplication::qAppName: Please instantiate the QApplication object first
setNativeLocks failed: Resource temporarily unavailable
and a blank R screen like the following:
Without the conda environment activated, Rstudio can be properly launched.
The OS is CentOS 7 and The rstudio version is 1.1.423. Without the conda environment activated,
ldd /usr/bin/rstudio
gives:
linux-vdso.so.1 => (0x00007ffd18b0a000)
libQt5Core.so.5 => not found
libQt5Widgets.so.5 => not found
libQt5Gui.so.5 => not found
libQt5Network.so.5 => not found
libQt5WebChannel.so.5 => not found
libQt5WebKit.so.5 => not found
libQt5WebKitWidgets.so.5 => not found
libQt5PrintSupport.so.5 => not found
libQt5Quick.so.5 => not found
libQt5Positioning.so.5 => not found
libQt5Sensors.so.5 => not found
libQt5Svg.so.5 => not found
libQt5Xml.so.5 => not found
libQt5XmlPatterns.so.5 => not found
libQt5Qml.so.5 => not found
libQt5Sql.so.5 => not found
libQt5OpenGL.so.5 => not found
libQt5DBus.so.5 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fdbf6482000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007fdbf627f000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fdbf607a000)
librt.so.1 => /lib64/librt.so.1 (0x00007fdbf5e72000)
libz.so.1 => /lib64/libz.so.1 (0x00007fdbf5c5c000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fdbf5954000)
libm.so.6 => /lib64/libm.so.6 (0x00007fdbf5652000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fdbf543c000)
libc.so.6 => /lib64/libc.so.6 (0x00007fdbf506e000)
/lib64/ld-linux-x86-64.so.2 (0x00007fdbf669e000)
And with the conda environment activated, the ldd command gives:
linux-vdso.so.1 => (0x00007fff723f5000)
libQt5Core.so.5 => not found
libQt5Widgets.so.5 => not found
libQt5Gui.so.5 => not found
libQt5Network.so.5 => not found
libQt5WebChannel.so.5 => not found
libQt5WebKit.so.5 => not found
libQt5WebKitWidgets.so.5 => not found
libQt5PrintSupport.so.5 => not found
libQt5Quick.so.5 => not found
libQt5Positioning.so.5 => not found
libQt5Sensors.so.5 => not found
libQt5Svg.so.5 => not found
libQt5Xml.so.5 => not found
libQt5XmlPatterns.so.5 => not found
libQt5Qml.so.5 => not found
libQt5Sql.so.5 => not found
libQt5OpenGL.so.5 => not found
libQt5DBus.so.5 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f15b1440000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f15b123d000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f15b1038000)
librt.so.1 => /lib64/librt.so.1 (0x00007f15b0e30000)
libz.so.1 => /lib64/libz.so.1 (0x00007f15b0c1a000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f15b0912000)
libm.so.6 => /lib64/libm.so.6 (0x00007f15b0610000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f15b03fa000)
libc.so.6 => /lib64/libc.so.6 (0x00007f15b002c000)
/lib64/ld-linux-x86-64.so.2 (0x00007f15b165c000)
Do you have an idea how to solve this problem?
Thank you very much!

Laravel Error Update with foreach : syntax error, unexpected ' ' (T_STRING), expecting ']'

I have DB in SQL Server and I execute it with Laravel. However, I get the following error.
ParseError syntax error, unexpected ' ' (T_STRING), expecting ']'
I am trying to figure out why this is happening. It shows this syntax error, but I don't understand it. I can't find a typo. I read and update SQL Server database. Is there a bug or something?
$siswa_regNo = DB::table('upload_tbpendaftaran$')
->select('Reg_No', 'F_Name',
'N_Name',
'Place',
'Birthday',
'BirthID',
'Gender',
'Bloods',
'Glass',
'Height',
'Weight',
'Child_No',
'Child_Qty',
'School_Code',
'School_Name',
'School_Address',
'School_Distric',
'School_Distric_Desc',
'School_City',
'School_City_Desc',
'School_Province',
'School_Province_Desc',
'School_NEM_Avg',
'School_STTB',
'Certificate_ID',
'Stay',
'Stay_Address',
'Stay_RT',
'Stay_RW',
'Stay_Village',
'Stay_Distric',
'Stay_Distric_Desc',
'Stay_City',
'Stay_City_Desc',
'Stay_Province',
'Stay_Province_Desc',
'Stay_Phone',
'Stay_HP',
'Stay_Postal',
'Stay_Longitude',
'Stay_Latitude',
'Home_Address',
'Home_RT',
'Home_RW',
'Home_Village',
'Home_Distric',
'Home_Distric_Desc',
'Home_City',
'Home_City_Desc',
'Home_Province',
'Home_Province_Desc',
'Home_Postal',
'Home_Phone',
'Home_HP',
'Home_HP2',
'Home_Longitude',
'Home_Latitude',
'EMail',
'Email_Parent',
'Email_Parent2',
'ID_Cards',
'Distance',
'Time_HH',
'Time_MM',
'TransportID',
'TransportDesc',
'Remarks',
'NISN',
'ExamUNNo')
->orderBy('Reg_No')
->get();
foreach ($siswa_regNo as $s) {
DB::table('Registration')
->where('Reg_No', $s->Reg_No)
->update([
'F_Name' => $s->F_Name,
'N_Name' => $s->N_Name,
'Place' => $s->Place,
'Birthday' => $s->Birthday,
'BirthID' => $s->BirthID,
'Gender' => $s->Gender,
'Religion' => $s->Religion,
'Citizen' => $s->Citizen,
'FamilyID' => $s->FamilyID,
'Bloods' => $s->Bloods,
'Glass' => $s->Glass,
'Height' => $s->Height,
'Weight' => $s->Weight,
'Child_No' => $s->Child_No,
'Child_Qty' => $s->Child_Qty,
'School_Code' => $s->School_Code,
'School_Name' => $s->School_Name,
'School_Address' => $s->School_Address,
'School_Distric' => $s->School_Distric,
'School_Distric_Desc' => $s->School_Distric_Desc,
'School_City' => $s->School_City,
'School_City_Desc' => $s->School_City_Desc,
'School_Province' => $s->School_Province,
'School_Province_Desc' => $s->School_Province_Desc,
'School_NEM_Avg' => $s->School_NEM_Avg,
'School_STTB' => $s->School_STTB,
'Certificate_ID' => $s->Certificate_ID,
'Stay' => $s->Stay,
'Stay_Address' => $s->Stay_Address,
'Stay_RT' => $s->Stay_RT,
'Stay_RW' => $s->Stay_RW,
'Stay_Village' => $s->Stay_Village,
'Stay_Distric' => $s->Stay_Distric,
'Stay_Distric_Desc' => $s->Stay_Distric_Desc,
'Stay_City' => $s->Stay_City,
'Stay_City_Desc' => $s->Stay_City_Desc,
'Stay_Province' => $s->Stay_Province,
'Stay_Province_Desc' => $s->Stay_Province_Desc,
'Stay_Phone' => $s->Stay_Phone,
'Stay_HP' => $s->Stay_HP,
'Stay_Postal' => $s->Stay_Postal,
'Stay_Longitude' => $s->Stay_Longitude,
'Stay_Latitude' => $s->Stay_Latitude,
'Home_Address' => $s->Home_Address,
'Home_RT' => $s->Home_RT,
'Home_RW' => $s->Home_RW,
'Home_Village' => $s->Home_Village,
'Home_Distric' => $s->Home_Distric,
'Home_Distric_Desc' => $s->Home_Distric_Desc,
'Home_City' => $s->Home_City,
'Home_City_Desc' => $s->Home_City_Desc,
'Home_Province' => $s->Home_Province,
'Home_Province_Desc' => $s->Home_Province_Desc,
'Home_Postal' => $s->Home_Postal,
'Home_Phone' => $s->Home_Phone,
'Home_HP' => $s->Home_HP,
'Home_HP2' => $s->Home_HP2,
'Home_Longitude' => $s->Home_Longitude,
'Home_Latitude' => $s->Home_Latitude,
'EMail' => $s->EMail,
'Email_Parent' => $s->Email_Parent,
'Email_Parent2' => $s->Email_Parent2,
'ID_Cards' => $s->ID_Cards,
'Distance' => $s->Distance,
'Time_HH' => $s->Time_HH,
'Time_MM' => $s->Time_MM,
'TransportID' => $s->TransportID,
'TransportDesc' => $s->TransportDesc,
'Remarks' => $s->Remarks,
'NISN' => $s->NISN,
'ExamUNNo' => $s->ExamUNNo
]);
}
I am very confused, please help.
in second FOREACH, when you are getting data from DB you should add ->first() or ->get() in the last.
foreach ($siswa_regNo as $s) {
DB::table('Registration')
->where('Reg_No', $s->Reg_No)
->first() // this line added
->update([
'F_Name' => $s->F_Name,
'N_Name' => $s->N_Name,
'Place' => $s->Place,
.
.
.
]);
}
or if you want to use ->get() you should foreach to this also...

static link to ldd output libraries

Static link to ldd output dynamic libraries except for glibc.
I've been using ffmpeg to extract rtsp key frames and I want to make the c program work on xilinx zyqn board after static compiling. But after trying several times, I still could not make it work.
Here is the output of ldd:
linux-vdso.so.1 => (0x00007fff8b1cf000)
libavutil-ffmpeg.so.54 => /usr/lib/x86_64-linux-gnu/libavutil-ffmpeg.so.54 (0x00007f12f1da9000)
libavformat-ffmpeg.so.56 => /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56 (0x00007f12f19aa000)
libavcodec-ffmpeg.so.56 => /usr/lib/x86_64-linux-gnu/libavcodec-ffmpeg.so.56 (0x00007f12f0579000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f12f01af000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f12efea6000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f12efc89000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f12efa85000)
libssh-gcrypt.so.4 => /usr/lib/x86_64-linux-gnu/libssh-gcrypt.so.4 (0x00007f12ef83c000)
librtmp.so.1 => /usr/lib/x86_64-linux-gnu/librtmp.so.1 (0x00007f12ef620000)
libz.so.1 => /home/wyh/miniconda2/lib/libz.so.1 (0x00007f12ef409000)
libmodplug.so.1 => /usr/lib/x86_64-linux-gnu/libmodplug.so.1 (0x00007f12ef07e000)
libgme.so.0 => /usr/lib/x86_64-linux-gnu/libgme.so.0 (0x00007f12eee30000)
libbluray.so.1 => /usr/lib/x86_64-linux-gnu/libbluray.so.1 (0x00007f12eebe7000)
libgnutls.so.30 => /usr/lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f12ee8b7000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f12ee6a7000)
libswresample-ffmpeg.so.1 => /usr/lib/x86_64-linux-gnu/libswresample-ffmpeg.so.1 (0x00007f12ee48a000)
libva.so.1 => /usr/lib/x86_64-linux-gnu/libva.so.1 (0x00007f12ee26e000)
libzvbi.so.0 => /usr/lib/x86_64-linux-gnu/libzvbi.so.0 (0x00007f12edfe3000)
libxvidcore.so.4 => /usr/lib/x86_64-linux-gnu/libxvidcore.so.4 (0x00007f12edccf000)
libx265.so.79 => /usr/lib/x86_64-linux-gnu/libx265.so.79 (0x00007f12ed0b0000)
libx264.so.148 => /usr/lib/x86_64-linux-gnu/libx264.so.148 (0x00007f12ecd0c000)
libwebp.so.5 => /usr/lib/x86_64-linux-gnu/libwebp.so.5 (0x00007f12ecab0000)
libwavpack.so.1 => /usr/lib/x86_64-linux-gnu/libwavpack.so.1 (0x00007f12ec887000)
libvpx.so.3 => /usr/lib/x86_64-linux-gnu/libvpx.so.3 (0x00007f12ec463000)
libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f12ec1ba000)
libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f12ebf8f000)
libtwolame.so.0 => /usr/lib/x86_64-linux-gnu/libtwolame.so.0 (0x00007f12ebd6c000)
libtheoraenc.so.1 => /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1 (0x00007f12ebb2d000)
libtheoradec.so.1 => /usr/lib/x86_64-linux-gnu/libtheoradec.so.1 (0x00007f12eb913000)
libspeex.so.1 => /usr/lib/x86_64-linux-gnu/libspeex.so.1 (0x00007f12eb6fa000)
libsnappy.so.1 => /usr/lib/x86_64-linux-gnu/libsnappy.so.1 (0x00007f12eb4f2000)
libshine.so.3 => /usr/lib/x86_64-linux-gnu/libshine.so.3 (0x00007f12eb2e5000)
libschroedinger-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libschroedinger-1.0.so.0 (0x00007f12eb010000)
libopus.so.0 => /usr/lib/x86_64-linux-gnu/libopus.so.0 (0x00007f12eadc6000)
libopenjpeg.so.5 => /usr/lib/x86_64-linux-gnu/libopenjpeg.so.5 (0x00007f12eaba3000)
libmp3lame.so.0 => /usr/lib/x86_64-linux-gnu/libmp3lame.so.0 (0x00007f12ea92e000)
libgsm.so.1 => /usr/lib/x86_64-linux-gnu/libgsm.so.1 (0x00007f12ea720000)
libcrystalhd.so.3 => /usr/lib/x86_64-linux-gnu/libcrystalhd.so.3 (0x00007f12ea505000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f12ea2e3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f12f2018000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f12ea0db000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f12e9dfa000)
libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f12e9bb0000)
libhogweed.so.4 => /usr/lib/x86_64-linux-gnu/libhogweed.so.4 (0x00007f12e997d000)
libnettle.so.6 => /usr/lib/x86_64-linux-gnu/libnettle.so.6 (0x00007f12e9747000)
libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f12e94c7000)
libstdc++.so.6 => /home/wyh/miniconda2/lib/libstdc++.so.6 (0x00007f12e918d000)
libgcc_s.so.1 => /home/wyh/miniconda2/lib/libgcc_s.so.1 (0x00007f12e8f7b000)
libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f12e8bc0000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f12e897d000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f12e86d3000)
libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f12e846f000)
libidn.so.11 => /usr/lib/x86_64-linux-gnu/libidn.so.11 (0x00007f12e823c000)
libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f12e8029000)
libsoxr.so.0 => /usr/lib/x86_64-linux-gnu/libsoxr.so.0 (0x00007f12e7dc4000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f12e7b9f000)
libnuma.so.1 => /usr/lib/x86_64-linux-gnu/libnuma.so.1 (0x00007f12e7994000)
libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007f12e778b000)
liborc-0.4.so.0 => /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0 (0x00007f12e750b000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f12e72f7000)
libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f12e7025000)
libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f12e6df6000)
libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f12e6bf2000)
libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f12e69e7000)
libicuuc.so.55 => /usr/lib/x86_64-linux-gnu/libicuuc.so.55 (0x00007f12e6653000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f12e642a000)
libffi.so.6 => /home/wyh/miniconda2/lib/libffi.so.6 (0x00007f12e6221000)
libgomp.so.1 => /home/wyh/miniconda2/lib/libgomp.so.1 (0x00007f12e5ffe000)
libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f12e5dfa000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f12e5bdf000)
libicudata.so.55 => /usr/lib/x86_64-linux-gnu/libicudata.so.55 (0x00007f12e4128000)
How can I correctly link to the all the static libs above? Thanks a lot!
This is going to be a nightmare. You need static versions of all these libraries (*.a files instead of *.so files). Also, when the *.so files are present, the *.a files will be ignored by the linker.
You are better off just using shared linking and bundling the *.so files you need together with your application. Add an rpath to your build flags to make the executable load the bundled libraries. If you ship them in a lib directory alongside the application executable, you would need to add -Wl,-rpath -Wl,$ORIGIN/lib to your GCC flags.
Another possible solution is creating an AppImage:
https://appimage.org
This works extremely well for Intel-based Linux. I don't know how well it works for ARM.

Magento AvS_fastsimpleimporter multiple addresses

Is it possible while creating new users with AvS_Fastsimpleimporter to add more than the standard address ?
Currently my array "data" looks like this
'email' => $kunde['email'],
'_website' => $_website,
'_store' => $_website . 'store',
'confirmation' => '',
'created_at' => $created_at,
'created_in' => 'Import',
'disable_auto_group_change' => 0,
'firstname' => $kunde['name_1'],
'group_id' => 3,
'kontonummer' => $kunde['kontonr'],
'kundennummer' => $kunde['kundennr'],
'lastname' => $lastname,
'password_hash' => $password_hash,
'store_id' => 0,
'website_id' => $country['id'],
'_address_city' => $kunde['ort'],
'_address_country_id' => $kunde['land'],
'_address_fax' => $kunde['fax'],
'_address_firstname' => $kunde['name_1'],
'_address_lastname' => $lastname,
'_address_postcode' => $kunde['plz'],
'_address_street' => $kunde['strasse'],
'_address_telephone' => $_address_telephone,
'_address_vat_id' => $kunde['ust_id'],
'_address_default_billing_' => 1,
'_address_default_shipping_' => 1,
And i want to add a second address with the AvS_Simpleimporter.
I tried to add a second array in data like this:
array_push($data, array(
'email' => null,
'_website' => null,
'_address_city' => checkRequiredInput($address['ort']),
'_address_country_id' => $address['land'],
'_address_firstname' => checkRequiredInputVadr($address['name_1']),
'_address_lastname' => checkRequiredInputVadr($address['name_2']),
'_address_postcode' => checkRequiredInput($address['plz']),
'_address_street' => checkRequiredInput($address['strasse']),
'_address_default_billing_' => 0,
'_address_default_shipping_' => 0,
));
And then executing with
$importer = Mage::getModel('fastsimpleimport/import');
$importer->setIgnoreDuplicates('password_hash')->processCustomerImport($data);
But this currently doesn't work. The second address is added as an extra array to data like this
.... data array
....
'_address_default_billing_' => 1
'_address_default_shipping_' => 1
[0] => 'email' => bla bla
'_website' => bla bla
and so son
Any help ?
Multiple addresses are imported as additional rows. Hence you need to:
'_address_country_id' => array($country1,$country2),
'_address_city' => array($city1, $city2),
....

/couchbase_ext.so: undefined symbol: lcb_create_io_ops

I am trying to us couchbase ruby, but when I attempt connect I receive this error:
/couchbase_ext.so: undefined symbol: lcb_create_io_ops
I am using this code:
require 'rubygems'
require 'couchbase'
client = Couchbase.connect(:bucket => "domain",
:hostname => "localhost" )
client.get("dominio.test")
client.disconnect
I am using
amazon ec2 instance
ruby-1.9.3-p448 [ x86_64 ]
libcouchbase-devel-2.2.0-1.x86_64
and response for ldd $(gem which couchbase_ext.so) is
linux-vdso.so.1 => (0x00007fff541ff000)
libruby.so.2.0 => /home/yvillar/.rvm/rubies/ruby-2.0.0-p247/lib/libruby.so.2.0 (0x00007fedd2afd000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fedd28d7000)
librt.so.1 => /lib64/librt.so.1 (0x00007fedd26cf000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fedd24cb000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fedd2293000)
libm.so.6 => /lib64/libm.so.6 (0x00007fedd2010000)
libc.so.6 => /lib64/libc.so.6 (0x00007fedd1c84000)
/lib64/ld-linux-x86-64.so.2 (0x00007fedd319d000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fedd1a21000)

Resources