LinuxQuestions.org
Help answer threads with 0 replies.
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 01-17-2021, 07:49 AM   #1
zdolar
Member
 
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 177

Rep: Reputation: 38
slackware64-current redymedia minidlna-1.3 compile error


Hi!

I need a light DLNA server, so I tried to compile Reaymedia minidlna-1.3.0
I used adapted alienbobs minidlna.SlacBbuld for compiling minidlna-1.2.1 on slackware64-current with gcc-9.x It compiled/installed and work OK

Recent gcc on slackware64-current is 10.x. and compilation failed.
Version 1.3.0 changelog: "Fixed build with GCC 10"

The error compiling:

Code:
/usr/bin/ld: upnphttp.o:(.bss+0x0): multiple definition of `sqlite3Prng'; minidlna.o:(.bss+0x0): first defined here
/usr/bin/ld: metadata.o:(.bss+0x0): multiple definition of `sqlite3Prng'; minidlna.o:(.bss+0x0): first defined here
/usr/bin/ld: tivo_utils.o:(.bss+0x0): multiple definition of `sqlite3Prng'; minidlna.o:(.bss+0x0): first defined here
/usr/bin/ld: tivo_commands.o:(.bss+0x0): multiple definition of `sqlite3Prng'; minidlna.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:578: minidlnad] Error 1
make[2]: Leaving directory '/tmp/build/minidlna-1.3.0'
make[1]: *** [Makefile:654: all-recursive] Error 1
make[1]: Leaving directory '/tmp/build/minidlna-1.3.0'
make: *** [Makefile:470: all] Error 2
The exact same error appear at 1.2.1 compilation
 
Old 01-18-2021, 06:22 AM   #2
marrowsuck
Member
 
Registered: Sep 2006
Posts: 202

Rep: Reputation: 89
Same here. Seems like minidlna fails to build with gcc-10.
https://gitweb.gentoo.org/repo/gento...0bf05b97926ed3

I was able to build the program with the patch below.

Code:
--- minidlna.orig/tivo_utils.c	2020-11-24 19:53:50.000000000 +0100
+++ minidlna.patch/tivo_utils.c	2021-01-18 12:34:37.755558795 +0100
@@ -27,6 +27,7 @@
 #include <sqlite3.h>
 #include "tivo_utils.h"
 
+struct sqlite3PrngType sqlite3Prng;
 /* This function based on byRequest */
 char *
 decodeString(char *string, int inplace)
--- minidlna.orig/tivo_utils.h	2020-11-24 19:53:50.000000000 +0100
+++ minidlna.patch/tivo_utils.h	2021-01-18 12:35:30.175913217 +0100
@@ -30,7 +30,8 @@
   unsigned char isInit;          /* True if initialized */
   unsigned char i, j;            /* State variables */
   unsigned char s[256];          /* State variables */
-} sqlite3Prng;
+};
+extern struct sqlite3PrngType sqlite3Prng;
 
 char *
 decodeString(char *string, int inplace);
 
Old 01-19-2021, 07:44 AM   #3
zdolar
Member
 
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 177

Original Poster
Rep: Reputation: 38
Smile solved

Thanks a lot marrowsuck for this patch.

The package compiles now.
 
  


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
Brightness function keys not working on Slackware64 & Slackware64 current Andersen Slackware 7 01-15-2018 04:27 AM
Raspberry PI - Minidlna install error (configure: error: Could not find libavformat - part of ffmpeg) Baluditor Debian 1 06-02-2016 08:58 AM
MiniDLNA plus VLC to XBox 360 or DirecTV On-The-Fly akhill44 Linux - Software 1 04-22-2011 07:04 PM
upgrading slackware64 13.1 multilib to slackware64 -current multilib Cultist Slackware 4 03-12-2011 09:04 AM
Updating from Slackware64-current to Slackware64 13. glore2002 Slackware 4 08-28-2009 06:50 PM

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

All times are GMT -5. The time now is 07:51 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