<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style='--code-editor-font: var(--default-mono-font, "Menlo"), DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;'>
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>

<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>

<style>img {
max-width: 100%; height: auto;
}
body {
font-size: 0.875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px;
}
body {
font-family: var(--default-regular-font, -apple-system),BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px; font-family: var(--default-regular-font, -apple-system),BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";'>
<div class="content">

<p class="details" style="font-style: italic; color: #737278;">
<a href="https://gitlab.com/andykimpe">Andy Kimpe</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1486">#1486</a>
</p>
<div class="md" style="color: #333238; word-wrap: break-word;">
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #e6e6ea; border-bottom-style: solid; color: #333238; margin: 0 0 16px;" align="initial">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Description of problem:</h2>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">error build on no root (admin) acces</p>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">so it's impossible for me to install dependencies with dnf and so I have to compile gnutls and all it's dependencies in my $HOME</p>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #e6e6ea; border-bottom-style: solid; color: #333238; margin: 24px 0 16px;" align="initial">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Version of gnutls used:</h2>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">libunistring 1.1</p>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">nettle 3.9</p>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">gnutls 3.8.0</p>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #e6e6ea; border-bottom-style: solid; color: #333238; margin: 24px 0 16px;" align="initial">
<a id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" class="anchor" href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-hidden="true" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)</h2>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">Fedora 38 no admin acces build gnutls and all dependency to $HOME directory</p>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #e6e6ea; border-bottom-style: solid; color: #333238; margin: 24px 0 16px;" align="initial">
<a id="user-content-how-reproducible" class="anchor" href="#how-reproducible" aria-hidden="true" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>How reproducible:</h2>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">Steps to Reproduce:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style='display: block; font-size: 14px; color: #333238; line-height: 1.6em; overflow-x: auto; border-radius: 4px; position: relative; font-family: var(--default-mono-font, "Menlo"),"DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 16px; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: 0.875rem; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: var(--default-mono-font, "Menlo"),"DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;"></span>
<span id="LC2" class="line" lang="plaintext">#!/bin/bash</span>
<span id="LC3" class="line" lang="plaintext">cd $HOME</span>
<span id="LC4" class="line" lang="plaintext">rm -rf $HOME/ffmpeg_sources $HOME/ffmpeg_build $HOME/bin</span>
<span id="LC5" class="line" lang="plaintext">mkdir -p $HOME/ffmpeg_sources</span>
<span id="LC6" class="line" lang="plaintext">export PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"</span>
<span id="LC7" class="line" lang="plaintext">export LD_LIBRARY_PATH="$HOME/ffmpeg_build/lib"</span>
<span id="LC8" class="line" lang="plaintext">export LD_RUN_PATH="$HOME/ffmpeg_build/lib"</span>
<span id="LC9" class="line" lang="plaintext">export LDFLAGS="-Wl,-rpath=$HOME/ffmpeg_build/lib"</span>
<span id="LC10" class="line" lang="plaintext">export PATH="$PATH:$HOME/bin"</span>
<span id="LC11" class="line" lang="plaintext">export HOGWEED_LIBS="$HOME/ffmpeg_build/lib"</span>
<span id="LC12" class="line" lang="plaintext">export NETTLE_LIBS="$HOME/ffmpeg_build/lib"</span>
<span id="LC13" class="line" lang="plaintext">export NETTLE_CFLAGS="-I$HOME/ffmpeg_build/include/"</span>
<span id="LC14" class="line" lang="plaintext">export GMP_LIBS="$HOME/ffmpeg_build/lib"</span>
<span id="LC15" class="line" lang="plaintext">sourcedown() {</span>
<span id="LC16" class="line" lang="plaintext">      cd $HOME/ffmpeg_sources/</span>
<span id="LC17" class="line" lang="plaintext">      rm -rf *</span>
<span id="LC18" class="line" lang="plaintext">      wget $1</span>
<span id="LC19" class="line" lang="plaintext">      tar -xvf $(find $HOME/ffmpeg_sources/ -type f)</span>
<span id="LC20" class="line" lang="plaintext">      rm -f *.tar*</span>
<span id="LC21" class="line" lang="plaintext">      cd $(ls)</span>
<span id="LC22" class="line" lang="plaintext">}</span>
<span id="LC23" class="line" lang="plaintext">sourcebuild() {</span>
<span id="LC24" class="line" lang="plaintext">      make -j$(nproc)</span>
<span id="LC25" class="line" lang="plaintext">      make install</span>
<span id="LC26" class="line" lang="plaintext">}</span>
<span id="LC27" class="line" lang="plaintext">sourcedown https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/nasm-2.16.01.tar.gz</span>
<span id="LC28" class="line" lang="plaintext">./autogen.sh</span>
<span id="LC29" class="line" lang="plaintext">./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"</span>
<span id="LC30" class="line" lang="plaintext">sourcebuild</span>
<span id="LC31" class="line" lang="plaintext">sourcedown https://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz</span>
<span id="LC32" class="line" lang="plaintext">./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"</span>
<span id="LC33" class="line" lang="plaintext">sourcebuild</span>
<span id="LC34" class="line" lang="plaintext">sourcedown http://artfiles.org/openssl.org/source/openssl-3.1.1.tar.gz</span>
<span id="LC35" class="line" lang="plaintext">./config --prefix=$HOME/ffmpeg_build --openssldir=$HOME/ffmpeg_build</span>
<span id="LC36" class="line" lang="plaintext">make -j$(nproc)</span>
<span id="LC37" class="line" lang="plaintext"># install no doc</span>
<span id="LC38" class="line" lang="plaintext">make install_sw </span>
<span id="LC39" class="line" lang="plaintext">make install_ssldirs</span>
<span id="LC40" class="line" lang="plaintext">mv $HOME/ffmpeg_build/bin/c_rehash $HOME/bin/</span>
<span id="LC41" class="line" lang="plaintext">mv $HOME/ffmpeg_build/bin/openssl $HOME/bin/</span>
<span id="LC42" class="line" lang="plaintext">rm -rf $HOME/ffmpeg_build/target/bin/</span>
<span id="LC43" class="line" lang="plaintext">cd $HOME/ffmpeg_sources/</span>
<span id="LC44" class="line" lang="plaintext">rm -rf *</span>
<span id="LC45" class="line" lang="plaintext">git clone --branch stable --depth 1 https://code.videolan.org/videolan/x264.git</span>
<span id="LC46" class="line" lang="plaintext">cd x264</span>
<span id="LC47" class="line" lang="plaintext">./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin/" --enable-static</span>
<span id="LC48" class="line" lang="plaintext">sourcebuild</span>
<span id="LC49" class="line" lang="plaintext">cd /root/ffmpeg_sources/</span>
<span id="LC50" class="line" lang="plaintext">rm -rf *</span>
<span id="LC51" class="line" lang="plaintext">git clone --branch stable --depth 2 https://bitbucket.org/multicoreware/x265_git</span>
<span id="LC52" class="line" lang="plaintext">cd /root/ffmpeg_sources/x265_git/build/linux</span>
<span id="LC53" class="line" lang="plaintext">$CMAKE -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DBIN_INSTALL_DIR:PATH=$HOME/bin/ -DENABLE_SHARED:bool=off ../../source</span>
<span id="LC54" class="line" lang="plaintext">sourcebuild</span>
<span id="LC55" class="line" lang="plaintext">sourcedown https://github.com/mstorsjo/fdk-aac/archive/refs/tags/v2.0.2.tar.gz</span>
<span id="LC56" class="line" lang="plaintext">autoreconf -fiv</span>
<span id="LC57" class="line" lang="plaintext">./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin/" --disable-shared</span>
<span id="LC58" class="line" lang="plaintext">sourcebuild</span>
<span id="LC59" class="line" lang="plaintext">sourcedown https://downloads.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz</span>
<span id="LC60" class="line" lang="plaintext">./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin/" --disable-shared --enable-nasm</span>
<span id="LC61" class="line" lang="plaintext">sourcebuild</span>
<span id="LC62" class="line" lang="plaintext">sourcedown https://archive.mozilla.org/pub/opus/opus-1.3.1.tar.gz</span>
<span id="LC63" class="line" lang="plaintext">./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin/" --disable-shared</span>
<span id="LC64" class="line" lang="plaintext">sourcebuild</span>
<span id="LC65" class="line" lang="plaintext">cd /root/ffmpeg_sources/</span>
<span id="LC66" class="line" lang="plaintext">rm -rf *</span>
<span id="LC67" class="line" lang="plaintext">wget -O /root/ffmpeg_sources/libvpx-1.13.0.tar.gz https://chromium.googlesource.com/webm/libvpx/+archive/d6eb9696aa72473c1a11d34d928d35a3acc0c9a9.tar.gz</span>
<span id="LC68" class="line" lang="plaintext">mkdir -p libvpx-1.13.0</span>
<span id="LC69" class="line" lang="plaintext">cd /root/ffmpeg_sources/libvpx-1.13.0</span>
<span id="LC70" class="line" lang="plaintext">tar -xvf /root/ffmpeg_sources/libvpx-1.13.0.tar.gz</span>
<span id="LC71" class="line" lang="plaintext">./configure --prefix="$HOME/ffmpeg_build" --disable-examples --disable-unit-tests --enable-vp9-highbitdepth --as=yasm</span>
<span id="LC72" class="line" lang="plaintext">sourcebuild</span>
<span id="LC73" class="line" lang="plaintext">sourcedown https://ftp.gnu.org/gnu/nettle/nettle-3.9.tar.gz</span>
<span id="LC74" class="line" lang="plaintext">./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin/" --libdir="$HOME/ffmpeg_build/lib" --enable-shared --enable-fat --enable-mini-gmp</span>
<span id="LC75" class="line" lang="plaintext">sourcebuild</span>
<span id="LC76" class="line" lang="plaintext">sourcedown https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz</span>
<span id="LC77" class="line" lang="plaintext">./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin/" --enable-static --enable-cxx</span>
<span id="LC78" class="line" lang="plaintext">sourcebuild</span>
<span id="LC79" class="line" lang="plaintext">sourcedown https://ftp.gnu.org/gnu/libtasn1/libtasn1-4.19.0.tar.gz</span>
<span id="LC80" class="line" lang="plaintext">./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin/" --enable-static</span>
<span id="LC81" class="line" lang="plaintext">sourcebuild</span>
<span id="LC82" class="line" lang="plaintext">sourcedown https://ftp.gnu.org/gnu/libunistring/libunistring-1.1.tar.gz</span>
<span id="LC83" class="line" lang="plaintext">./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin/" --enable-static</span>
<span id="LC84" class="line" lang="plaintext">sourcebuild</span>
<span id="LC85" class="line" lang="plaintext">sourcedown https://ftp.gnu.org/gnu/libidn/libidn2-2.3.4.tar.gz</span>
<span id="LC86" class="line" lang="plaintext">./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin/" --enable-static</span>
<span id="LC87" class="line" lang="plaintext">sourcebuild</span>
<span id="LC88" class="line" lang="plaintext">sourcedown https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-3.8.0.tar.xz</span>
<span id="LC89" class="line" lang="plaintext">./configure --prefix=$HOME/ffmpeg_build --bindir=$HOME/bin/ --libdir=$HOME/ffmpeg_build/lib \</span>
<span id="LC90" class="line" lang="plaintext">--enable-gost --enable-sha1-support --disable-static --disable-openssl-compatibility \</span>
<span id="LC91" class="line" lang="plaintext">--disable-non-suiteb-curves --without-tpm --with-tpm2 --enable-ktls \</span>
<span id="LC92" class="line" lang="plaintext">--enable-libdane --without-zlib --without-brotli --without-zstd --disable-rpath</span>
<span id="LC93" class="line" lang="plaintext"></span>
<span id="LC94" class="line" lang="plaintext"></span></code></pre>
<copy-code></copy-code>
</div>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #e6e6ea; border-bottom-style: solid; color: #333238; margin: 24px 0 16px;" align="initial">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Actual results:</h2>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style='display: block; font-size: 14px; color: #333238; line-height: 1.6em; overflow-x: auto; border-radius: 4px; position: relative; font-family: var(--default-mono-font, "Menlo"),"DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 16px; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: 0.875rem; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: var(--default-mono-font, "Menlo"),"DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;"></span>
<span id="LC2" class="line" lang="plaintext">configure: error: </span>
<span id="LC3" class="line" lang="plaintext">  ***</span>
<span id="LC4" class="line" lang="plaintext">  *** Libunistring was not found. To use the included one, use --with-included-unistring</span>
<span id="LC5" class="line" lang="plaintext"></span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">try with -with-included-unistring parameter</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style='display: block; font-size: 14px; color: #333238; line-height: 1.6em; overflow-x: auto; border-radius: 4px; position: relative; font-family: var(--default-mono-font, "Menlo"),"DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 16px; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: 0.875rem; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: var(--default-mono-font, "Menlo"),"DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;"></span>
<span id="LC2" class="line" lang="plaintext">./configure --prefix=$HOME/ffmpeg_build --bindir=$HOME/bin/ --libdir=$HOME/ffmpeg_build/lib \</span>
<span id="LC3" class="line" lang="plaintext">--enable-gost --enable-sha1-support --disable-static --disable-openssl-compatibility \</span>
<span id="LC4" class="line" lang="plaintext">--disable-non-suiteb-curves --without-tpm --with-tpm2 --enable-ktls \</span>
<span id="LC5" class="line" lang="plaintext">--enable-libdane --without-zlib --without-brotli --without-zstd --disable-rpath -with-included-unistring</span>
<span id="LC6" class="line" lang="plaintext"></span>
<span id="LC7" class="line" lang="plaintext"></span></code></pre>
<copy-code></copy-code>
</div>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: 0.3em; border-bottom-width: 1px; border-bottom-color: #e6e6ea; border-bottom-style: solid; color: #333238; margin: 24px 0 16px;" align="initial">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Expected results:</h2>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style='display: block; font-size: 14px; color: #333238; line-height: 1.6em; overflow-x: auto; border-radius: 4px; position: relative; font-family: var(--default-mono-font, "Menlo"),"DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 16px; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: 0.875rem; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: var(--default-mono-font, "Menlo"),"DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;"></span>
<span id="LC2" class="line" lang="plaintext">checking for nettle_rsa_sec_decrypt... no</span>
<span id="LC3" class="line" lang="plaintext">configure: error: Nettle lacks the required rsa_sec_decrypt function</span>
<span id="LC4" class="line" lang="plaintext"></span>
<span id="LC5" class="line" lang="plaintext"></span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #333238; margin: 0;" align="initial">thank you in advance for your help also it would be good to indicate the solution in the readme of the project because you only indicate how to install the dependencies when you have admin rights but not when you don't have them</p>
</div>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #737278;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1486">view it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.com">gitlab.com</a>. <a href="https://gitlab.com/-/sent_notifications/7066ae1296cd1becca514c0cfc015f41/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.com/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.com/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1486"}}</script>


</p>
</div>
</body>
</html>