On Thu, Sep 12, 2002 at 12:03:10PM +0200, Jean-Marc Lasgouttes wrote:
> >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
> 
> Angus> On Wednesday 11 September 2002 3:56 pm, Jean-Marc Lasgouttes
> Angus> wrote:
> >> >>>>> "Albert" == Albert Chin >>>>>
> >> <[EMAIL PROTECTED]> writes:
> >> 
> Albert> On Thu, Aug 22, 2002 at 01:11:04PM -0500, Albert Chin
> Angus> wrote:
> >> >> Is there suppose to be src/frontends/Dialog.C and >>
> >> src/frontends/xforms/Dialogs.C? When >>
> >> src/frontends/libfrontents.la gets created, only one of the >>
> >> Dialogs.o files will be added to the archive.
> >> 
> Albert> Oops, src/frontends/Dialogs.C.
> >>  Lars, Angus, could you answer to Albert? This looks like a serious
> >> problem (although I have both instances of Dialogs.o in my
> >> frontends library).
> >> 
> >> JMarc
> 
> Angus> why is it a problem? he's talking rubbish or lyx would not
> Angus> link. A
> 
> Angus: if I were you, I would not question Albert's knowledge on
> building programs on proprietary unices. It is his job, after all :) I
> presume this hapens with some versions of ar.

:)

> Albert: did you solve this particular problem?

I made a change similar to how you handle Alert.C:
  $ cd src/frontends
  $ find . -name Alert\*
  ./Alert.C
  ./Alert.h
  ./Alert_pimpl.h
  ./xforms/Alert_pimpl.C
  ./qt2/Alert_pimpl.C

Is "pimpl" for "private implementation"?
  $ find . -name Dialogs\*
  ./Dialogs.C
  ./Dialogs.h
  ./xforms/Dialogs.C
  ./qt2/Dialogs.C
  ./gnome/Dialogs.C

So, I did:
  $ cd src/frontends
  $ mv ./xforms/Dialogs.C ./xforms/Dialogs_pimpl.C
  [modify src/frontends/xforms/Makefile.am and change
   Dialogs.C to Dialogs_pimpl.C; run automake]

Note that I never experienced any problems building with the duplicate
Dialogs.C. I just checked the output of 'ar' and it does store
duplicate Dialogs.C files and the linker manages this fine:
  $ cd src/frontends
  $ ar t .libs/libfrontends.a | grep Dialogs.o
  Dialogs.o
  Dialogs.o
  $ nm --demangle lyx | egrep 'Dialogs::add|Dialogs::tooltipsEnabled'
  002d175c T Dialogs::add(DialogBase*)  # from src/frontends/Dialogs.C
  002d2ad0 T Dialogs::tooltipsEnabled() # from src/frontends/xforms/Dialogs.C

So, ignore my report :) But why aren't there duplicate Alert.C files?

-- 
albert chin ([EMAIL PROTECTED])

Reply via email to