Re: libtool dll creation (mingw32 undefined symbols)

2007-04-30 Thread Ralf Wildenhues
Hello John,

in addition to Brian's answer:

* John Brown wrote on Sat, Apr 28, 2007 at 04:39:33PM CEST:
 
 Should I tell the libamrnb maintainer that configure needs to add 
 -no-undefined
 on Windows,

Yes, you should.

 or Windows users should configure with LDFLAGS=-no-undefined?

No.  Because configure also uses LDFLAGS for links without libtool (for
example AC_CHECK_LIB), which would then likely fail with a linker error
(because it does not understand -no-undefined).  A decent workaround
would be
  ./configure
  make LDFLAGS=-no-undefined

 I just want to know if this behaviour is a bug or a feature.

Intended, so not a bug.

Hope that helps.

Cheers,
Ralf


___
http://lists.gnu.org/mailman/listinfo/libtool


Re: libtool dll creation (mingw32 undefined symbols)

2007-04-19 Thread Ralf Wildenhues
Hello Richard,

Please keep the libtool list in Cc:, thanks.

* richard wrote on Thu, Apr 19, 2007 at 05:45:01PM CEST:

 Typo: -no-undefined (just one leading hyphen).
   
 thanks a lot Ralf, this was the only error. the dll compiles and i get a 
 running .exe in ./libs (tested with wine and winXP). hurray.
 Actually i thought long parameters are supposed to start with -- or at 
 least there should be an error about a undefined command line switch.

Yep, there isn't, I guess there should be.  But the way libtool works
it's almost impossible to do without lots of noise: link mode only
allows very few arguments through to the linker command line unchanged,
and of those that it drops/needs to drop, it cannot know whether they
would have raised a warning or an error with the system's compiler or
linker, respectively.

Cheers,
Ralf


___
http://lists.gnu.org/mailman/listinfo/libtool


Re: libtool dll creation (mingw32 undefined symbols)

2007-04-19 Thread richard

(resend, because i forgot to CC the list)

Typo: -no-undefined (just one leading hyphen).

  

thanks a lot Ralf, this was the only error. the dll compiles and i get a
running .exe in ./libs (tested with wine and winXP). hurray.
Actually i thought long parameters are supposed to start with -- or at
least there should be an error about a undefined command line switch.

Look at the mdemo test sources, that's a test that uses libltdl.  Is
that a little better?

  

Oh great, I will look into this.

AC_C_CONST
  

FWIW, I don't think you need AC_C_CONST nowadays.
  

I think this one got added out of panic and frustration - i will remove it.
Thanks again,
Richard




___
http://lists.gnu.org/mailman/listinfo/libtool


Re: libtool dll creation (mingw32 undefined symbols)

2007-04-18 Thread Ralf Wildenhues
Hello Richard,

* richard wrote on Tue, Apr 17, 2007 at 11:18:24PM CEST:
 
 I'd like to start slow by just crosscompile a executable and a dynamic 
 library,
 but i fail at building the .dll with libtool complaining about
 libtool: link: warning: undefined symbols not allowed in 
 i586-pc-mingw32msvc shared libraries
[...]
 The --no-undefined is set for the library,

Typo: -no-undefined (just one leading hyphen).

 i would be very thankful for an simple howto or demo program which 
 accomplishes what i am trying to do.
 I took a look at the libltdl sources, because they compile perfectly as 
 a dll, but did not manage to get much out of it.

Look at the mdemo test sources, that's a test that uses libltdl.  Is
that a little better?

 AC_C_CONST

FWIW, I don't think you need AC_C_CONST nowadays.

Cheers,
Ralf


___
http://lists.gnu.org/mailman/listinfo/libtool