LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 09-11-2011, 04:01 PM   #1
hyperhead
Member
 
Registered: Mar 2011
Location: UK
Distribution: Slackware-current
Posts: 95

Rep: Reputation: 7
compile error ushare


Hi

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


Code:
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:

Code:
./configure
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
configuration:
  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

  CFLAGS              -I.. -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -O3 -DHAVE_LOCALE_H -DHAVE_SETLOCALE -DHAVE_IFADDRS_H -DHAVE_LANGINFO_H -DHAVE_LANGINFO_CODESET -DHAVE_ICONV -pthread -I/usr/include/upnp
  LDFLAGS            
  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:

Code:
libupnp: /usr/src/libupnp-1.6.6/libupnp.pc /usr/src/libupnp-1.6.6/libupnp.spec /usr/lib64/libupnp.so /usr/lib64/libupnp.la /usr/local/lib/libupnp.so /usr/local/lib/libupnp.la /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?

Thanks
 
Old 09-11-2011, 04:05 PM   #2
hyperhead
Member
 
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, 04:21 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
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, 07:10 PM   #4
foolio
LQ Newbie
 
Registered: Jun 2014
Posts: 1

Rep: Reputation: Disabled
on x64 of slackware edit /etc/ld.so.conf

add these two paths
/usr/lib
/usr/local/lib/

run ldconfig as root

apply this patch from http://git.buildroot.org/buildroot/p...le-fixes.patch

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 11:09 AM.
 
  


Reply


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


All times are GMT -5. The time now is 10:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration