[OpenAFS-devel] Re: latest openafs-devel-1_5_x doesn't compile

Derrick Brashear shadow@gmail.com
Sat, 17 Jan 2009 09:31:46 -0500


yeah, a fix will hit cvs shortly, or just invert the order of
libafsutil and libcmd for klog in src/aklog/Makefile

the library order for krb5 klog is just, well, not right, but for some
reason it didn't matter until now.

On Sat, Jan 17, 2009 at 8:35 AM, Dragos Tatulea
<dragos.tatulea@gmail.com> wrote:
>
>
> On Sat, Jan 17, 2009 at 3:04 PM, Dragos Tatulea <dragos.tatulea@gmail.com>
> wrote:
>>
>> Hi,
>>
>>     After doing a "cvs up && make clean && ./regen.sh && ./configure
>> --with-krb5-conf=/usr/bin/krb5-conf --enable-warnings --enable-debug
>> --enable-debug-kernel && make" I got this:
>> [.............]
>> gcc -pipe -o asetkey -g -DALLOW_REGISTER -I/mnt/afs_dev/openafs/src/config
>> -I. -I. -I/mnt/afs_dev/openafs/include -I/mnt/afs_dev/openafs/include/afs
>> -I/mnt/afs_dev/openafs/include/rx -I/mnt/afs_dev/openafs
>> -I/mnt/afs_dev/openafs/src -I/mnt/afs_dev/openafs/src -D_LARGEFILE64_SOURCE
>> -Wall -Wstrict-prototypes -Wold-style-definition  asetkey.o  -L/usr/lib
>> -lkrb5 -lk5crypto -lcom_err /mnt/afs_dev/openafs/lib/libprot.a
>> /mnt/afs_dev/openafs/lib/libubik.a /mnt/afs_dev/openafs/lib/libauth.a
>> /mnt/afs_dev/openafs/lib/librxkad.a /mnt/afs_dev/openafs/lib/librx.a
>> /mnt/afs_dev/openafs/lib/liblwp.a /mnt/afs_dev/openafs/lib/libsys.a
>> /mnt/afs_dev/openafs/lib/libdes.a /mnt/afs_dev/openafs/lib/libcom_err.a
>> /mnt/afs_dev/openafs/lib/libafsutil.a -lresolv
>> gcc -pipe -o klog -g -DALLOW_REGISTER -I/mnt/afs_dev/openafs/src/config
>> -I. -I. -I/mnt/afs_dev/openafs/include -I/mnt/afs_dev/openafs/include/afs
>> -I/mnt/afs_dev/openafs/include/rx -I/mnt/afs_dev/openafs
>> -I/mnt/afs_dev/openafs/src -I/mnt/afs_dev/openafs/src -D_LARGEFILE64_SOURCE
>> -Wall -Wstrict-prototypes -Wold-style-definition  skipwrap.o klog.o
>> -L/usr/lib -lkrb5 -lk5crypto -lcom_err /mnt/afs_dev/openafs/lib/libprot.a
>> /mnt/afs_dev/openafs/lib/libubik.a /mnt/afs_dev/openafs/lib/libauth.a
>> /mnt/afs_dev/openafs/lib/librxkad.a /mnt/afs_dev/openafs/lib/librx.a
>> /mnt/afs_dev/openafs/lib/liblwp.a /mnt/afs_dev/openafs/lib/libsys.a
>> /mnt/afs_dev/openafs/lib/libdes.a /mnt/afs_dev/openafs/lib/libcom_err.a
>> /mnt/afs_dev/openafs/lib/libafsutil.a \
>>         /mnt/afs_dev/openafs/lib/libcmd.a /mnt/afs_dev/openafs/lib/librx.a
>> -lresolv
>> /mnt/afs_dev/openafs/lib/libcmd.a(cmd.o): In function `cmd_AddParm':
>> /mnt/afs_dev/openafs/src/cmd/cmd.c:481: undefined reference to
>> `AssertionFailed'
>> /mnt/afs_dev/openafs/src/cmd/cmd.c:488: undefined reference to
>> `AssertionFailed'
>> /mnt/afs_dev/openafs/lib/libcmd.a(cmd.o): In function `CopyBackArgs':
>> /mnt/afs_dev/openafs/src/cmd/cmd.c:947: undefined reference to
>> `AssertionFailed'
>> /mnt/afs_dev/openafs/lib/libcmd.a(cmd.o): In function `cmd_ParseLine':
>> /mnt/afs_dev/openafs/src/cmd/cmd.c:1011: undefined reference to
>> `AssertionFailed'
>> /mnt/afs_dev/openafs/src/cmd/cmd.c:1014: undefined reference to
>> `AssertionFailed'
>>
>> /mnt/afs_dev/openafs/lib/libcmd.a(cmd.o):/mnt/afs_dev/openafs/src/cmd/cmd.c:501:
>> more undefined references to `AssertionFailed' follow
>> collect2: ld returned 1 exit status
>> make[3]: *** [klog] Error 1
>> make[3]: Leaving directory `/mnt/afs_dev/openafs/src/aklog'
>> make[2]: *** [aklog] Error 2
>> make[2]: Leaving directory `/mnt/afs_dev/openafs'
>> make[1]: *** [build] Error 2
>> make[1]: Leaving directory `/mnt/afs_dev/openafs'
>> make: *** [all] Error 2
>>
> Forgot to mention the OS: Debian Lenny.
>
> Thanks,
> Dragos
>
>



-- 
Derrick