Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] lockfile-progs-0.1.10 not compile in Revision 20067
@ 2007-09-27 18:30 Sushi Sensei
  2007-09-28  0:07 ` Hebbar
  0 siblings, 1 reply; 2+ messages in thread
From: Sushi Sensei @ 2007-09-27 18:30 UTC (permalink / raw)
  To: buildroot

make[1]: se ingresa al directorio
`/tmp/BUILDROOT/buildroot/build_i586/lockfile-progs-0.1.10'
/tmp/BUILDROOT/buildroot/build_i586/staging_dir/usr/bin/i586-linux-uclibc-gcc
-Os -pipe  -I/tmp/BUILDROOT/buildroot/build_i586/staging_dir/usr/include
-I/tmp/BUILDROOT/buildroot/build_i586/staging_dir/include
--sysroot=/tmp/BUILDROOT/buildroot/build_i586/staging_dir/ -isysroot
/tmp/BUILDROOT/buildroot/build_i586/staging_dir -mtune=i586 -march=i586 -o
lockfile-create -L/tmp/BUILDROOT/buildroot/build_i586/staging_dir/lib
-L/tmp/BUILDROOT/buildroot/build_i586/staging_dir/usr/lib
lockfile-progs.o-llockfile
lockfile-progs.o: In function `parse_arguments':
/tmp/BUILDROOT/buildroot/build_i586/lockfile-progs-0.1.10/lockfile-progs.c:73:
undefined reference to `rindex'
collect2: ld returned 1 exit status
make[1]: *** [lockfile-create] Error 1
make[1]: se sale del directorio
`/tmp/BUILDROOT/buildroot/build_i586/lockfile-progs-0.1.10'
make: ***
[/tmp/BUILDROOT/buildroot/project_build_i586/uclibc/root/usr/bin/lockfile-create]
Error 2


-- 
------------------------------------------------------
--- Timeo Danaos et dona ferentes ---
------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070927/4f354e5f/attachment.htm 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] lockfile-progs-0.1.10 not compile in Revision 20067
  2007-09-27 18:30 [Buildroot] lockfile-progs-0.1.10 not compile in Revision 20067 Sushi Sensei
@ 2007-09-28  0:07 ` Hebbar
  0 siblings, 0 replies; 2+ messages in thread
From: Hebbar @ 2007-09-28  0:07 UTC (permalink / raw)
  To: buildroot


Hi ,

I also had the same problem and when i searched google i got a link to  "
http://osdir.com/ml/os.ecos.patches/2003-05/msg00042.html ". Following th
example i edited the file
/buildroot/build_arm/lockfile-progs-0.1.10/lockfile-progs.c at line 73 and
changed it to 

//  char *cmd_name = rindex(argv[0], '/');     <----- original
  char *cmd_name = strrchr(argv[0], '/');       <----- updated/corrected.

Now it works fine.

Regards
Gururaja


Sushi Sensei wrote:
> 
> make[1]: se ingresa al directorio
> `/tmp/BUILDROOT/buildroot/build_i586/lockfile-progs-0.1.10'
> /tmp/BUILDROOT/buildroot/build_i586/staging_dir/usr/bin/i586-linux-uclibc-gcc
> -Os -pipe  -I/tmp/BUILDROOT/buildroot/build_i586/staging_dir/usr/include
> -I/tmp/BUILDROOT/buildroot/build_i586/staging_dir/include
> --sysroot=/tmp/BUILDROOT/buildroot/build_i586/staging_dir/ -isysroot
> /tmp/BUILDROOT/buildroot/build_i586/staging_dir -mtune=i586 -march=i586 -o
> lockfile-create -L/tmp/BUILDROOT/buildroot/build_i586/staging_dir/lib
> -L/tmp/BUILDROOT/buildroot/build_i586/staging_dir/usr/lib
> lockfile-progs.o-llockfile
> lockfile-progs.o: In function `parse_arguments':
> /tmp/BUILDROOT/buildroot/build_i586/lockfile-progs-0.1.10/lockfile-progs.c:73:
> undefined reference to `rindex'
> collect2: ld returned 1 exit status
> make[1]: *** [lockfile-create] Error 1
> make[1]: se sale del directorio
> `/tmp/BUILDROOT/buildroot/build_i586/lockfile-progs-0.1.10'
> make: ***
> [/tmp/BUILDROOT/buildroot/project_build_i586/uclibc/root/usr/bin/lockfile-create]
> Error 2
> 
> 
> -- 
> ------------------------------------------------------
> --- Timeo Danaos et dona ferentes ---
> ------------------------------------------------------
> 
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
> 

-- 
View this message in context: http://www.nabble.com/lockfile-progs-0.1.10-not-compile-in-Revision-20067-tf4530200.html#a12932524
Sent from the BuildRoot mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-28  0:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-27 18:30 [Buildroot] lockfile-progs-0.1.10 not compile in Revision 20067 Sushi Sensei
2007-09-28  0:07 ` Hebbar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox