Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195139 - sys-libs/pam should depend on dev-util/source-highlight
Summary: sys-libs/pam should depend on dev-util/source-highlight
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-08 19:47 UTC by James Ausmus
Modified: 2007-10-08 20:21 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Ausmus 2007-10-08 19:47:59 UTC
sys-libs/pam utilizes the yywrap function (and various other yy* stuff) that is provided by source-highlight, however, pam does not depend on source-highlight

Reproducible: Always

Steps to Reproduce:
1. emerge -C source-highlight
2. emerge pam
3.

Actual Results:  
arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..     -mcpu=arm9 -Os -pipe -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -c pam_conv_y.c
pam_conv_l.c: In function 'yy_get_next_buffer':
pam_conv_l.c:995: warning: comparison between signed and unsigned
pam_conv_l.c: At top level:
pam_conv_l.c:1579: warning: no previous prototype for 'yyget_in'
pam_conv_l.c:1587: warning: no previous prototype for 'yyget_out'
pam_conv_l.c:1595: warning: no previous prototype for 'yyget_leng'
pam_conv_l.c:1604: warning: no previous prototype for 'yyget_text'
pam_conv_l.c:1615: warning: no previous prototype for 'yyset_in'
pam_conv_l.c:1620: warning: no previous prototype for 'yyset_out'
pam_conv_l.c:1625: warning: no previous prototype for 'yyget_debug'
pam_conv_l.c:1630: warning: no previous prototype for 'yyset_debug'
pam_conv_l.c:1664: warning: no previous prototype for 'yylex_destroy'
pam_conv_l.c:1087: warning: 'yyunput' defined but not used
/bin/sh ../../libtool --tag=CC   --mode=link arm-unknown-linux-gnu-gcc  -mcpu=arm9 -Os -pipe -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow  -Wl,--as-needed -Wl,-O1 -o pam_conv1 pam_conv_l.o pam_conv_y.o
mkdir .libs
arm-unknown-linux-gnu-gcc -mcpu=arm9 -Os -pipe -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -Wl,--as-needed -Wl,-O1 -o pam_conv1 pam_conv_l.o pam_conv_y.o
pam_conv_l.o: In function `yylex':
pam_conv_l.c:(.text+0xfb8): undefined reference to `yywrap'
collect2: ld returned 1 exit status
make[4]: *** [pam_conv1] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-libs/pam-0.99.8.1-r1/work/Linux-PAM-0.99.8.1/conf/pam_conv1'

Expected Results:  
pam compiles and installs
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-08 19:55:47 UTC
No, it seriously shouldn't; your flex is broken.
Comment 2 James Ausmus 2007-10-08 20:21:29 UTC
(In reply to comment #1)
> No, it seriously shouldn't; your flex is broken.
> 

Then there's a bug with cross-compiling pam, wrt flex. Can I report that, or would it just be considered invalid - i.e. is crossdev/xmerge and the use thereof supported officially?