Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Problem compiling ncmpc

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
vola
n00b
n00b
Posts: 23
Joined: Tue Dec 28, 2004 11:58 pm
Location: Berlin

Problem compiling ncmpc

  • Quote

Post by vola » Sun Jan 23, 2005 11:54 am

Hi forum.
I didn't find anything about that.
I get errors during compiling of ncmpc.
What's wrong here?

Thanks.

Compiler messages:
^[]2;Started emerge on: Jan 23, 2005 12:50:04^G^[]2; *** emerge ncmpc^GCalculating dependencies ^[]2; >>> emerge (1 of 1) media-sound/ncmpc-0.11.0 to /^G^[]2;emerge: (1 of 1) media-sound/ncmpc-0.11.0 Clean^G^[]2;emerge: (1 of 1) media-sound/ncmpc-0.11.0 Compile^G>>> Unpacking source...
>>> Unpacking ncmpc-0.11.0.tar.gz to /var/tmp/portage/ncmpc-0.11.0/work
>>> Source unpacked.
* econf: updating ncmpc-0.11.0/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating ncmpc-0.11.0/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking for a BSD-compatible install... /bin/install -c
checking for type of socket length (socklen_t)... socklen_t *
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for basename... yes
checking for strcasestr... yes
checking for initscr in -lncurses... yes
checking for getmouse in -lncurses... yes
checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 >= 2.4... yes
checking GLIB_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking GLIB_LIBS... -lglib-2.0
checking whether NLS is requested... yes
checking for locale.h... (cached) yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed... de sv
checking whether to build with debug support... no
checking whether to include the key editor screen... yes
checking whether to include the clock screen... no
checking for default MPD host... localhost
checking for default MPD port... 6600
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
make all-recursive
make[1]: Entering directory `/var/tmp/portage/ncmpc-0.11.0/work/ncmpc-0.11.0'
Making all in src
make[2]: Entering directory `/var/tmp/portage/ncmpc-0.11.0/work/ncmpc-0.11.0/src'
source='libmpdclient.c' object='libmpdclient.o' libtool=no \
depfile='.deps/libmpdclient.Po' tmpdepfile='.deps/libmpdclient.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -O2 -march=pentium4 -fomit-frame-pointer -c `test -f 'libmpdclient.c' || echo './'`libmpdclient.c
source='main.c' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -O2 -march=pentium4 -fomit-frame-pointer -c `test -f 'main.c' || echo './'`main.c
source='mpdclient.c' object='mpdclient.o' libtool=no \
depfile='.deps/mpdclient.Po' tmpdepfile='.deps/mpdclient.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -O2 -march=pentium4 -fomit-frame-pointer -c `test -f 'mpdclient.c' || echo './'`mpdclient.c
source='options.c' object='options.o' libtool=no \
depfile='.deps/options.Po' tmpdepfile='.deps/options.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -O2 -march=pentium4 -fomit-frame-pointer -c `test -f 'options.c' || echo './'`options.c
source='conf.c' object='conf.o' libtool=no \
depfile='.deps/conf.Po' tmpdepfile='.deps/conf.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -O2 -march=pentium4 -fomit-frame-pointer -c `test -f 'conf.c' || echo './'`conf.c
source='command.c' object='command.o' libtool=no \
depfile='.deps/command.Po' tmpdepfile='.deps/command.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -O2 -march=pentium4 -fomit-frame-pointer -c `test -f 'command.c' || echo './'`command.c
source='screen.c' object='screen.o' libtool=no \
depfile='.deps/screen.Po' tmpdepfile='.deps/screen.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -O2 -march=pentium4 -fomit-frame-pointer -c `test -f 'screen.c' || echo './'`screen.c
source='screen_utils.c' object='screen_utils.o' libtool=no \
depfile='.deps/screen_utils.Po' tmpdepfile='.deps/screen_utils.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -O2 -march=pentium4 -fomit-frame-pointer -c `test -f 'screen_utils.c' || echo './'`screen_utils.c
source='screen_play.c' object='screen_play.o' libtool=no \
depfile='.deps/screen_play.Po' tmpdepfile='.deps/screen_play.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -O2 -march=pentium4 -fomit-frame-pointer -c `test -f 'screen_play.c' || echo './'`screen_play.c
source='screen_file.c' object='screen_file.o' libtool=no \
depfile='.deps/screen_file.Po' tmpdepfile='.deps/screen_file.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -O2 -march=pentium4 -fomit-frame-pointer -c `test -f 'screen_file.c' || echo './'`screen_file.c
source='screen_search.c' object='screen_search.o' libtool=no \
depfile='.deps/screen_search.Po' tmpdepfile='.deps/screen_search.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -O2 -march=pentium4 -fomit-frame-pointer -c `test -f 'screen_search.c' || echo './'`screen_search.c
source='screen_help.c' object='screen_help.o' libtool=no \
depfile='.deps/screen_help.Po' tmpdepfile='.deps/screen_help.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -O2 -march=pentium4 -fomit-frame-pointer -c `test -f 'screen_help.c' || echo './'`screen_help.c
screen_play.c:26:19: panel.h: No such file or directory
source='screen_keydef.c' object='screen_keydef.o' libtool=no \
depfile='.deps/screen_keydef.Po' tmpdepfile='.deps/screen_keydef.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\" -O2 -march=pentium4 -fomit-frame-pointer -c `test -f 'screen_keydef.c' || echo './'`screen_keydef.c
make[2]: *** [screen_play.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/ncmpc-0.11.0/work/ncmpc-0.11.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ncmpc-0.11.0/work/ncmpc-0.11.0'
make: *** [all] Error 2

!!! ERROR: media-sound/ncmpc-0.11.0 failed.
!!! Function src_compile, Line 556, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
Top
vola
n00b
n00b
Posts: 23
Joined: Tue Dec 28, 2004 11:58 pm
Location: Berlin

  • Quote

Post by vola » Sun Jan 23, 2005 8:06 pm

No one with the same problem? 8O
Top
SweWiLLiE
n00b
n00b
Posts: 27
Joined: Sun Mar 20, 2005 4:20 pm
Location: Sweden

  • Quote

Post by SweWiLLiE » Thu Mar 24, 2005 1:27 am

I just got the same problem.
Also tried compiling myself from source, this is the result:

Code: Select all

gcc -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/usr/etc"\"   -g -O2 -c `test -f 'screen_play.c' || echo './'`screen_play.c
screen_play.c:26:19: panel.h: No such file or directory
make[2]: *** [screen_play.o] Error 1
make[2]: Leaving directory `/home/willie/ncmpc-0.11.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/willie/ncmpc-0.11.1'
make: *** [all] Error 2
Top
mascanho
Veteran
Veteran
User avatar
Posts: 1241
Joined: Tue Dec 21, 2004 2:55 am
Location: On my Bmx Bike on a Concrete Park Flatlanding ...
Contact:
Contact mascanho
Website

  • Quote

Post by mascanho » Thu Mar 24, 2005 2:17 am

I think either your CFLAGS or your are too rough ... try whitout -DHAVE_CONFIG
Flatland Life is a Choice !
emerge avatar
Top
SweWiLLiE
n00b
n00b
Posts: 27
Joined: Sun Mar 20, 2005 4:20 pm
Location: Sweden

  • Quote

Post by SweWiLLiE » Thu Mar 24, 2005 2:52 am

CFLAGS too rough?

Code: Select all

CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
And how would I tell ./Configure to exclude "-DHAVE_CONFIG" ?
Top
mascanho
Veteran
Veteran
User avatar
Posts: 1241
Joined: Tue Dec 21, 2004 2:55 am
Location: On my Bmx Bike on a Concrete Park Flatlanding ...
Contact:
Contact mascanho
Website

  • Quote

Post by mascanho » Thu Mar 24, 2005 12:39 pm

hum ... in that case try adding

Code: Select all

-DHAVE_CONFIG
to your CFLAGS , and try emerging it again !
Flatland Life is a Choice !
emerge avatar
Top
SweWiLLiE
n00b
n00b
Posts: 27
Joined: Sun Mar 20, 2005 4:20 pm
Location: Sweden

  • Quote

Post by SweWiLLiE » Thu Mar 24, 2005 12:50 pm

hmm.. You must be kidding.. ..right?
Top
mascanho
Veteran
Veteran
User avatar
Posts: 1241
Joined: Tue Dec 21, 2004 2:55 am
Location: On my Bmx Bike on a Concrete Park Flatlanding ...
Contact:
Contact mascanho
Website

  • Quote

Post by mascanho » Thu Mar 24, 2005 7:43 pm

no, just try it , i had a similar problem, will it hurt to try ??
Flatland Life is a Choice !
emerge avatar
Top
zenbow
n00b
n00b
Posts: 14
Joined: Fri Aug 27, 2004 9:49 am
Location: Germany

  • Quote

Post by zenbow » Wed Mar 30, 2005 2:47 pm

Hi there,

first i had the follwing problem with compiling ncmpc:

Code: Select all

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\"   -O2 -march=athlon-xp -fomit-frame-pointer -pipe -c `test -f 'screen_file.c' || echo './'`screen_file.c
screen_play.c:26:19: panel.h: No such file or directory
make[2]: *** [screen_play.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/ncmpc-0.11.0/work/ncmpc-0.11.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ncmpc-0.11.0/work/ncmpc-0.11.0'
make: *** [all] Error 2
then i added -DHAVE_CONFIG to my CFLAGS and now i have this problem:

Code: Select all

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\"   -O2 -march=athlon-xp -fomit-frame-pointer -pipe -DHAVE_CONFIG -c `test -f 'screen_play.c' || echo './'`screen_play.c
screen_play.c:26:19: panel.h: No such file or directory
source='screen_file.c' object='screen_file.o' libtool=no \
depfile='.deps/screen_file.Po' tmpdepfile='.deps/screen_file.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DLOCALE_DIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/etc"\"   -O2 -march=athlon-xp -fomit-frame-pointer -pipe -DHAVE_CONFIG -c `test -f 'screen_file.c' || echo './'`screen_file.c
make[2]: *** [screen_play.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/ncmpc-0.11.0/work/ncmpc-0.11.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ncmpc-0.11.0/work/ncmpc-0.11.0'
make: *** [all] Error 2
Any ideas?

zenbow
Top
thersites
Tux's lil' helper
Tux's lil' helper
Posts: 101
Joined: Tue Oct 12, 2004 10:12 pm
Location: South West China

  • Quote

Post by thersites » Wed Mar 30, 2005 2:56 pm

Have you got panel.h?

Try re-emerging ncurses.
Top
zenbow
n00b
n00b
Posts: 14
Joined: Fri Aug 27, 2004 9:49 am
Location: Germany

  • Quote

Post by zenbow » Wed Mar 30, 2005 3:03 pm

Made a emerge -DN world,
this reemerged baselayout and ncurses (added gpm to my useflags),
after that ncmpc finished without any problems (without -DHAVE_CONFIG in my CFLAGS)

zenbow
Top
Post Reply

11 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic