LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-11-2012, 07:21 AM   #1
linuxlicious
Member
 
Registered: May 2011
Posts: 87

Rep: Reputation: 6
Need help with a source package (wmmp3)


I tried to install the wmmp3 dockapp to add it to my dock/clip. It configured fine, but when I do make, I get this:

Quote:
patrick@bloodyhell ~/Downloads/DockappsDockapps/Audio/wmmp3-0.12 $ make
gcc -DPACKAGE=\"wmmp3\" -DVERSION=\"0.12\" -DHAVE_LIBX11=1 -DHAVE_LIBXEXT=1 -DHAVE_LIBXPM=1 -I. -I. -g -O2 -I -c main.c
main.c: In function ‘loadconfig’:
main.c:145: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
main.c:175: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
/tmp/ccfNAjOd.o: In function `handle_button_release':
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:106: undefined reference to `is_playing'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:112: undefined reference to `button_up'
/tmp/ccfNAjOd.o: In function `handle_button_press':
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:54: undefined reference to `CheckMouseRegion'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:95: undefined reference to `RedrawWindow'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:87: undefined reference to `repeat_toggle'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:95: undefined reference to `RedrawWindow'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:90: undefined reference to `turn_on_scroll'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:95: undefined reference to `RedrawWindow'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:57: undefined reference to `button_down'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:58: undefined reference to `button_up'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:59: undefined reference to `button_up'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:60: undefined reference to `button_up'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:61: undefined reference to `stop'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:95: undefined reference to `RedrawWindow'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:64: undefined reference to `button_down'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:65: undefined reference to `button_gray'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:66: undefined reference to `button_gray'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:67: undefined reference to `user_play'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:95: undefined reference to `RedrawWindow'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:70: undefined reference to `button_down'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:71: undefined reference to `back'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:95: undefined reference to `RedrawWindow'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:74: undefined reference to `button_down'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:75: undefined reference to `next'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:95: undefined reference to `RedrawWindow'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:78: undefined reference to `dir_up'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:95: undefined reference to `RedrawWindow'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:81: undefined reference to `random_toggle'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:95: undefined reference to `RedrawWindow'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:84: undefined reference to `dir_down'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:95: undefined reference to `RedrawWindow'
/tmp/ccfNAjOd.o: In function `loadconfig':
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:128: undefined reference to `set_mpg123'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:129: undefined reference to `set_mp3ext'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:130: undefined reference to `set_playlistext'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:168: undefined reference to `set_alwaysscroll'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:153: undefined reference to `set_mpg123'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:156: undefined reference to `add_mp3dir'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:159: undefined reference to `add_mp3dirname'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:162: undefined reference to `set_mp3ext'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:165: undefined reference to `set_playlistext'
/tmp/ccfNAjOd.o: In function `main':
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:261: undefined reference to `createXBMfromXPM'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:262: undefined reference to `openXwindow'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:264: undefined reference to `font_init'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:265: undefined reference to `draw_string'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:270: undefined reference to `AddMouseRegion'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:276: undefined reference to `XPending'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:277: undefined reference to `XNextEvent'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:285: undefined reference to `XCloseDisplay'
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:280: undefined reference to `RedrawWindow'
/tmp/ccfNAjOd.o: In function `handle_button_release':
/home/patrick/Downloads/DockappsDockapps/Audio/wmmp3-0.12/main.c:113: undefined reference to `RedrawWindow'
collect2: ld returned 1 exit status
make: *** [main.o] Error 1
I checked the .configure output again and I see that it needs a program called dnet_ntoa? If this is what causes the problem then where can I get dnet it from? I can't find dnet nor dnet_ntoa in the repo (ubuntu).

Here's the .configure output:
Quote:
patrick@bloodyhell ~/Downloads/DockappsDockapps/Audio/wmmp3-0.12 $ ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking for X... (cached) libraries , headers
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for XOpenDisplay in -lX11... (cached) yes
checking for XShapeCombineMask in -lXext... (cached) yes
checking for XpmCreatePixmapFromData in -lXpm... (cached) yes
creating ./config.status
creating Makefile
Any ideas?

PS: is there any way to make *every* source package installation work without having to troubleshoot all the time? I always seem to have an issue with something when installing source packages.

Last edited by linuxlicious; 02-11-2012 at 07:27 AM.
 
Old 02-11-2012, 04:55 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Dnet : sudo apt-get install libdnet-dev
http://packages.ubuntu.com/oneiric/i...t-dev/filelist

But sorry, I don't think wmmp3 is an easy one to build.
The code has a time stamp, that says 1999 ..

You can get binary packages, examples :
32bits ftp://ftp.pbone.net/mirror/ftp.pld-l....12-1.i586.rpm
> wmmp3-0.12-1.i586.rpm, to be unpacked with :
rpm2cpio wmmp3-0.12-1.i586.rpm | cpio -idmv

64bits ftp://ftp.sunet.se/pub/Linux/distrib...8.1.x86_64.rpm
> WindowMaker-applets-1.0.1-8.1.x86_64.rpm

Quote:
Is there any way to make *every* source package installation work
without having to troubleshoot all the time ?
The most code is OK, and compiles out of the box.
The troublesome applications : Gets easier to build over the years.
Look for src packages : src.rpms and debian source.
Patches are included, will fix the most errors.
.
 
Old 02-11-2012, 10:28 PM   #3
linuxlicious
Member
 
Registered: May 2011
Posts: 87

Original Poster
Rep: Reputation: 6
Ok, I tried one of the RPM packages (converted to .deb with alien) and the app itself seems to work at first albeit in my case I have to use 'aoss' to make it run right. But now there's another problem: I defined the location of the mp3 files in the config file but when I press play it only flips through all of the songs at a rapid pace without playing anything at all. Am I missing something?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing from source vs from package shaklouf Linux - Software 9 05-17-2011 10:49 PM
why makefile.in is in the source package gachen Linux - Software 2 05-26-2010 10:31 PM
binary kernel package == source package ? narc Ubuntu 4 07-29-2007 09:28 AM
i was compiling a source package then deepinlife Linux - Newbie 5 06-25-2006 07:50 AM
kernel-source package houston1981 DamnSmallLinux 0 12-01-2004 04:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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