Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234959 - app-editors/nano-2.1.4 compilation fails due to 'xopenfile' undeclared when USE=debug
Summary: app-editors/nano-2.1.4 compilation fails due to 'xopenfile' undeclared when U...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-16 20:20 UTC by BedOS_Gui
Modified: 2008-08-18 03:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
There is a simple patch (simple.patch,397 bytes, patch)
2008-08-17 06:35 UTC, Antonov Pavel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description BedOS_Gui 2008-08-16 20:20:07 UTC
When emerging nano-2.1.4, this compilation error occurs :

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\"  -I/usr/include/ncursesw   -march=native -O3 -pipe -msse3 -MT winio.o -MD -MP -MF .deps/winio.Tpo -c -o winio.o winio.c
text.c: In function 'do_enter':
text.c:652: error: 'xopenfile' undeclared (first use in this function)
text.c:652: error: (Each undeclared identifier is reported only once
text.c:652: error: for each function it appears in.)
make[2]: *** [text.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/nano.Tpo .deps/nano.Po
mv -f .deps/winio.Tpo .deps/winio.Po
make[2]: Leaving directory `/var/tmp/paludis/app-editors-nano-2.1.4/work/nano-2.1.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/paludis/app-editors-nano-2.1.4/work/nano-2.1.4'
make: *** [all] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2

!!! ERROR in app-editors/nano-2.1.4:
!!! In src_compile at line 3403
!!! (no message provided)

!!! Call stack:
!!!    * src_compile (/var/tmp/paludis/app-editors-nano-2.1.4/temp/loadsaveenv:3403)
!!!    * ebuild_f_compile (/usr/libexec/paludis/0/src_compile.bash:49)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:463)
!!!    * main (/usr/libexec/paludis/ebuild.bash:478)

diefunc: making ebuild PID 30698 exit with error
die trap: exiting with error.

Reproducible: Always
Comment 1 BedOS_Gui 2008-08-16 20:24:11 UTC
(In reply to comment #0)
> When emerging nano-2.1.4, this compilation error occurs :
> 
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..
> -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFDIR=\"/etc\" 
> -I/usr/include/ncursesw   -march=native -O3 -pipe -msse3 -MT winio.o -MD -MP
> -MF .deps/winio.Tpo -c -o winio.o winio.c
> text.c: In function 'do_enter':
> text.c:652: error: 'xopenfile' undeclared (first use in this function)
> text.c:652: error: (Each undeclared identifier is reported only once
> text.c:652: error: for each function it appears in.)
> make[2]: *** [text.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> mv -f .deps/nano.Tpo .deps/nano.Po
> mv -f .deps/winio.Tpo .deps/winio.Po
> make[2]: Leaving directory
> `/var/tmp/paludis/app-editors-nano-2.1.4/work/nano-2.1.4/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/var/tmp/paludis/app-editors-nano-2.1.4/work/nano-2.1.4'
> make: *** [all] Error 2
> /usr/libexec/paludis/utils/emake: emake returned error 2
> 
> !!! ERROR in app-editors/nano-2.1.4:
> !!! In src_compile at line 3403
> !!! (no message provided)
> 
> !!! Call stack:
> !!!    * src_compile
> (/var/tmp/paludis/app-editors-nano-2.1.4/temp/loadsaveenv:3403)
> !!!    * ebuild_f_compile (/usr/libexec/paludis/0/src_compile.bash:49)
> !!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:463)
> !!!    * main (/usr/libexec/paludis/ebuild.bash:478)
> 
> diefunc: making ebuild PID 30698 exit with error
> die trap: exiting with error.
> 
> Reproducible: Always
> 


The compilation error seems to be related to USE flag "debug", without it the compilation works fine.
Comment 2 Antonov Pavel 2008-08-17 06:35:49 UTC
Created attachment 163100 [details, diff]
There is a simple patch