sh-utils

hualin gao hualin_gao at yahoo.com
Tue Mar 6 19:05:59 PST 2001


I use Redhat 7.0.
I have a similar problem with you, but I am
not sure my method (see below) works to your problem.


my err message:

/usr/lib/libc.a(mktime.o): In function
`__mktime_internal':
/usr/src/bs/BUILD/glibc-2.1.92/time/mktime.c:219:
multiple definition of `__mon_yday'
../lib/libsu.a(mktime.o):/mnt/lfs/usr/src/sh-utils-2.0/lib/mktime.c:119:
first defined here
/usr/lib/libc.a(mktime.o): In function
`__mktime_internal':
/usr/src/bs/BUILD/glibc-2.1.92/time/mktime.c:219:
multiple definition of `__mktime_internal'
../lib/libsu.a(mktime.o):/mnt/lfs/usr/src/sh-utils-2.0/lib/mktime.c:227:
first defined here
/usr/bin/ld: Warning: size of symbol
`__mktime_internal' changed from 946 to 2600 in
mktime.o
collect2: ld returned 1 exit status
make[2]: *** [date] Error 1
make[2]: Leaving directory
`/mnt/lfs/usr/src/sh-utils-2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/mnt/lfs/usr/src/sh-utils-2.0'
make: *** [all-recursive-am] Error 2
[root at localhost sh-utils-2.0]# 


Because the error message say

`__mon_yday'
`__mktime_internal'

redefined.

I goto mktime.c file, delete these two functions,
then recompile, successfully compile the sh-util
statically.

Good luck!

Gao






--- Super <supers at oceanfree.net> wrote:
> anyone have ever compile sh-utils with this error ?
> 
>
../lib/libsu.a(mktime.o):/root/LFS/usr/src/sh-utils-2.0/lib/mktime.c:227:
> first defined here
> collect2: ld returned 1 exit status
> make[2]: *** [date] Error 1
> make[2]: Leaving directory
> `/root/LFS/usr/src/sh-utils-2.0/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/root/LFS/usr/src/sh-utils-2.0'
> make: *** [all-recursive-am] Error 2
> 
> it happened when compiling sh-utils -static
> any clue how to fix it ?
> **i use slackware 7.1**
> thanks
> 
> regards
> soragan
> 
> 
> 
> -- 
> Unsubscribe: send email to
> lfs-discuss-request at linuxfromscratch.org
> and put unsubscribe in the subject header of the
> message
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the lfs-dev mailing list