public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: undefined reference to `_imp__gettext'
@ 2000-12-22  2:51 Robert
  0 siblings, 0 replies; 2+ messages in thread
From: Robert @ 2000-12-22  2:51 UTC (permalink / raw)
  To: 'Robert', gcc-help

More information:
Running nm on libbackend.a gives the following:-

/src [616] nm /tmp/build/gcc-sh-elf/gcc/libbackend.a | grep _imp__gettext
         U __imp__gettext
         U __imp__gettext
         U __imp__gettext

Note the "__" prefix, the undefined reference to `_imp__gettext' has only one "_" is this the
problem.

I am building the latest CVS sources (as of 21/12/00) using the latest cygwin. I have also tried the
sh-elf target which unsurprisingly gives the same results.

Any help greatly appreciated.

Robert

> -----Original Message-----
> From: Robert [ mailto:robert.melchers@drives.eurotherm.co.uk ]
> Sent: 20 December 2000 13:30
> To: 'gcc-help@gcc.gnu.org'
> Subject: undefined reference to `_imp__gettext'
>
>
> Does anyone know what I am doing wrong ?
>
> Using the following configure command
>
>  /src/gcc/configure --target=sh-coff \
>   --prefix=/sh-tools \
>   --exec-prefix=/sh-tools/sh-coff-3.xx \
>   --with-gnu-as --with-gnu-ld --with-newlib \
>   -v 2>&1 | tee configure.out
>
>  and the make command
>
> make -w  all install LANGUAGES="c c++" 2>&1 | tee make.out
>
> I get the following errors
>
> ----------- clip --------------
>
> .....
>
> if [ -f ranlib ] || [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
> ; then ranlib libbackend.a ; else true ; fi
> gcc -DCROSS_COMPILE -DIN_GCC    -g -O2 -W -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  -o cc1.exe \
>  c-parse.o c-lang.o c-errors.o c-lex.o c-pragma.o c-decl.o
> c-typeck.o c-convert.o c-aux-info.o c-common.o c-semantics.o
> c-dump.o libcpp.a  toplev.o libbackend.a obstack.o
> -ladvapi32 ../libiberty/libiberty.a
> c-parse.o: In function `yyerror':
> /tmp/build/gcc/gcc/c-parse.y:2344: undefined reference to
> `_imp__gettext'
> c-decl.o: In function `finish_struct':
> /src/gcc/gcc/c-decl.c:5349: undefined reference to `_imp__gettext'
> /src/gcc/gcc/c-decl.c:5352: undefined reference to `_imp__gettext'
> /src/gcc/gcc/c-decl.c:5363: undefined reference to `_imp__gettext'
> /src/gcc/gcc/c-decl.c:5363: undefined reference to `_imp__gettext'
> c-typeck.o:/src/gcc/gcc/c-typeck.c:3340: more undefined
> references to `_imp__gettext' follow
> toplev.o: In function `main':
> /src/gcc/gcc/toplev.c:4538: undefined reference to
> `_imp__bindtextdomain'
> /src/gcc/gcc/toplev.c:4539: undefined reference to `_imp__textdomain'
> toplev.o: In function `print_switch_values':
> /src/gcc/gcc/toplev.c:4989: undefined reference to `_imp__gettext'
> /src/gcc/gcc/toplev.c:5018: undefined reference to `_imp__gettext'
> libbackend.a(timevar.o): In function `timevar_print':
> /src/gcc/gcc/timevar.c:428: undefined reference to `_imp__gettext'
> /src/gcc/gcc/timevar.c:476: undefined reference to `_imp__gettext'
> libbackend.a(timevar.o): In function `print_time':
> /src/gcc/gcc/timevar.c:514: undefined reference to `_imp__gettext'
> libbackend.a(diagnostic.o):/src/gcc/gcc/diagnostic.c:917:
> more undefined references to `_imp__gettext' follow
> collect2: ld returned 1 exit status
> make[1]: *** [cc1.exe] Error 1
> make[1]: Leaving directory `/tmp/build/gcc/gcc'
> make: *** [all-gcc] Error 2
> make: Leaving directory `/tmp/build/gcc'
>
> ----------- clip --------------
>
> I think it has something to do will shared libraries more
> than that I don't know.
>
>
> I am using the following version of gcc.
>
> /src/gcc [532] gcc -dumpversion
> 2.95.2-4
> /src/gcc [533] gcc -dumpmachine
> i686-pc-cygwin
>
>
> Robert Melchers
> ==========

^ permalink raw reply	[flat|nested] 2+ messages in thread

* undefined reference to `_imp__gettext'
@ 2000-12-20  5:45 Robert
  0 siblings, 0 replies; 2+ messages in thread
From: Robert @ 2000-12-20  5:45 UTC (permalink / raw)
  To: gcc-help

Does anyone know what I am doing wrong ?

Using the following configure command

 /src/gcc/configure --target=sh-coff \
  --prefix=/sh-tools \
  --exec-prefix=/sh-tools/sh-coff-3.xx \
  --with-gnu-as --with-gnu-ld --with-newlib \
  -v 2>&1 | tee configure.out

 and the make command

make -w  all install LANGUAGES="c c++" 2>&1 | tee make.out

I get the following errors

----------- clip --------------

.....

if [ -f ranlib ] || [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then ranlib libbackend.a ; else true
; fi
gcc -DCROSS_COMPILE -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-protot
ypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  -o cc1.exe \
 c-parse.o c-lang.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o
c-common.o c-semantics.o c-dump.o libcpp.a  toplev.o libbackend.a obstack.o       -ladvapi32
../libiberty/libiberty.a
c-parse.o: In function `yyerror':
/tmp/build/gcc/gcc/c-parse.y:2344: undefined reference to `_imp__gettext'
c-decl.o: In function `finish_struct':
/src/gcc/gcc/c-decl.c:5349: undefined reference to `_imp__gettext'
/src/gcc/gcc/c-decl.c:5352: undefined reference to `_imp__gettext'
/src/gcc/gcc/c-decl.c:5363: undefined reference to `_imp__gettext'
/src/gcc/gcc/c-decl.c:5363: undefined reference to `_imp__gettext'
c-typeck.o:/src/gcc/gcc/c-typeck.c:3340: more undefined references to `_imp__gettext' follow
toplev.o: In function `main':
/src/gcc/gcc/toplev.c:4538: undefined reference to `_imp__bindtextdomain'
/src/gcc/gcc/toplev.c:4539: undefined reference to `_imp__textdomain'
toplev.o: In function `print_switch_values':
/src/gcc/gcc/toplev.c:4989: undefined reference to `_imp__gettext'
/src/gcc/gcc/toplev.c:5018: undefined reference to `_imp__gettext'
libbackend.a(timevar.o): In function `timevar_print':
/src/gcc/gcc/timevar.c:428: undefined reference to `_imp__gettext'
/src/gcc/gcc/timevar.c:476: undefined reference to `_imp__gettext'
libbackend.a(timevar.o): In function `print_time':
/src/gcc/gcc/timevar.c:514: undefined reference to `_imp__gettext'
libbackend.a(diagnostic.o):/src/gcc/gcc/diagnostic.c:917: more undefined references to
`_imp__gettext' follow
collect2: ld returned 1 exit status
make[1]: *** [cc1.exe] Error 1
make[1]: Leaving directory `/tmp/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/gcc'

----------- clip --------------

I think it has something to do will shared libraries more than that I don't know.


I am using the following version of gcc.

/src/gcc [532] gcc -dumpversion
2.95.2-4
/src/gcc [533] gcc -dumpmachine
i686-pc-cygwin


Robert Melchers
==========

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-12-22  2:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-22  2:51 undefined reference to `_imp__gettext' Robert
  -- strict thread matches above, loose matches on Subject: below --
2000-12-20  5:45 Robert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).