C Library is broken

When I try to compile my C programs, it gives me this bizarre error:
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../lib64/crt1.o(.text+0x20): error: undefined reference to 'main'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can I fix this? I've tried setting the env variable CPATH="/usr/local/include", but it didn't change anything. Both gcc and clang give me this error.

It's pretty easy to replicate this error.
$ touch foo.c
$ clang foo.c
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../lib64/crt1.o(.text+0x20): error: undefined reference to 'main'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Your program is not a program without a function called "main" somewhere.

Similar Messages

  • Rebilding Library, then Broken Pla

    My stupid Zen Microphoto would rebuild its library a lot. When i'm mowing the lawns, walking to school, coming down the stairs, sitting down etc. Just when i'm doing normal everyday thing, not being rough. I got sick of it one day. REEEEEALY SICK OF IT! and took the battery out when it was doing it. Now its broken. It can't read the HDD disc. SO i t wont get past the "creative" welcome screen. It can still charge. I can still accesss recovery mode, but because it cxant read the disc it cant do anything. Cant connect to computer either. What should I do!?

    GlenZEN wrote:
    Is it still under warranty?
    The player is out of warrenty and there is nothing happening, no lights no indication of power etc. It just will not come on. Thanks for your help Mark

  • Library Alias Broken

    Within the Network icon, I have two aliases. One is for Library and the other is for Servers. The Library alias is broken. Where is the original file so I can fix the alias?

    That is how things are supposed to be. There should be nothing in the /Network/Libary location unless you are on a Mac OS X Server network and are logged in as a user in Open Directory, and that user has special mount points set up to appear in /Network/Library on log in.
    Other Macs will appear in /Network/My Network/ and Windows computers will appear in /Network/<Workgroup_Name>/ where "<Workgroup_Name>" is the name of the workgroup to which the PC belongs. (Macs with Windows sharing turned on will also appear under /Network/WORKGROUP/ unless their default Windows Workgroup was changed in Directory Access.)

  • HT1329 How can I get my old music library onto my new computer when my old laptop with all the library is broken?

    My old laptop had all my music library on it and I have no back up. I have gotten a new laptop (a PC not MAC) and really need my music onto my iphone, please help!!

    Depending on what the problem with the laptop is, you could take the hard drive out of the laptop and put it into an external hard drive caddy (laptops uasally use 2.5" drives). This should allow you to access all the files on the drive however if the hard drive is damaged you will have a harder time recovering the files.

  • Changing music library from broken external to a second external

    My itunes library is(was?) housed in an Iomega external drive.  It's on the fritz...dunno what's up.  I back that drive up every couple of weeks to another external drive...a Seagate. Not the library per se, but all the band folders.  So, all the songs (except those since my last backup) that are in my  screwed-up Iomega are also in my Seagate # 2 external.
    If I go into iTunes preferences now, it says my iTunes media folder location is : /Users/xxxxx/Music/iTunes/iTunes Media
    If I recall correctly, it said it was in the Iomega when the Iomega was functioning.
    I have a feeling this isn't as simple as changing the iTunes media folder location in iTunes preferences to the Seagate drive.
    Will iTunes magically recognize all my songs and from that point forward will all new songs go to the Seagate?
    In the Seagate, songs are are housed in an "iTunes Media" folder.  If I recall correctly, that was the name of the Iomega folder, too.

    All preferences does is tell iTunes where to start storing media from that point on.  It doesn't actively update your media information in iTunes.
    Now you say your library was housed on the iomega.  Do you really mean that?  A library is everything in the iTunes folder including the all-important iTunes Library.itl file.  The .itl file contains all the information about tracks you have entered into the iTunes database, where they are located, your playlists, ratings, play count, etc.  If you had that on your internal drive (your "library" wasn't really on the external, only media) it may be possible to re-link the references to the actual files.  If your iTunes is no longer using that and all you are seeing right now is a blank iTunes window then you are back to building your library from scratch.  Oh, you still have the media and can add that, but all else is lost.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391

  • All files in 70gb+ library have broken link after 7.3 upgrade. oh man.

    I was fine and dandy with 7.2 running on my MBP. Life was good. I upgraded to OS 10.4.10 and iTunes 7.3 on the same day to get it talkin' nice with my iPhone and then BAM!! -- all of the tracks in iTunes were stricken with the hideous ! enclosed in a heinous circle of death. oh man oh man. All of them, too. I can't find a single track that works.
    My iTunes Library file is on my MBP but my music is on an external drive (and has been happily for a couple of years). I've been waiting for a fix from Apple but no dice. I'm itchin' like crazy here. What can I do (about my iTunes library, not the itching)?
    Sincerely,
    Desperate for Conway Twitty to ring proudly through my house once again.
    MBP 2.33 GHz, 2 gig RAM Mac OS X (10.4.10)
    MBP 2.33 GHz, 2 gig RAM Mac OS X (10.4.10)

    Seems to me I asked the same question a little earlier, as my files are in my laptop but on a partition that doesn't have the OS.
    I did what Niel suggested, maybe I'm not getting something but in /Volumes/ folder I could see both my drives/partitions aliases, nothing else. ??
    macbook intel 2,16 GHZ core 2 duo   Mac OS X (10.4.9)  

  • Safari save image to iPhoto library still broken?

    I have also run across the problem where I choose (right click in Safari) to save an image to the iPhoto library and the only thing that happens is that iPhoto opens. The image is not saved. I have done this on 8 different machines now, all running 10.4.2 with the latest Safari and iPhoto and all do the same thing. I see this has come up for discussion here before and it doesn't look like Apple has solved this yet. Does anyone have any idea of how this can be fixed?

    Hi Arthur, I've been trying to figure this issue out for MONTHS. I gave up a while ago but have now found the solution! At least for me this works, some steps may not be necessary but this is what worked for me:
    1) Backup your iPhoto Library and then move it to the desktop (or just move it to the desktop)
    2) Backup your iPhoto LIbrary plist file (located in ~user/library/preferences or move it to the desktop (its called: com.apple.iPhoto.plist)
    3) Delete iPhoto from the Applications folder and reinstall JUST iphoto from the iLife 05 disc
    4) Repair permissions with the Disk Utility App
    5) Launch iPhoto and then quit (this will create a new library folder and plist file
    6) Download the iPhoto 5.0.4 updater and install, repair permissions again
    7) Then, move your backed up (or if you just moved it to the desktop) iPhoto library folder back to the Pictures folder replacing the new one that was created and do the same for the plist file you backed up
    8) Finally, launch iPhoto again and it should work, let me know, good luck.

  • HT5037 why is the link to the library updater broken??

    I try to open iPhoto and can only choose between Quit and Learn More.   The latter takes me to a page saying I need a utility to update my iPhoto library and gies a download link.  Which takes me to a not found page.
    Anybody else had this problem?

    Thanks for your quick reply!
    I have the latest version of iPhoto.  Yesterday I was able to get through to an Apple rep.  Turns out somehow my iPhoto was pointed to the wrong files for my photo library and somehow it thought I'd recently upgraded...or some such thing.
    In any case, the fix turned out to be to double-click on the iPhoto library, rather than the app's icon, to start iPhoto.  Doing that once rebuilds the connection between the app and the library.
    Go figure.

  • Help? Library module broken!

    I use a MacBook Pro and Lightroom 5. My options in Library module to edit have disappeared and now have only gray on both sides of my photo. How can I get back the menu to edit from Library module? Thanks, Mark

    Try hitting the tab key.

  • IMacIntel migration problem: iTunes library broken

    I recently upgraded my 500mHz TiBook to a shiny white 17" iMac. Overall it has gone smoothly, except for iTunes. My TiBook had a hard drive condition that precluded a direct transfer, so I had to clear a partition on an FW drive and use SilverKeeper to put the data from my TiBook on a clean drive. In the process I moved my iTunes library, which was on that drive, to a subdirectory on another FW drive. Now my library is broken. It does show all of the songs, but there is an exclamation point before the name and upon clicking on one I'm prompted to find it.
    Again, ALL THE SONGS IN MY LIBRARY ARE DISPLAYED IN iTUNES, so it's unfortunately not just a matter of reimporting the XML file. (I've tried that.) Also, the library is now broken on the TiBook, too. (If this post needs to be moved to the iTunes section, sorry about that.)
    Is there a solution to get iTunes to find all my songs? I'd hate to lose my playlists and sync preferences for my iPods. As I have just under 17,000 songs in my library I'm not going to manually point it to each one, either....

    Just for the record, should anyone else have this problem here's how I fixed it.
    1) I exported all of my playlists to XML files.
    2) I deleted my iTunes library.
    3) I reimported all my songs.
    4) I reimported all my playlists.
    All things considered, it didn't take too much time to fix - gotta love the speed of that SATA hard drive! - and the only downsides are that I lost info from the "Date Added" and "Play Count".
    17" InteliMac, rev. A Mac mini G4, rev. A 17" iMac G5, 500mHz rev A TiBook   Mac OS X (10.4.6)  

  • Library/system/coreservices broken & WIFI Signal strength

    i have a strange problem in my WIFI signal - it fluctuates almost exactly every 30 secs from EXC to poor - i have used a program WIFI Scanner/Signal to monitor.  Veriozon FIOS says there is no Modem problem.
    In looking for a signal monitor, i was diredted to look in the Library/Coreservices but this is not available in the library.  When i do a Disk Verify it indicates that the library is broken and will not be repaired.
    Can it be repaired or replaced or what is my WIFI signal problem??

    About Wireless Diagnostics

  • My Mac is telling me that my disk is full. I have bought an external hard drive and have just listened to a youtube tutorial on how to move iTunes library to the external hard drive. If I do this can I still load new media on my Mac without the external?

    my Mac is telling me that my disk is full. I have bought an external hard drive and watched a youtube tutorial on moving iTunes library to external hard drive. Will I still be able to use iTunes on my Mac for new media or will this now only work through my external hard drive?

    To do this you need to learn the details of how iTunes works.  For example, you just said, "leave my iTunes on my computer".  iTunes is the application itself so of course it has to be on your computer.  That said, I therefore don't know what you mean when you say leave iTunes on your computer.  The phrasing of your question suggests to me, if I may be frank, you don't understand how iTunes works fully and we can't just give you a "do this" answer and have it work out.  It would be too easy to make a mess of things.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391
    Yes, you can download media and delete it again (but if it is from the iTunes Store there is the possibility you can't always download it again).  Of course if you want to keep a copy you can archive it.  I have done that with some files for which I have no room on my computer.  I transfer them to an external hard drive and delete the reference to the file (but not the file itself) from my library.  If I want a quick listen I go to the file on the drive and use Quicktime player or something else non-iTunes so I don't have to have it added to iTunes and delete again.  I don't know if that is the solution you are looking for.  I could leave the reference in iTunes but if the file can't be located by iTunes it will tell me there is a broken link = !  I guess I could live with that except I periodically scan my library for broken links and don't want it getting confused with ones I have done deliberately and ones suggesting I am really missing a file somewhere.
    Another possibility is to make a second iTunes library for material you are archiving and only use that library when the computer is using the external drive.  There are tricky aspects to dong that but it is a possibility too.
    The simple solution for most people with computers with tiny drives (as most seem to be these days) is to put their whole iTunes library on an external drive and use it from there.

  • ITunes can't locate ⅔ of my Music Library -- How to repair?

    I manually reorganized the iTunes Media Folder on my MacBook Air because everything was all jumbled up in the Music folder -- Songs, Movies, Mobile apps etc. everything all mixed up in Music folder. I manually dragged the Movie, iTunes U, Mobile Applications  etc.Folders out of Music Folder and put everything into iTunes Media Folder. The same order as it is on my desktop iMac. Now iTunes can't locate about 1/2 of my Music library. Everything else (movies, TV shows etc.) works fine, but iTunes lost the location of 1/2my music library. I get the message "The song "ABC" could not be used because the original file could not be located. Would you like to locate it"
    Is there a way to reset iTunes so that it knows where all the songs are (they are all in the music folder which is in the iTunes Media Folder). If I have to locate every song individually it will take weeks. 
    File ->Library ->  Organize Library -> click Consolidate and Reorganize files in iTunes Media didn't seem to work. Isn't this the way to let iTunes know where all those songs it can't locate are?
    Kindly advise if you know how to slove this.
    Thank you.
    P.S. Still using Mountain Lion on this computer

    I manage my music manually by turning off the advanced preferences for iTunes managing my music and copying it to the iTunes folder when adding it to the library.  Realize if you do this you are taking responsibility for keeping track of your music -- you will have to be organized.  If you want to move your library you will have to track down all the files. Your files will retain their original names and folder names and structure, so make sure it makes sense.  There's a few other disadvantages which I can't remember right now.  Even with manually managing you still occasionally get a broken link, and my experience is all with iTunes 7.5 which I still use.  I may be wrong but I suspect newer versions of iTunes are trying to do more at one time with all the store and cloud interface and may be more "delicate".
    If you are downloading from Apple or ripping a CD, iTunes will put it in its normal folder structure anyway, though you can remove it from there.
    The various scripts on the Dougscripts web site were written at different stages.  You have to read about iTunes version compatibility in the blurb about each script.  I don't see how you end up with multiple libraries using hte scripts.
    The .itl file can reset itself but not with what you are doing.  If you had moved your whole library and broken all the links you could have found just one and iTunes might have offered to find the others based upon the same structure (not something it will do if you manually manage, by the way).

  • A LOT of iTunes broken links/tracks after Music folder move...

    So yeah, I'm getting a TON of broken links / dead track links in iTunes after having to do two things to my iTunes install recently and I'm at wits end trying to fix it.
    I keep my iTunes Music Folder on an external and share the iTunes library between my work Macbook Pro and my home Macbook. Every Friday I drag my iTunes folder and all contents from my MBP onto an external and replace the iTunes folder on the 'weekend' MB, then do the same back on Monday. I keep my iTunes music 'View' as 'Date Added' so that I can always be listening to whatever is newest. It's how I roll.
    Well, this week I had some data problems during the transfer and had to use a previous week's iTunes Music Folder, which was fine as I hadn't added much this week.
    I also got a new external because the old one was getting a little shady, so after doing the iTunes Music Folder replacement I moved my music all over to a new external drive, told iTunes where it all was at. iTunes did it's thing, 'organized' my stuff and all seemed good - until I got back deeper into the catalogue of music and started getting a LOT of broken tracks. The songs are still there, in the correct folders and all, but for some reason iTunes isn't finding them.
    When I say a LOT, I mean so far it's hundreds of my 13,000 songs.
    Now I COULD use the 'Super Remove Dead Tracks' script from Doug's to find all the broken files then re-add the whole library, but it will add all the old songs out of order because they will get a new 'Added' date.
    I could also manually move thru my whole library holding down the arrow key for 'Next' to find all the broken links then go thru, select them, and use the 'iTunes Track CPR' script from Doug's to re-add them to the library with ratings intact, but still they will be out of order time-wise.
    I cannot find a script that will parse my library, find broken links, and re-associate them with their tracks, nor can I figure out why this happened and any other way to fix it. Repairing permissions hasn't helped. Any other ideas?

    Just to follow up with a more comprehensive example of looping through a Library to detect & repair "missing" file-tracks:
    <pre>
    property kErrAENoSuchObject:(-1728)
    on run
    tell (application "iTunes")
    set theLibraryPlaylist to (first library playlist)
    tell theLibraryPlaylist
    set theNumCandidateFileTracks to (count (every file track))
    repeat with i from 1 to theNumCandidateFileTracks by 1
    -- Get a reference to this file-track
    set thisFileTrackRef to (file track i)
    -- Get this file-track's info (useful for debugging, etc.)
    set thisArtist to (artist of thisFileTrackRef)
    set thisAlbum to (album of thisFileTrackRef)
    set thisName to (name of thisFileTrackRef)
    set thisFileTrackInfo to (thisArtist & " > " & thisAlbum & " > " & thisName)
    -- Display a diagnostic message every 500th file-track
    if ((i mod 500) = 0) then
    tell me
    display dialog ("Checking file-track #" & i & ": " & ¬
    return & return & thisFileTrackInfo) ¬
    buttons {"Cancel", "•"} giving up after 2.5
    end tell -- me
    end if
    -- Retrieve this file-track's target file (an AS 'alias' object), if any
    -- {!!! NOTE: Due to a bug in iTunes 7.x+ (esp. when downloading), AS might
    -- be unable to access the 'location' field of some file-tracks !!!}
    try
    set thisFileTrackTargetFile to (location of thisFileTrackRef)
    on error errMsg2 number errNum2
    -- Check whether it's that bizarre error: (-1728) "Can't get location of …"
    if (errNum2 = (kErrAENoSuchObject of me)) then
    -- Set up to just skip this track (assume it's being downloaded)
    set thisFileTrackTargetFile to (anything) -- (Other than 'missing value')
    else (* Re-signal all other errors *)
    error errMsg2 number errNum2
    end if
    end try
    -- Check whether this file-track is "missing" its target file
    if (thisFileTrackTargetFile = (missing value))
    -- Inform the user
    tell me
    display dialog ("Repairing this missing file-track: " & ¬
    return & return & thisFileTrackInfo) ¬
    buttons {"Cancel", "•"} giving up after 2.5
    end tell -- me
    -- Set up this target file's new pathname (e.g., via explicit user input, or
    -- better yet automatically reconstructed from this file-track's tags such
    -- as Artist, Album, Name, Kind, etc.)
    -- ... Translate this file-track's kind into a filename-extension
    set thisKind to (kind of thisFileTrackRef)
    set thisNameExt to "m4a" -- ... Default
    if ({thisKind} is in {("Protected AAC audio file")}) then -- Older DRM'd file
    set thisNameExt to "m4p"
    else if ({thisKind} is in {("MPEG audio file")}) then -- MP3
    set thisNameExt to "mp3"
    else if (thisKind contains "movie file") then -- E.g., interactive booklet
    set thisNameExt to "mov"
    end -- (thisKind = "MPEG audio file") ... else if ... else ...
    -- ... Auto-build this target file's new pathname
    set thisTargetFileNewPathname to ("New Disk:New Path:" & ¬
    thisArtist & ":" & thisAlbum & ":" & thisName & "." & thisNameExt)
    -- Assign this new target file (as an AS 'alias' object) to this file-track
    -- (This is the crucial step that was impossible in older versions of iTunes!)
    set (location of thisFileTrackRef) to (alias thisTargetFileNewPathname)
    end if -- (thisFileTrackTargetFile = (missing value))
    end repeat -- with i from 1 to theNumCandidateFileTracks by 1
    end tell -- theLibraryPlaylist
    end tell -- (application "iTunes")
    end run
    </pre>
    Regards,
    --P

  • Upgrading of photo library from iphoto 8.1.2 to 9.6

    I have had my photo library running on an external disk on my old iMac with iphoto 9 (8.1.2) running. I just bought a MacBook with iPhoto 9.6 installed. I wanted to switch my external disk to the MacBook, and when I did so I got prompted with: "The photo library needs to be upgraded to work with this version of iPhoto". I clicked upgrade, and the the machine proceeded to upgrade, but with the window stuck on: "Rebuilding thumbnail cache". I am not able to connect iPhoto 9.6 with my photo library on the external disk. Any suggestions how to resolve this?

    I have no backup.
    <insert obligatory lecture on the importance of backing up, especially before updating anything right here>
    There are no guarantees now, as the process of upgrading the Library has broken down. The break might be trivial or terminal, it's in the lap of the gods.
    Quit iPhoto. That upgrade is in trouble and won't complete.
    Make a back up now - at least we can stop things getting worse.
    Then:
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Worth a try...

Maybe you are looking for

  • Itunes will only allow me to sync voice memos and not the music library...

    This is the screen I get when I'm pugged in to USB to my computer, iPhone 6s and my iPad Mini.  Have to manually download each song and the iPad used to sync.  iTunes match is actually off too. OS X 10.10.1 Itunes 12.0.1.26 Anyone know what's going o

  • State wise VAT Report?

    HI All, Is there any report which shows state wise vat report, this is required for set off vat input v/s vat out put in a particular state. in our scenario we dont have any manufacturing plant, we are traders so we created each state as a plant. so

  • HP Deskjet F4280 prints blank pages on Macbook

    Hello, My printer came with a macbook I bought in 2008 and worked wonderfully for years. Out of nowhere it stopped printing or making copies. The printer acts like it is doing the action but the pages come out blank or with spotty black marks where t

  • Customizing toolbars

    I am completely confused as to how to customize the toolbars in Adobe Acrobat XI pro. First off, I want to remove a bunch of buttons. Create, the open file button, cloud button, print button, Signature button, Send as attachment button, Sign button,

  • Reinstalling Pearl 8100 issues

    Hi everybody. I'm trying to upgrade the device software to 4.5.0.37 but I cannot do it. Probably my phone has some hardware problems. While reinstalling with AppLoader the process is the following: - Connecting with ROM - Deleting old files - Loading