* btrfs-progs: add arg_strtou64 break library btrfs @ 2014-05-20 10:15 Dennis Lan (dlan) 2014-05-20 10:20 ` Arvin Schnell 0 siblings, 1 reply; 3+ messages in thread From: Dennis Lan (dlan) @ 2014-05-20 10:15 UTC (permalink / raw) To: Wang Shilong; +Cc: linux-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. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: btrfs-progs: add arg_strtou64 break library btrfs 2014-05-20 10:15 btrfs-progs: add arg_strtou64 break library btrfs Dennis Lan (dlan) @ 2014-05-20 10:20 ` Arvin Schnell 2014-05-20 10:28 ` Dennis Lan (dlan) 0 siblings, 1 reply; 3+ messages in thread From: Arvin Schnell @ 2014-05-20 10:20 UTC (permalink / raw) To: Dennis Lan (dlan); +Cc: Wang Shilong, linux-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, <aschnell@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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: btrfs-progs: add arg_strtou64 break library btrfs 2014-05-20 10:20 ` Arvin Schnell @ 2014-05-20 10:28 ` Dennis Lan (dlan) 0 siblings, 0 replies; 3+ messages in thread From: Dennis Lan (dlan) @ 2014-05-20 10:28 UTC (permalink / raw) To: Arvin Schnell; +Cc: Wang Shilong, linux-btrfs On Tue, May 20, 2014 at 6:20 PM, Arvin Schnell <aschnell@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, <aschnell@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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-20 10:28 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-05-20 10:15 btrfs-progs: add arg_strtou64 break library btrfs Dennis Lan (dlan) 2014-05-20 10:20 ` Arvin Schnell 2014-05-20 10:28 ` Dennis Lan (dlan)
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).