fam
[Top] [All Lists]

Re: [fam] Class names

To: bastian@xxxxxxx
Subject: Re: [fam] Class names
From: "Rusty Ballinger" <rusty@xxxxxxxxxxxxxxxxxx>
Date: Mon, 15 May 2000 13:33:34 -0700
Cc: fam@xxxxxxxxxxx
In-reply-to: Waldo Bastian <bastian@xxxxxxx> "Re: [fam] Class names" (May 12, 5:08pm)
References: <00051111202002.21991@wantelbos> <10005111728.ZM35420@xxxxxxxxxxxxxxxxxx> <0005121708020C.17904@wantelbos>
Reply-to: rusty@xxxxxxx
Sender: owner-fam@xxxxxxxxxxx
> > libfam should export only the symbols listed in fam.h.  I know how to do
> > this with SGI compilers; does anyone know how to do it with g++/GNU ld?
>
> I suggest you use libtool's -export-symbols option. It should take care of
> any platform-dependencies.

Yes, that's exactly what I want.  Thanks!

Except... I tried adding a "fam.sym" file containing the symbols which
should be exported, and "-export-symbols fam.sym" to libfam_la_LDFLAGS in
libfam/Makefile.am, and I can see that automake is passing the
-export-symbols flag to libtool with --mode=link, but libtool doesn't appear
to pass the right argument on to the linker (this is using SGI compilers on
IRIX--it should pass "-exports_file fam.sym").  Does this sound like a
problem with libtool, a misconfiguration, or luser error?

It looks like it might be doing the right thing on Linux, but I didn't get
any linker warnings there before; you want to try this and see if it fixes
your problem?  The contents of fam.sym should be:
    FAMCancelMonitor
    FAMClose
    FAMDebugLevel
    FamErrlist
    FAMErrno
    FAMMonitorCollection
    FAMMonitorDirectory
    FAMMonitorDirectory2
    FAMMonitorFile
    FAMMonitorFile2
    FAMNextEvent
    FAMOpen
    FAMOpen2
    FAMPending
    FAMResumeMonitor
    FAMSuspendMonitor

--Rusty

--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>