Bug 1591 - portmap fails to compile
Summary: portmap fails to compile
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 minor
Target Milestone: 2010.05
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-16 09:29 UTC by Kelvin Cheung
Modified: 2010-04-19 09:21 UTC (History)
1 user (show)

See Also:
Host: Kubuntu 9.10
Target: armv4
Build:


Attachments
Enable libutil by default for uclibc 0.9.31 (829 bytes, patch)
2010-04-19 01:26 UTC, Kelvin Cheung
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kelvin Cheung 2010-04-16 09:29:00 UTC
While building openssl with uClibc-0.9.31 and buildroot toolchain:
binutils-2.20.1 gcc-4.4.3, build fails with error:

touch /opt/buildroot/output/build/portmap_5beta/.unpacked
/usr/bin/make -j2 CC=/opt/buildroot/output/staging/usr/bin/arm-linux-uclibcgnueabi-gcc O="-Os -pipe -Os  -I/opt/buildroot/output/staging/usr/include -I/opt/buildroot/output/staging/include --sysroot=/opt/buildroot/output/staging/ -isysroot /opt/buildroot/output/staging -mtune=arm920t -march=armv4t -mabi=aapcs-linux -msoft-float -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" -C /opt/buildroot/output/build/portmap_5beta
make[1]: 正在进入目录 `/opt/buildroot/output/build/portmap_5beta'
/opt/buildroot/output/staging/usr/bin/arm-linux-uclibcgnueabi-gcc  -Dperror=xperror -DCHECK_PORT  -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD          -Os -pipe -Os  -I/opt/buildroot/output/staging/usr/include -I/opt/buildroot/output/staging/include --sysroot=/opt/buildroot/output/staging/ -isysroot /opt/buildroot/output/staging -mtune=arm920t -march=armv4t -mabi=aapcs-linux -msoft-float -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64    -c -o portmap.o portmap.c
/opt/buildroot/output/staging/usr/bin/arm-linux-uclibcgnueabi-gcc  -Dperror=xperror -DCHECK_PORT  -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD          -Os -pipe -Os  -I/opt/buildroot/output/staging/usr/include -I/opt/buildroot/output/staging/include --sysroot=/opt/buildroot/output/staging/ -isysroot /opt/buildroot/output/staging -mtune=arm920t -march=armv4t -mabi=aapcs-linux -msoft-float -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64    -c -o pmap_check.o pmap_check.c
/opt/buildroot/output/staging/usr/bin/arm-linux-uclibcgnueabi-gcc  -Dperror=xperror -DCHECK_PORT  -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD          -Os -pipe -Os  -I/opt/buildroot/output/staging/usr/include -I/opt/buildroot/output/staging/include --sysroot=/opt/buildroot/output/staging/ -isysroot /opt/buildroot/output/staging -mtune=arm920t -march=armv4t -mabi=aapcs-linux -msoft-float -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64    -c -o from_local.o from_local.c
/opt/buildroot/output/staging/usr/bin/arm-linux-uclibcgnueabi-gcc  -Dperror=xperror -DCHECK_PORT  -DFACILITY=LOG_AUTH  -DIGNORE_SIGCHLD          -Os -pipe -Os  -I/opt/buildroot/output/staging/usr/include -I/opt/buildroot/output/staging/include --sysroot=/opt/buildroot/output/staging/ -isysroot /opt/buildroot/output/staging -mtune=arm920t -march=armv4t -mabi=aapcs-linux -msoft-float -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -o pmap_dump pmap_dump.c -lutil
/opt/buildroot/output/staging/usr/bin/../lib/gcc/arm-linux-uclibcgnueabi/4.4.3/../../../../arm-linux-uclibcgnueabi/bin/ld: cannot find -lutil
collect2: ld returned 1 exit status
make[1]: *** [pmap_dump] 错误 1
make[1]:正在离开目录 `/opt/buildroot/output/build/portmap_5beta'
make: *** [/opt/buildroot/output/build/portmap_5beta/portmap] 错误 2
Comment 1 Kelvin Cheung 2010-04-16 09:38:52 UTC
(In reply to comment #0)

I found libutil is disabled in the default configuration (toolchain/uClibc/uClibc-0.9.31.config)

...
# UCLIBC_HAS_GETPT is not set
# UCLIBC_HAS_LIBUTIL is not set
UCLIBC_HAS_TM_EXTENSIONS=y
...

Maybe we could enable it by default.

Comment 2 Kelvin Cheung 2010-04-19 01:26:49 UTC
Created attachment 1531 [details]
Enable libutil by default for uclibc 0.9.31
Comment 3 Peter Korsgaard 2010-04-19 07:11:01 UTC
Thanks, but this is already done in git since yesterday (see bug #1555)
Comment 4 Kelvin Cheung 2010-04-19 07:19:25 UTC
(In reply to comment #3)
> Thanks, but this is already done in git since yesterday (see bug #1555)
> 

I updated to the newest version just now.
But the libutil is still disabled in the default configuration.

Comment 5 Peter Korsgaard 2010-04-19 09:21:48 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Thanks, but this is already done in git since yesterday (see bug #1555)
> > 
> 
> I updated to the newest version just now.
> But the libutil is still disabled in the default configuration.

Sorry, I mixed up the libresolv / libutil patches - Committed now.