[OpenAFS-devel] Compile pbs with 1.3.64 and 2.6

Fred frediz@ahau-kin.org
Sat, 15 May 2004 05:04:15 +0200


Hi,

First, can a 1.3.64 client connect to a server running openafs 1.2.11.
I wanted to try the 1.3.64 version, but encoutered many compile pbs :
I'm running a 2.6.6 (mm patch set), with gcc-3.3.3

Any ideas welcome :)


----
compile_et.o(.text+0xbc3): In function `yyerror' :
: undefined reference to `yylineno'
----
(flex-2.5.4a-r5, bison-1.875)

I managed to go a bit further but got these errors (which I can avoid
with --disable-pam but...) :

----
+ cc -o pam_afs.so.1 afs_setcred.o afs_auth.o afs_util.o afs_account.o afs_session.o afs_password.o afs_pam_msg.o afs_message.o AFS_component_version_number.o /opt2/openafs-snap-2004-05-13/lib/libkauth.a /opt2/openafs-snap-2004-05-13/lib/libprot.a /opt2/openafs-snap-2004-05-13/lib/libubik.a /opt2/openafs-snap-2004-05-13/lib/libauth.a /opt2/openafs-snap-2004-05-13/lib/librxkad.a /opt2/openafs-snap-2004-05-13/lib/libsys.a /opt2/openafs-snap-2004-05-13/lib/libdes.a /opt2/openafs-snap-2004-05-13/lib/librx.a /opt2/openafs-snap-2004-05-13/lib/liblwp.a /opt2/openafs-snap-2004-05-13/lib/libaudit.a /opt2/openafs-snap-2004-05-13/lib/libcmd.a /opt2/openafs-snap-2004-05-13/lib/libcom_err.a /opt2/openafs-snap-2004-05-13/lib/util.a -lresolv
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
afs_setcred.o(.text+0x517): In function `pam_sm_setcred':
: undefined reference to `pam_get_item'
afs_setcred.o(.text+0x55e): In function `pam_sm_setcred':
: undefined reference to `pam_get_user'
afs_setcred.o(.text+0x69f): In function `pam_sm_setcred':
: undefined reference to `pam_get_data'
afs_setcred.o(.text+0xbae): In function `pam_sm_setcred':
: undefined reference to `pam_putenv'
afs_auth.o(.text+0x5b7): In function `pam_sm_authenticate':
: undefined reference to `pam_get_item'
afs_auth.o(.text+0x5fb): In function `pam_sm_authenticate':
: undefined reference to `pam_get_user'
afs_auth.o(.text+0x6c7): In function `pam_sm_authenticate':
: undefined reference to `pam_get_item'
afs_auth.o(.text+0xee0): In function `pam_sm_authenticate':
: undefined reference to `pam_set_item'
afs_auth.o(.text+0xf81): In function `pam_sm_authenticate':
: undefined reference to `pam_set_data'
afs_password.o(.text+0x270): In function `pam_sm_chauthtok':
: undefined reference to `pam_get_item'
afs_password.o(.text+0x2b4): In function `pam_sm_chauthtok':
: undefined reference to `pam_get_user'
afs_password.o(.text+0x37e): In function `pam_sm_chauthtok':
: undefined reference to `pam_get_item'
afs_password.o(.text+0x677): In function `pam_sm_chauthtok':
: undefined reference to `pam_set_item'
afs_password.o(.text+0x694): In function `pam_sm_chauthtok':
: undefined reference to `pam_set_item'
afs_password.o(.text+0xbaa): In function `pam_sm_chauthtok':
: undefined reference to `pam_set_item'
----

and then:

----
cc  -O -I/opt2/openafs-snap-2004-05-13/src/config -I. -I. -I/opt2/openafs-snap-2004-05-13/include -I/opt2/openafs-snap-2004-05-13/include/afs -I/opt2/openafs-snap-2004-05-13/include/rx -I/opt2/openafs-snap-2004-05-13 -I/opt2/openafs-snap-2004-05-13/src -I/opt2/openafs-snap-2004-05-13/src -I./../des -I../des -I../rxkad -I./../rxkad -I../fsint -DRXDEBUG  -c  ./../rx/rx_pthread.c
In file included from ../rx/rx_pthread.c:40:
/opt2/openafs-snap-2004-05-13/include/rx/rx_pthread.h:69: warning: useless keyword or type name in empty declaration
/opt2/openafs-snap-2004-05-13/include/rx/rx_pthread.h:69: warning: empty declaration
../rx/rx_pthread.c: In function `rx_ListenerProc':  
../rx/rx_pthread.c:258: error: undeclared (first use in this function)
../rx/rx_pthread.c:258: error: (Each undeclared identifier is reported only once
../rx/rx_pthread.c:258: error: for each function it appears in.)
../rx/rx_pthread.c: In function `rx_ServerProc':
../rx/rx_pthread.c:291: error: undeclared (first use in this function)
../rx/rx_pthread.c:293: error: invalid lvalue in assignment
../rx/rx_pthread.c:299: error: undeclared (first use in this function)
../rx/rx_pthread.c: In function `rxi_StartListener':
../rx/rx_pthread.c:344: error: undeclared (first use in this function)
../rx/rx_pthread.c: In function `rxi_Listen':
../rx/rx_pthread.c:383: error: undeclared (first use in this function)
----

and finally:

----
cc  -o gtxtest gtxtest.o libgtx.a /opt2/openafs-snap-2004-05-13/lib/librx.a /opt2/openafs-snap-2004-05-13/lib/liblwp.a /opt2/openafs-snap-2004-05-13/lib/libsys.a /opt2/openafs-snap-2004-05-13/lib/libcmd.a /opt2/openafs-snap-2004-05-13/lib/libkauth.a /opt2/openafs-snap-2004-05-13/lib/libauth.a /opt2/openafs-snap-2004-05-13/lib/librxkad.a /opt2/openafs-snap-2004-05-13/lib/libdes.a /opt2/openafs-snap-2004-05-13/lib/libcom_err.a /opt2/openafs-snap-2004-05-13/lib/util.a  /opt2/openafs-snap-2004-05-13/lib/libtermlib.a  -lresolv
libgtx.a(curseswindows.o)(.text+0x38): In function `gator_cursesgwin_init':
: undefined reference to `initscr'
libgtx.a(curseswindows.o)(.text+0xbc): In function `gator_cursesgwin_init':
: undefined reference to `stdscr'
libgtx.a(curseswindows.o)(.text+0xf8): In function `gator_cursesgwin_init':
: undefined reference to `COLS'
libgtx.a(curseswindows.o)(.text+0x104): In function `gator_cursesgwin_init':
: undefined reference to `LINES'
libgtx.a(curseswindows.o)(.text+0x133): In function `gator_cursesgwin_init':
: undefined reference to `raw'
libgtx.a(curseswindows.o)(.text+0x14c): In function `gator_cursesgwin_init':
: undefined reference to `wclear'
libgtx.a(curseswindows.o)(.text+0x2b0): In function `gator_cursesgwin_create':
: undefined reference to `newwin'
libgtx.a(curseswindows.o)(.text+0x36e): In function `gator_cursesgwin_cleanup':
: undefined reference to `wclear'
libgtx.a(curseswindows.o)(.text+0x378): In function `gator_cursesgwin_cleanup':
: undefined reference to `wrefresh'
libgtx.a(curseswindows.o)(.text+0x37d): In function `gator_cursesgwin_cleanup':
: undefined reference to `noraw'
libgtx.a(curseswindows.o)(.text+0x3b0): In function `gator_cursesgwin_cleanup':
: undefined reference to `endwin'
libgtx.a(curseswindows.o)(.text+0x449): In function `gator_cursesgwin_box':
: undefined reference to `wborder'
libgtx.a(curseswindows.o)(.text+0x4a2): In function `gator_cursesgwin_clear':
: undefined reference to `wclear'
libgtx.a(curseswindows.o)(.text+0x4fb): In function `gator_cursesgwin_destroy':
: undefined reference to `delwin'
libgtx.a(curseswindows.o)(.text+0x523): In function `gator_cursesgwin_display':
: undefined reference to `wclear'
libgtx.a(curseswindows.o)(.text+0x53c): In function `gator_cursesgwin_display':
: undefined reference to `wrefresh'
libgtx.a(curseswindows.o)(.text+0x65e): In function `gator_cursesgwin_drawchar':
: undefined reference to `wmove'
libgtx.a(curseswindows.o)(.text+0x67f): In function `gator_cursesgwin_drawchar':
: undefined reference to `waddch'
libgtx.a(curseswindows.o)(.text+0x733): In function `gator_cursesgwin_drawstring':
: undefined reference to `wmove'
libgtx.a(curseswindows.o)(.text+0x75b): In function `gator_cursesgwin_drawstring':
: undefined reference to `waddnstr'
----