4 Jun 2007 20:10
undefined reference to 'yywrap' while compiling PAM
Dallas Clement <dallas.a.clement <at> gmail.com>
2007-06-04 18:10:17 GMT
2007-06-04 18:10:17 GMT
Hello All, I'm having a devil of a time compiling PAM. I keep running into the following error: /home/dallas/downloads/Linux-PAM-0.99.7.1/lex.yy.c:1100: undefined reference to `yywrap' I'm cross-compiling to a i686 target from a Debian 4.0 system. I've searched all over the Internet looking for answers. Some say that you should downgrade your 'flex' package to make this go away. I did so to 2.5.4 and it still didn't make any difference. Can anyone please advise on how to overcome this error? Thanks, Dallas Clement
You should use the (g)libc functions to determine group membership. You don't
have to know if the user database is in sql, ldap, db, etc.
Those functions will transparently search those databases if the machine has a
correctly configured /etc/nsswitch.conf file + the database modules. It's
transparent for your application. Which means the way you are doing it now,
manually parsing the /etc/group file, is wrong. You should be using those
functions from the start.
RSS Feed