undefined references when building gettext 0.17

View: New views
2 Messages — Rating Filter:   Alert me  

undefined references when building gettext 0.17

by Vincent Torri-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hey,

I have installed MSYS 1.0.11 and MinGW 5.1.6 (candidate part, gcc and g++)

i have installed the latest autoconf, automake and libtool in /usr/local,
and next, i have tried to build gettext 0.17.

I have downloaded the source code and commented the 2 lines containing
VARIABLE(rpl_optarg) and VARIABLE(rpl_optind) in
gettext-tools/woe32dll/gettextlib-exports.c.

I configured it like that:

LDFLAGS="-Wl,-s" CFLAGS="-O3 -pipe" ./configure

When linking libgettextlib, i have the following error:

Creating library file: .libs/libgettextlib.dll.a
.libs/backupfile.o:backupfile.c:(.text+0xb4): undefined reference to `__imp__opendir'
.libs/backupfile.o:backupfile.c:(.text+0xe1): undefined reference to `__imp__readdir'
.libs/backupfile.o:backupfile.c:(.text+0x176): undefined reference to `__imp__readdir'
.libs/backupfile.o:backupfile.c:(.text+0x18c): undefined reference to `__imp__closedir'
collect2: ld returned 1 exit status

does someone have an idea ?

thank you

Vincent Torri

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

Re: undefined references when building gettext 0.17

by JonY-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10/25/2009 07:30, Vincent Torri wrote:

>
> Hey,
>
> I have installed MSYS 1.0.11 and MinGW 5.1.6 (candidate part, gcc and g++)
>
> i have installed the latest autoconf, automake and libtool in /usr/local,
> and next, i have tried to build gettext 0.17.
>
> I have downloaded the source code and commented the 2 lines containing
> VARIABLE(rpl_optarg) and VARIABLE(rpl_optind) in
> gettext-tools/woe32dll/gettextlib-exports.c.
>
> I configured it like that:
>
> LDFLAGS="-Wl,-s" CFLAGS="-O3 -pipe" ./configure
>
> When linking libgettextlib, i have the following error:
>
> Creating library file: .libs/libgettextlib.dll.a
> .libs/backupfile.o:backupfile.c:(.text+0xb4): undefined reference to `__imp__opendir'
> .libs/backupfile.o:backupfile.c:(.text+0xe1): undefined reference to `__imp__readdir'
> .libs/backupfile.o:backupfile.c:(.text+0x176): undefined reference to `__imp__readdir'
> .libs/backupfile.o:backupfile.c:(.text+0x18c): undefined reference to `__imp__closedir'
> collect2: ld returned 1 exit status
>
> does someone have an idea ?
>

Hi,

these functions are declared in dirent.h and found in libmingwex.a.

The issue is that the functions have somehow been redeclared with
dllimport attributes.

You may have to dig through the source to search for the line causing
the redeclaration.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
MinGW-users mailing list
MinGW-users@...

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users