How do you compile shared dynamic library in OS/X?

I am trying to compile a open source component in OS/X (gcc, ANSI C) from the following makefile:
include makefile_header #standard system makefile variables in this
# include additional makefile headers here
# add needed cflags here
DSI_CFLAGS=$(GLOBUS_CFLAGS)
# add needed includes here
DSI_INCLUDES=$(GLOBUS_INCLUDES) -I/opt/bes/include/bes
# added needed ldflags here
DSI_LDFLAGS=$(GLOBUS_LDFLAGS) -L/opt/bes/lib -L/opt/bes/lib/bes
# add needed libraries here
DSI_LIBS= -lbes_ppt -lbes_dispatch
FLAVOR=gcc32dbg
globus_gridftp_server_bes.o:
$(GLOBUS_CC) $(DSI_CFLAGS) $(DSI_INCLUDES) \
-shared -o libglobus_gridftp_server_bes_$(FLAVOR).so \
globus_gridftp_server_bes.c \
$(DSI_LDFLAGS) $(DSI_LIBS)
install:
cp -f libglobus_gridftp_server_bes_$(FLAVOR).so $(GLOBUS_LOCATION)/lib
#end makefile
-shared is not recognized by OS/X's gcc variant. Substituting -dynamiclib or -bundle does not seem to be correct method (errors). How should I go about changing the compile command so that it will build me the libglobus_server_bes_gcc32.so lib file?
Thanks.
--Stephan
Macbook Pro, Powerbook G4   Mac OS X (10.4.9)   *NIX OSS developer

I get the following compile message:
/usr/bin/gcc -g -m32 -fno-common -Wall -I/usr/local/globus/include/gcc32dbg -I/opt/bes/include/bes \
-o libglobusgridftp_server_besgcc32dbg.so \
globusgridftp_serverbes.c \
-L/usr/local/globus/lib -L/usr/local/globus//lib -m32 -L/opt/bes/lib -L/opt/bes/lib/bes -lbes_ppt -lbes_dispatch
In file included from /usr/local/globus/include/gcc32dbg/globus_common.h:58,
from /usr/local/globus/include/gcc32dbg/globusgridftpserver.h:26,
from globusgridftp_serverbes.c:12:
/usr/local/globus/include/gcc32dbg/globuscommoninclude.h:28: error: syntax error before 'extern'
make: * [globusgridftp_serverbes.o] Error 1
The compile command with -shared works in linux, no error in globuscommoninclude.h as above.
globuscommoninclude.h upto the error:
#if !defined(GLOBUSCOMMON_INCLUDEH)
#define GLOBUSCOMMON_INCLUDEH 1
#include "globus_config.h"
#ifdef _GNUC_
#define GlobusFuncName(func) static const char * globus_funcname \
_attribute__((__unused_)) = #func
#else
#define GlobusFuncName(func) static const char * globus_funcname = #func
#endif
extern const char * globus_funcname; //<- error on this line
<br>
Macbook Pro, Powerbook G4   Mac OS X (10.4.9)   *NIX OSS developer

Similar Messages

  • When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???

    When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???  All of the songs that were put on there from a CD will sync, but the songs that were purchased.. "cannot be found"   How can we merge them?? or how can we share all songs.. purchased or not!

    When you have 1 itunes library.. and 2 ipods.. different names.. how can you share the same library???  All of the songs that were put on there from a CD will sync, but the songs that were purchased.. "cannot be found"   How can we merge them?? or how can we share all songs.. purchased or not!

  • How do you copy your iphoto library to ext. hard drive?

    I am sorry to ask this lame question, but: How do you copy your iPhoto library to an external hard drive, just to back it up? I'm confused, because of three things: a) I can't seem to find, in iPhoto pref's, where you select what the "path" is to the library; b) in the iPhoto library folder on my computer (which is NOT on my boot drive, but a different internal drive..) the newest "year" folder in there says 2005, yet we have imported many newly-taken photos for the last 3 years, AND c) in the user>Pictures folder there is a "file" called iPhoto Library, but I can't quite figure out exactly what that is, what it does, etc.
    So, I apologize, but if someone can help me figure what I would like to think should be a very simple backup, I would be grateful. Thank you very much.

    I am sorry to ask this lame question, but: How do you copy your iPhoto library to an external hard drive, just to back it up?
    Drag it to the external drive
    a) I can't seem to find, in iPhoto pref's, where you select what the "path" is to the library;
    There not one - you change the path by launching iPhoto while depressing the option (alt) key and using the select library option to repoint to a different libary - however you would not do this to a backup library - it would just be a copy
    b) in the iPhoto library folder on my computer (which is NOT on my boot drive, but a different internal drive..) the newest "year" folder in there says 2005, yet we have imported many newly-taken photos for the last 3 years,
    This is probably an unused older library - a backup for a previous version
    c) in the user>Pictures folder there is a "file" called iPhoto Library, but I can't quite figure out exactly what that is,
    That probably is your iPhoto library and it is probably not a file but a Unix style "package"
    Launch iPhoto and in events view select a photo and right click (control click) on it and select the show file option to see the path to the currently active library - I find the column view the easiest to see the path
    LN

  • How do you move your iphoto library to an external hard drive--step by step because I dont even know the basics--Help!

    I have no more space on my hard drive and my computer keeps freezing.  I would like to move my 10,000 photos from IPHOTO to an external hard drive but dont know how to do it.  I am reading answers to similiar questions but dont know how to do even the simplest instructions like "after you quit Iphoto how do you copy the iphoto library from our pictures folder to the external disk????"  Ugghhh I have no idea how to do this.  Please help a busy mom of three who sits here for an hour and just spins her wheels!!!

    Make sure the external drive is formatted Mac OS extended (journaled), quit iPhoto, drag the iPhoto library to the external drive, depress the option key, launch iPhoto and use the select library command to select the iPhoto library on the external drive
    Fully test the library. Once you are sure it is totally ok delete the old library - test one more time prior to emptying the trash
    Check and make sure that your backup system is backing up yor external drive
    LN

  • How do you move your music library from a laptop to a desktop? I have moved my library from a laptop to another laptop but can't figure out how to move music from laptop to desktop. Anybody know? Thanks

    How do you transfer your music library from itunes on a laptop to a desktop? I have transfered from one laptop to another and from desktop to laptop but can't figure out how to go from LAPTOP TO DESKTOP> Thanks

    Hello, Sandralee59. 
    Thank you for the question.  The attached article below provides multiple options for moving your iTunes library to a new computer. 
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Cheers,
    Jason H. 

  • HT4913 How do you download the entire library from match to a new computer?

    How do you download the entire library from iTunes Match to a new computer?

    Download each song individually.
    Or the faster method is to COPY the ENTIRE iTunes folder from the old computer or the backup of the old computer to the new computer.

  • How do you compile Flex-dependent classes with ASC?

    Hi,
    I've been trying unsuccessfully for most of the evening to compile a .as file that relies on mx.collections.ListCollectionView using asc. I figured I could just import the Flex framework SWCs from the command line with asc, but asc doesn't seem to respect SWCs - it only seems to respect .abc files.
    So, I've spent most of my time trying to compile the Flex framework into a single .abc file that I can import whenever I want to compile a class that relies on Flex. I figured I could make a base .as file with include statements for all of the Flex .as files (copying the approach I saw for files like builtin.as) and compile that, but all I seem to get are compiler errors - mostly "[Compiler] Error #1181: Forward reference to base class (base class name)."
    I have a feeling I'm doing this completely the wrong way. I'd very much appreciate any assistance that anybody can offer me.
    Thanks,
    - max

    <div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>I use MXMLC to compile my .as file projects.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Alex Harui<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Flex SDK Developer<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><a href="http://www.adobe.com/"><span style='color:blue'>Adobe<br />Systems Inc.</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Blog: <a href="http://blogs.adobe.com/aharui"><span<br />style='color:blue'>http://blogs.adobe.com/aharui</span></a><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Maxim Porges<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Monday, February 09, 2009 9:22 PM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> How do you compile Flex-dependent classes with ASC?<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new discussion was started by<br />Maxim Porges in <br><br /><br><br /><b>Developers</b> --<br><br />  How do you compile Flex-dependent classes with ASC?<br><br /><br><br />Hi, <br><br /><br><br />I've been trying unsuccessfully for most of the evening to compile a .as file<br />that relies on mx.collections.ListCollectionView using asc. I figured I could<br />just import the Flex framework SWCs from the command line with asc, but asc<br />doesn't seem to respect SWCs - it only seems to respect .abc files. <br><br /><br><br />So, I've spent most of my time trying to compile the Flex framework into a<br />single .abc file that I can import whenever I want to compile a class that<br />relies on Flex. I figured I could make a base .as file with include statements<br />for all of the Flex .as files (copying the approach I saw for files like<br />builtin.as) and compile that, but all I seem to get are compiler errors -<br />mostly &quot;[Compiler] Error #1181: Forward reference to base class (base<br />class name).&quot; <br><br /><br><br />I have a feeling I'm doing this completely the wrong way. I'd very much<br />appreciate any assistance that anybody can offer me. <br><br /><br><br />Thanks, <br><br /><br><br />- max <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b7d5d2">How do you compile<br />Flex-dependent classes with ASC?</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b7d5d2!folder=.3c060fa3">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>

  • How do you export your iphoto library from a mac air to an external hard drive to free up space on the mac air

    how do you export your iphoto library from a mac air to an external hard drive to free up space on the mac air

    Go to Pictures folder and copy the library to the external drive. Then, open iPhoto holding Option key and select the library in your external disk. Finally, delete the library on Pictures

  • HT1386 how do you sync songs from library on computer to ipod devise

    how do you sync songs from library on computer to new ipod device

    Connect the device.
    Select the content desired to be synced.
    Sync.

  • HT4527 How do you move your iTunes library to a new computer without access to your old computer?

    How do you move your iTunes library to a new computer without access to the old computer? The old computer id damaged and unavailable.

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • How do you generate a dynamic prompt in BO

    Hi,
    can anyone answer this question?
    How do you generate a dynamic prompt?

    Hi,
    Dynamic prompt means user can enter value  at run time (Report Refresh Time).
    You can create dynamic prompt by drag one object in the webi query filter part  and select as a prompt.
    or on the universe level define the pre-defined condition and use that in the webi report.
    Thanks,
    Amit

  • How do you access your itunes library from the icloud on your ipad

    How do you access your itunes library from the icloud on your ipad?

    You have asked two different questions?
    Your account is just a user name and password.  You can access that to buy content from any computer with itunes, just sign it.
    Your library wil only be where your put it. Yo can copy it from one computer to another, or from your backup copy of your computer ot another computer. In some countries you can download some past itunes purchases.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How do you upload your itunes library to another computer?

    How do you upload your itunes library to another computer, without deleting it through syncing? I want my itunes library put onto a new computer.

    Type "move itunes library" into the google search bar.

  • How can you share a iPhoto library with another account user

    I have recently seen the light and swapped from Windows to my lovely new iMac. However I am rather confused how I can configure my iPhoto library so my wife can view the same library in her account on the same machine (this was a simple thing within Windows, using shared folders). Am I missing something or do I have to duplicate the same library and place into my wife's account and then update each time we upload some photo's? Please help!

    This may not be the "neatest" solution possible, but it's one that works. Just as iPhoto makes it easy to share photos between computers on the same network, you can also share photos between accounts on the same computer; but you'll have to be logged in with iPhoto running.
    1) Configure iPhoto in your account for photo sharing (from iPhoto, select Preferences > Sharing> Share my photos).
    2) Enable fast user switching from System Preferences > Accounts > Login Options. This is the key to the process, which will allow you to remain logged in while your wife is also logged in. It's also a very handy feature if you and your wife use the computer a lot from your own accounts.
    3) Enable "Personal File Sharing" and "Remote Apple Events" from System Preferences > Sharing > Services. [I had already done this step, so I'm not sure if it's strictly necessary]
    4) With iPhoto up and running in your account, use Fast User Switching to log into your wife's account (ie, you remain logged-in). [The Fast User Switching menu will be in the upper right of the main menu bar.]
    5) From her iPhoto preferences, select Sharing > "Look for shared photos" if it's not already switched on.
    Your photos will magically appear in the left hand column of your wife's iPhoto application using the name you designated in your copy of iPhoto.
    Caveats: performance is not very good, you must be logged in and have iPhoto running, HP printers (if you have one) don't work well with fast user switching
    Other solutions might be possible by "drilling a hole" into your account by altering the Unix permissions. I've used this technique to make my iTunes library available to other users on my machine. Such a solution would no doubt improve performance.
    Finally, there are third-party products that allow you to manage multiple iPhoto libraries. I've never used these, but they might allow you to load the iPhoto library from another account assuming permissions are properly set.
    Hope this is of some use; I'm sorry if it's a little more complicated than you might have expected.

  • How do you compile multiple class files in a unix cmd prompt?

    I have been using Java for a few years now, but for some reason I have a course that requires us to compile/run and hand-in our java assignments using Unix...
    I know how to compile a simple program on unix with a single source file, but how the heck do you compile and run a program with say... 2 or more sources files linked together?
    I really doubt the answer is just type
    javac java1.java
    javac java2.java
    javac java3.java
    and then running the source file with the main in it.
    Hopefully someone here can help me.
    Thanks
    Roger

    okay, well I took some time to read up online how to do this and I guess i'll answer my own post just in case someone else wants to know the answer.
    2 ways I found were:
    1)For example, you can list all of the source file names in a file named sourcefiles. This file might look like:
    MyClass1.java
    MyClass2.java
    MyClass3.java
    You could then run the compiler with:
    % javac @sourcefiles
    2)Or if all the files are in the same directory you can do this:
    This example compiles all the source files in the package greetings.
    % ls
    greetings/
    % ls greetings
    Aloha.java GutenTag.java Hello.java Hi.java
    % javac greetings/*.java
    If that is confusing to read I found all the answers from this webpage:
    http://java.sun.com/j2se/1.3/docs/tooldocs/solaris/javac.html

Maybe you are looking for

  • How do I set my iPod's alarm volume separate from that of the other sounds?

    First of all, I tried to post this to the iOS Apps community, but there doesn't seem to be one for the Clock app. I wake up by the alarm feature on my iPod Touch, but sometimes the volume is turned down super low because throughout the day I have the

  • RH Taking Long Time to Load/Blinking Cursor

    Good morning, I am not for sure if this issue has been addressed but it is something I have run into multiple times on different versions of RH (currently on version 9). I have opened one of my RH projects and it is taking forever to "load" - I can c

  • Multiple images are blocky when converting from powerpoint to PDF?

    Heres my problem: If I have a powerpoint with ONE image (be it jpeg, gif, png, etc) they apper fine when you convert the document to PDF (via print>Print to PDF or by using the Acorbat plug in in Powerpoint). BUT If I have 2 or more images in a power

  • Transaction Launcher: Avoid log on Authentication or bypass by defaulting a generic username and password

    Dear Mates, Please find the requirement below, Due to limited users in ECC system, When launching an ECC transaction from CRM Web UI using Transaction Launcher functionality, the framework is prompting to enter user name and password. Now I need to e

  • XI system configuration

    Hi all, My department got new server with XI installed. As our IT-support team is unavailable at the moment, I was told to configure installed XI server. And now I'm completely embarrassed - I studied to use XI, but not to configure the system. Can a