Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-11-2011, 03:01 PM   #1
Registered: Mar 2011
Location: UK
Distribution: Slackware-current
Posts: 95

Rep: Reputation: 7
compile error ushare


I am trying to install ushare on Slackware 13.37 64bit multilib from source, but when I do make, it gives the following error:

ushare.o  -lixml -lthreadutil -lpthread -lupnp -pthread -o ushare
ushare.o: In function `init_upnp':
ushare.c:(.text+0x68d): undefined reference to `UpnpSetVirtualDirCallbacks'
collect2: ld returned 1 exit status
make[1]: *** [ushare] Error 1
Configure output:

Checking for compiler available...
Checking for locales ...
Checking for ifaddrs ...
Checking for langinfo ...
Checking for iconv ...
Checking for libixml ...
Checking for libthreadutil ...
Checking for libupnp >= 1.4.2 ...

uShare: configure is OK
  version            1.1a
  using libupnp      1.6.13
  install prefix     /usr/local
  configuration dir  ${PREFIX}/etc
  locales dir        ${PREFIX}/share/locale
  NLS support        yes
  DLNA support       no
  C compiler         gcc
  STRIP              strip
  make               make
  CPU                x86_64 ()
  debug symbols      no
  strip symbols      yes
  optimize           yes

  extralibs           -lixml -lthreadutil -lpthread -lupnp -pthread
I have libupnp-1.6.6 installed, but the configure output says I am using 1.6.13.

When I do a find for libupnp I get the following results:

libupnp: /usr/src/libupnp-1.6.6/libupnp.pc /usr/src/libupnp-1.6.6/libupnp.spec /usr/lib64/ /usr/lib64/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/libupnp.a
i get the same error if I use

./configure --with-libupnp-dir=/usr/lib64/

Can anybody see any glaring mistakes I have made?

Old 09-11-2011, 03:05 PM   #2
Registered: Mar 2011
Location: UK
Distribution: Slackware-current
Posts: 95

Original Poster
Rep: Reputation: 7
Whoops, just figured it out

./configure --with-libupnp-dir=/usr/local/lib
Old 09-11-2011, 03:21 PM   #3
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,216

Rep: Reputation: 295Reputation: 295Reputation: 295
Looks to me like you may have two versions of libupnp installed - one in /usr/lib and one in /usr/local/lib
Old 06-14-2014, 06:10 PM   #4
LQ Newbie
Registered: Jun 2014
Posts: 1

Rep: Reputation: Disabled
on x64 of slackware edit /etc/

add these two paths

run ldconfig as root

apply this patch from

cd into the ushare src directory and move the patch file there

patch < ushare-compile-fixes.patch

export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}/usr/local/lib/pkgconfig
./configure --enable-dlna --with-libupnp-dir=/usr/local/lib

your build should compile fine

Last edited by foolio; 06-15-2014 at 10:09 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
installing ushare Thomas Davis Linux - Newbie 1 09-10-2011 10:54 PM
uShare and XBox360 manwichmakesameal General 2 01-15-2011 05:35 PM
The error compile C/C++ in linux (but it does compile on Win) hikaru1505 Programming 2 12-30-2010 09:11 AM
[SOLVED] F12 - uShare: ioctl: error during boot startup jnoake Linux - General 4 06-24-2010 07:24 AM
uShare Error on openSuse timrs Linux - Software 0 03-02-2007 07:14 PM

All times are GMT -5. The time now is 04:22 PM.

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