LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-26-2022, 08:53 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,298

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Openshot Appimage - md5 issue.


I'm on Slackware64-15.0, and trying for Openshot's Appimage. I passed on the compiling option, because I tried that once. Once was enough.
  1. The Appimage puked for the lack of libbsd. So I got the source.
  2. Libbsd puked because my libc didn't have enough md5 stuff, and I didn't have libmd. So I grabbed libmd.
  3. libmd compiled, built and went in.
  4. Libbsd complained for the lack of /usr/include/bsd/md5.h. But the C file that was bellyaching was actually searching for /usr/include/md5.h.
  5. There's a dozen md5.h files in subdirs of /usr/include/. Coreutils, which provides md5sum, does not provide md5.h, and it's not even in the coreutils source code.

I settled on /usr/include/openssl/md5.h, and that threw warnings but went until this:
Code:
local-link.h:47:27: note: in definition of macro ‘libbsd_symver_weak’
   47 |         extern __typeof__(symbol) symbol \
      |                           ^~~~~~
md5.c: In function ‘libbsd_MD5Data’:
md5.c:115:16: warning: implicit declaration of function ‘MD5Data’ [-Wimplicit-function-declaration]
  115 |         return MD5Data(data, len, buf);
      |                ^~~~~~~
md5.c:115:16: warning: nested extern declaration of ‘MD5Data’ [-Wnested-externs]
md5.c:115:16: warning: returning ‘int’ from a function with return type ‘char *’ makes pointer from integer without a cast [-Wint-conversion]
  115 |         return MD5Data(data, len, buf);
      |                ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:655: md5.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/dec/download/libbsd/src'
make[1]: *** [Makefile:409: all-recursive] Error 1
make[1]: Leaving directory '/home/dec/download/libbsd'
make: *** [Makefile:341: all] Error 2
It's nearly an achievement to manage 3 errors in the one tailspin Anyone got a bright idea here?

BTW, this sort of meandering maze through a compile where the difficulty increases all the time is typical of Openshot.
 
Old 05-26-2022, 09:28 AM   #2
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 323

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
libmd should have installed this file: https://git.hadrons.org/cgit/libmd.g.../include/md5.h at /usr/include/md5.h
Maybe you didn't
Code:
./configure --prefix=/usr
when compiling libmd, and it got installed into /usr/local/include/md5.h instead
Anyway, it's quite weird for an appimage to have external dependencies to these unusual libraries.
 
1 members found this post helpful.
Old 05-26-2022, 01:08 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,298

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by ctrlaltca View Post
libmd should have installed this file: https://git.hadrons.org/cgit/libmd.g.../include/md5.h at /usr/include/md5.h
Maybe you didn't
Code:
./configure --prefix=/usr
when compiling libmd, and it got installed into /usr/local/include/md5.h instead
Anyway, it's quite weird for an appimage to have external dependencies to these unusual libraries.
Thanks for the reply. It's WRONG for an AppImage to have external deps. There has to be some interface over I/O but it shouldn't be pulling working libs

I gather libmd & libbsd are BSD libs and my first experience with bsd code has not been good. I actually installed libmd in a DESTDIR, and ran lndir to 'install' it, as I was putting libmd & libbsd in the same package. But no includes were installed at all.

I ended up playing 'whack-a-mole' with the includes from libmd, and reinstalling libmd to my DESTDIR every time libbsd puked compiling. It eventually finished after 3 or 4 includes, and installing neatly overwrote my lndir symlinks.

I used to deride linux for it's long version numbers on everything, and nesting 57 sub directories to store one file, but having sampled the bsd system (hardly any subdirs, no version numbers) it reeks of 1980s type myopia whereas linux was much more far-sighted in it's approach.

This is solved. Openshot probably still won't work, but I'll worry about that tomorrow.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: OpenShot Video Editor Basic Openshot Video Editing Skills LXer Syndicated Linux News 0 04-12-2017 10:38 PM
md5 or dgst -md5 openssl bayanaa Linux - Newbie 1 05-26-2012 04:59 AM
need help unpacking hmac-md5 hash into md5 hash lynx5 Programming 3 02-02-2008 04:06 PM
difference between md5 shadow and md5 elsewhere? whysyn Linux - Security 5 12-11-2007 10:11 AM
using iso.md5 and iso.md5.asc Tyir Linux - Newbie 3 07-10-2004 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration