octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

link error of liboctave (MinGW build)


From: Tatsuro MATSUOKA
Subject: link error of liboctave (MinGW build)
Date: Thu, 7 Jan 2010 12:51:57 +0900 (JST)

Hello

Sorry for my frequently post

I have at last reached to link stage of liboctave.  However, unfortunately, 
error occurred

Creating library file: .libs/liboctave.dll.a
c:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../libmingwex.a(mbrtowc.o):mbrtowc.c:(.text+0x1d0):
multiple definition of `mbsrtowcs'
c:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../libmsvcp60.a(dczhs00003.o):(.text+0x0):first
defined here
c:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: 
warning: auto-importing
has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing 
symbols from auto-imported
DLLs..libs/liboctave_la-glob-match.o:glob-match.cc:(.text+0x6e3): undefined 
reference to
`rpl_glob(char const*, int, int (*)(char const*, int), glob_t*)'
.libs/liboctave_la-glob-match.o:glob-match.cc:(.text+0x893): undefined reference
to`rpl_globfree(glob_t*)'
../libgnu/.libs/libgnu.a(getlogin_r.o):getlogin_r.c:(.text+0x11): undefined 
reference to `getlogin'
collect2: ld returned 1 exit status


For errors related glob, I have looked into glob.in.h
The followings are found
#define glob rpl_glob
#define globfree rpl_globfree
#define glob_pattern_p rpl_glob_pattern_p
However there are no rpl_???? functions in glob.c.

So I comment out the above three lines and retried to link
Creating library file: .libs/liboctave.dll.a
c:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../libmingwex.a(mbrtowc.o):mbrtowc.c:(.text+0x1d0):
multiple defini
tion of `mbsrtowcs'
c:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../libmsvcp60.a(dczhs00003.o):(.text+0x0):
 first
defined here
c:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: 
warning: auto-importing
has been activate
d without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing 
symbols from auto-imported
DLLs.
.libs/liboctave_la-glob-match.o:glob-match.cc:(.text+0x6e3): undefined 
reference to `glob(char const*,
int, int (*)(char
 const*, int), glob_t*)'
.libs/liboctave_la-glob-match.o:glob-match.cc:(.text+0x893): undefined 
reference to
`globfree(glob_t*)'
../libgnu/.libs/libgnu.a(getlogin_r.o):getlogin_r.c:(.text+0x11): undefined 
reference to `getlogin'
collect2: ld returned 1 exit status
make[3]: *** [liboctave.la] Error 1
make[3]: Leaving directory `/home/octaves/OctBuild/hg-devel/liboctave'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/octaves/OctBuild/hg-devel/liboctave'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/octaves/OctBuild/hg-devel'
make: *** [all] Error 2

There remained errors.

For getlogin_r.c, I found symbol '_getlogin_r' in libgnu.a. 
????

Any suggestions?

Tatsuro
 

--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]