Modify

Opened 10 years ago

Closed 5 years ago

#3721 closed defect (worksforme)

[Packages]: perl does not compile

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description (last modified by blogic)

E_CROSS_COMPILE -I/home/openwrt/alix.2c2/staging_dir/i386/include -I/home/openwrt/alix.2c2/staging_dir/i386/usr/include  -O2 -Wall   -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize='-O2'" pp_sort.o`  pp_sort.c
          CCCMD =  i386-linux-uclibc-gcc -DPERL_CORE -c -O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts -DUSE_CROSS_COMPILE -I/home/openwrt/alix.2c2/staging_dir/i386/include -I/home/openwrt/alix.2c2/staging_dir/i386/usr/include  -O2 -Wall   -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
rm -f opmini.c
cp op.c opmini.c
`sh  cflags "optimize='-O2'" opmini.o`  -DPERL_EXTERNAL_GLOB opmini.c
          CCCMD =  i386-linux-uclibc-gcc -DPERL_CORE -c -O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts -DUSE_CROSS_COMPILE -I/home/openwrt/alix.2c2/staging_dir/i386/include -I/home/openwrt/alix.2c2/staging_dir/i386/usr/include  -O2 -Wall   -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
i386-linux-uclibc-gcc  -o miniperl \
            `echo   gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o hv.o av.o perl.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o  | sed 's/ op.o / /'` \
            miniperlmain.o opmini.o -lnsl -ldl -lm -lcrypt -lutil -lc
sv.o: In function `Perl_sv_vcatpvfn':
sv.c:(.text+0x3a09): undefined reference to `gcvt'
sv.c:(.text+0x3ad4): undefined reference to `gcvt'
sv.o: In function `Perl_sv_2pv_flags':
sv.c:(.text+0x4e7a): undefined reference to `gcvt'
sv.c:(.text+0x4f1a): undefined reference to `gcvt'
collect2: ld returned 1 exit status
make[3]: *** [miniperl] Error 1
make[3]: Leaving directory `/home/openwrt/alix.2c2/build_dir/i386/perl/perl-5.10.0'
make[2]: *** [/home/openwrt/alix.2c2/build_dir/i386/perl/perl-5.10.0/.built-perl] Error 2
make[2]: Leaving directory `/home/openwrt/alix.2c2/feeds/packages/lang/perl'
make[1]: *** [package/feeds/packages/perl/compile] Error 2
make[1]: Leaving directory `/home/openwrt/alix.2c2'
make: *** [package/perl/compile] Error 2
openwrt@debian:~/alix.2c2$

Attachments (0)

Change History (5)

comment:1 Changed 10 years ago by anonymous

Perl won't compile for me either but I get this:

make[5]: Entering directory `/homeopenwrt/trunk/build_dir/mipsel/perl/perl-5.10.0/ext/DB_File'
mipsel-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -DUSE_CROSS_COMPILE -I/home
openwrt/trunk/staging_dir/mipsel/include -I/homeopenwrt/trunk/staging_dir/mipsel/usr/include -O2 -DVERSION=\"1.816_1\" -DXS_VERSION=\"1.816_1\" -fPIC "-I../.." version.c
version.c:30:16: error: db.h: No such file or directory

comment:2 Changed 10 years ago by anonymous

any info I can provide to help? having Perl would add a lot of capability to OpenWrt

comment:3 Changed 10 years ago by blogic

  • Description modified (diff)
  • Resolution set to fixed
  • Status changed from new to closed

comment:4 in reply to: ↑ description Changed 6 years ago by b35734@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

Replying to anonymous:

E_CROSS_COMPILE -I/home/openwrt/alix.2c2/staging_dir/i386/include -I/home/openwrt/alix.2c2/staging_dir/i386/usr/include  -O2 -Wall   -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
`sh  cflags "optimize='-O2'" pp_sort.o`  pp_sort.c
          CCCMD =  i386-linux-uclibc-gcc -DPERL_CORE -c -O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts -DUSE_CROSS_COMPILE -I/home/openwrt/alix.2c2/staging_dir/i386/include -I/home/openwrt/alix.2c2/staging_dir/i386/usr/include  -O2 -Wall   -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
rm -f opmini.c
cp op.c opmini.c
`sh  cflags "optimize='-O2'" opmini.o`  -DPERL_EXTERNAL_GLOB opmini.c
          CCCMD =  i386-linux-uclibc-gcc -DPERL_CORE -c -O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts -DUSE_CROSS_COMPILE -I/home/openwrt/alix.2c2/staging_dir/i386/include -I/home/openwrt/alix.2c2/staging_dir/i386/usr/include  -O2 -Wall   -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
i386-linux-uclibc-gcc  -o miniperl \
            `echo   gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o hv.o av.o perl.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o  | sed 's/ op.o / /'` \
            miniperlmain.o opmini.o -lnsl -ldl -lm -lcrypt -lutil -lc
sv.o: In function `Perl_sv_vcatpvfn':
sv.c:(.text+0x3a09): undefined reference to `gcvt'
sv.c:(.text+0x3ad4): undefined reference to `gcvt'
sv.o: In function `Perl_sv_2pv_flags':
sv.c:(.text+0x4e7a): undefined reference to `gcvt'
sv.c:(.text+0x4f1a): undefined reference to `gcvt'
collect2: ld returned 1 exit status
make[3]: *** [miniperl] Error 1
make[3]: Leaving directory `/home/openwrt/alix.2c2/build_dir/i386/perl/perl-5.10.0'
make[2]: *** [/home/openwrt/alix.2c2/build_dir/i386/perl/perl-5.10.0/.built-perl] Error 2
make[2]: Leaving directory `/home/openwrt/alix.2c2/feeds/packages/lang/perl'
make[1]: *** [package/feeds/packages/perl/compile] Error 2
make[1]: Leaving directory `/home/openwrt/alix.2c2'
make: *** [package/perl/compile] Error 2
openwrt@debian:~/alix.2c2$

How to fix it? I met the same problem, but I cann't find the fix patch. Could anyone give me some feedback? These are the log I met:
home/winne/rpm/BUILD/perl-5.8.8/sv.c:8552: undefined reference to `gcvt'

/home/winne/rpm/BUILD/perl-5.8.8/sv.c:9315: undefined reference to `gcvt'

libperl.a(sv.o): In function `Perl_sv_2pv_flags':

/home/winne/rpm/BUILD/perl-5.8.8/sv.c:3222: undefined reference to `gcvt'

/home/winne/rpm/BUILD/perl-5.8.8/sv.c:3005: undefined reference to `gcvt'

comment:5 Changed 5 years ago by florian

  • Resolution set to worksforme
  • Status changed from reopened to closed
  • Version set to Trunk

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.