I have added -D_GNU_SOURCE to Makefiles of packages that won't build and to
the ltib toolchain options list.

--
73! Mike R9FT ex. RA9FTM




2011/11/3 Mike R9FT <[email protected]>

> Hi all.
>
> I am using ubuntu 10.04 LTS.
> After cvs update of ltib I tried to rebuild phy3250 board and get the
> following error:
> I think #define _GNU_SOURCE (or -D_GNUSOURCE for gcc command line) in some
> cases should help to solve this problem.
> Can anyone help me with this problem?
>
>
> Processing: mtd-utils
> =======================
> Build path taken because: directory build, build key set, no prebuilt rpm,
>
> rpmbuild --dbpath /home/disk2/ltib/ltib/rootfs//var/lib/rpm --target arm
> --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm'
> --define '__strip strip' --define '_topdir /home/disk2/ltib/ltib/rpm'
> --define '_prefix /usr' --define '_tmppath /home/disk2/ltib/ltib/tmp'
> --define '_rpmdir /home/disk2/ltib/ltib/rpm/RPMS'  --define '_mandir
> /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var'
> -bc --short-circuit
> /home/disk2/ltib/ltib/dist/lfs-5.1/mtd-utils/mtd-utils.spec
> Building target platforms: arm
> Building for target arm
> Executing(%build): /bin/sh -e /home/disk2/ltib/ltib/tmp/rpm-tmp.13497
> + umask 022
> + cd /home/disk2/ltib/ltib/rpm/BUILD
> + cd mtd-utils
> + make -j1 WITHOUT_XATTR=1
> make -C ./ubi-utils
> make[1]: Entering directory
> `/home/disk2/ltib/ltib/rpm/BUILD/mtd-utils/ubi-utils'
> make -C new-utils ubiattach
> make[2]: Entering directory
> `/home/disk2/ltib/ltib/rpm/BUILD/mtd-utils/ubi-utils/new-utils'
> gcc -Iinclude -Isrc -I../../include -O2 -Wall -Werror -Wall ubiattach.o
> common.o -L. -lubi -o ubiattach
> ./libubi.a(libubi.o): In function `read_major':
> libubi.c:(.text+0x290): undefined reference to `__isoc99_sscanf'
> ./libubi.a(libubi.o): In function `read_positive_ll':
> libubi.c:(.text+0x454): undefined reference to `__isoc99_sscanf'
> ./libubi.a(libubi.o): In function `ubi_get_dev_info1':
> libubi.c:(.text+0xa6c): undefined reference to `__isoc99_sscanf'
> ./libubi.a(libubi.o): In function `ubi_get_info':
> libubi.c:(.text+0xdb4): undefined reference to `__isoc99_sscanf'
> collect2: ld returned 1 exit status
> make[2]: *** [ubiattach] Error 1
> make[2]: Leaving directory
> `/home/disk2/ltib/ltib/rpm/BUILD/mtd-utils/ubi-utils/new-utils'
> make[1]: *** [ubiattach] Error 2
> make[1]: Leaving directory
> `/home/disk2/ltib/ltib/rpm/BUILD/mtd-utils/ubi-utils'
> make: *** [all] Error 2
> error: Bad exit status from /home/disk2/ltib/ltib/tmp/rpm-tmp.13497
> (%build)
>
>
> RPM build errors:
>     Bad exit status from /home/disk2/ltib/ltib/tmp/rpm-tmp.13497 (%build)
> Build time for mtd-utils: 0 seconds
>
> Failed building mtd-utils
>
>
> --
> 73! Mike R9FT ex. RA9FTM
>
>
>
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to