btrfs-progs: add arg_strtou64 break library btrfs
progs # cat btrfs_mini_tst.c /* * gcc -o btrfs_mini_tst btrfs_mini_tst.c -lbtrfs */ char btrfs_read_and_process_send_stream (); int main () { return btrfs_read_and_process_send_stream (); } progs # gcc -o btrfs_mini_tst btrfs_mini_tst.c -lbtrfs /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/libbtrfs.so: undefined reference to `arg_strtou64' collect2: error: ld returned 1 exit status but if I also add file utils.c into libbtrfs, more undefined error occurs. -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: btrfs-progs: add arg_strtou64 break library btrfs
On Tue, May 20, 2014 at 06:15:49PM +0800, Dennis Lan (dlan) wrote: progs # cat btrfs_mini_tst.c /* * gcc -o btrfs_mini_tst btrfs_mini_tst.c -lbtrfs */ char btrfs_read_and_process_send_stream (); int main () { return btrfs_read_and_process_send_stream (); } progs # gcc -o btrfs_mini_tst btrfs_mini_tst.c -lbtrfs /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/libbtrfs.so: undefined reference to `arg_strtou64' collect2: error: ld returned 1 exit status Hi, that problem was already found. A fix can be found here: http://www.spinics.net/lists/linux-btrfs/msg33434.html Regards, Arvin -- Arvin Schnell, aschn...@suse.de Senior Software Engineer, Research Development SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: btrfs-progs: add arg_strtou64 break library btrfs
On Tue, May 20, 2014 at 6:20 PM, Arvin Schnell aschn...@suse.de wrote: On Tue, May 20, 2014 at 06:15:49PM +0800, Dennis Lan (dlan) wrote: progs # cat btrfs_mini_tst.c /* * gcc -o btrfs_mini_tst btrfs_mini_tst.c -lbtrfs */ char btrfs_read_and_process_send_stream (); int main () { return btrfs_read_and_process_send_stream (); } progs # gcc -o btrfs_mini_tst btrfs_mini_tst.c -lbtrfs /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/libbtrfs.so: undefined reference to `arg_strtou64' collect2: error: ld returned 1 exit status Hi, that problem was already found. A fix can be found here: http://www.spinics.net/lists/linux-btrfs/msg33434.html Regards, Arvin -- Arvin Schnell, aschn...@suse.de Senior Software Engineer, Research Development SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany HI arvin: oh, indeed, this patch should fix my problem thanks for quick response Lan -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html