Skip to content

Instantly share code, notes, and snippets.

View abhijeetbhagat's full-sized avatar
🎯
Focusing

abhi abhijeetbhagat

🎯
Focusing
View GitHub Profile
@abhijeetbhagat
abhijeetbhagat / glibc-in-alpine-docker
Created July 7, 2023 07:33 — forked from larzza/glibc-in-alpine-docker
Install glibc in Alpine docker image
RUN apk --no-cache add \
wget \
ca-certificates \
libstdc++
# Get and install glibc for alpine
ARG APK_GLIBC_VERSION=2.29-r0
ARG APK_GLIBC_FILE="glibc-${APK_GLIBC_VERSION}.apk"
ARG APK_GLIBC_BIN_FILE="glibc-bin-${APK_GLIBC_VERSION}.apk"
ARG APK_GLIBC_BASE_URL="https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${APK_GLIBC_VERSION}"
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
*** Assembly Binder Log Entry (4/7/2016 @ 9:03:15 PM) ***
The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Users\abhibhag\code\c#\datatemplatesample\datatemplatesample\obj\Debug\datatemplatesample.exe
--- A detailed error log follows.
WRN: No matching native image found.
using System;
using System.Threading;
class ThreadTest{
static int Main(){
var t = new Thread(()=>Console.WriteLine("abhi"));
t.Start();
t = new Thread(go);
t.Start();
$ cargo build
Compiling llvm-sys v0.2.0
failed to run custom build command for `llvm-sys v0.2.0`
Process didn't exit successfully: `F:\code\rust\llvm-sys-test\target\debug\build\llvm-sys-a6e384430ca306ca\build-script-build` (exit code: 101)
--- stdout
Found LLVM version 3.7.0
cargo:rustc-link-search=native=C:/llvm_builddir/Debug/lib
cargo:rustc-link-lib=static=LLVMInterpreter
cargo:rustc-link-lib=static=LLVMLibDriver
cargo:rustc-link-lib=static=LLVMOption
[package]
name = "syntax"
version = "0.1.0"
authors = ["abhijeet bhagat <abhijeet.bhagat@gmx.com>"]
[lib]
name = "syntax"
path = "lib.rs"
test = true
fn fetchall(&mut self)->Vec<Vec<Option<c_str::CString>>>{
let mut v = Vec::new();
loop{
match self.step(){ //we are not borrowing, hence no &...ref...
Some(row) => v.push(row.clone()), //without cloning, all rows will be same
_ => break
}
}
return v;
}