[SOLVED] Ambiguous units found. lazarus / 31-LCL ---------------------------------------------------------------------- Hopestation · 2012-03-24 12:04 Hi. I am trying to install Lazreport 0.9.8, in lazarus 0.9.29. I have opened Install/Uninstall packages and selected Lazreport 0.9.8 in the right hand panel. When I click on the Continue button of Confirm new package_set for the IDE, I get an error message box with the message:- Ambiguous units found There are two units with the same name: 1: "C:\lzarus\lcl\chart.pp" from LCLBase 0.0.29 2: "C:\lzarus\lcl\chart.pp" from LCL 1.0 Both packages are connected. This means, either one package uses the other, or they are both used by a third package. I have chacked the "C:\lzarus\lcl directory and there is only one file called chart.pp. A search for Chart.pp in the lazarus dircetory shows there is a chart.ppu in the Units directory. How do I solve this problem? ---------------------------------------------------------------------- Leledumbo · 2012-03-24 12:53 This is one of the problems appeared when upgrading. I didn't really remember on which revision, but LCL apparently got separated into LCLBase and LCL. Your problem seems to be related to old LCL package. Try cleaning up $(LazarusDir)/lcl/units (manually if required) and recompile LCL package from the IDE. Restart IDE if required. ---------------------------------------------------------------------- Hopestation · 2012-03-27 10:11 Thanks, Leledumbo. I am not that proficient in Lazarus that your reply meant a lot to me so I searched Lazarus for LCLBASE and founf 4 occurences:- C:\lazarus\lcl\lclbase.lpk C:\lazarus\lcl\lclbase.pas C:\lazarus\packager\globallinks\lclbase-0.9.29.lpl C:\lazarus\docs\xml\lcl\lclbase.xml When I looked in lclbase.pas I saw that it referred to chart and contained register lclbase. Should I delete C:\lazarus\lcl\lclbase.lpk? ---------------------------------------------------------------------- Leledumbo · 2012-03-28 03:28 QuoteShould I delete C:\lazarus\lcl\lclbase.lpk?No, no, no. LCLBase SHOULD exist.  Old LCL = Current LCL + Current LCLBase. By cleaning up, I mean delete all .o, .ppu, .rst and .a from $(LazarusDir)/lcl/units. DON'T delete the .lpk. ---------------------------------------------------------------------- Hopestation · 2012-03-28 09:26 Thanks, Leledumbo. I have done what you said and deleted all the files you described in C:\lazarus\lcl\units\i386-win32. There are now two problems. 1. I now get a simillar message to the previous one but it now says chart.pp exists in LCL 1.0     and BaseLCL0.9.29. 2. I have a program that use DBF. Since deleting the files it will not compile and I get a              messsage saying "Fatal: Can't find unit LResourcesused by RegisterDBF". All the deleted files are in the Recycle directory so I can retrieve them. What should I do next? ---------------------------------------------------------------------- Leledumbo · 2012-03-28 12:37 QuoteI now get a simillar message to the previous one but it now says chart.pp exists in LCL 1.0 and BaseLCL0.9.29Hmm... try opening LCL package, ensure it doesn't have chart.pp listed (it should be in LCLBase only, otherwise you got everything mixed up between versions). QuoteI have a program that use DBF. Since deleting the files it will not compile and I get a              messsage saying "Fatal: Can't find unit LResourcesused by RegisterDBF".After deleting, you should recompile LCL (do it from package menu). ---------------------------------------------------------------------- Hopestation · 2012-03-28 13:07 Sorry for my ignorance. I have used Open Loaded Package and found LCL. Double clicking on it opens a new window, Package LCL, This has chart.pp in the list, with a green r/h arrow beside it. I tried renaming chart.pp to chart.pp.lcl in the LCL directory but this had no effect. I have downloaded lazarus-0.9.30.4-fpc-2.6.0-win32.exe. Will installing this solve the problem. I am currently using version 0.0.29 ---------------------------------------------------------------------- JuhaManninen · 2012-03-28 14:27 Hopestation, you have different versions of Lazarus sources mixed. Don't waste your time with it. Instead, remove the existing Lazarus source and installation. Then load the latest version from SVN. Later update directly from SVN and your sources will not get mixed. http://wiki.lazarus.freepascal.org/Getting_Lazarus Juha ---------------------------------------------------------------------- Hopestation · 2012-03-29 09:43 Thanks Juha. I have used the link in your message and got the "Getting Lazarus" page. I clicked on 1. Download and install Lazarus release version and got moved to the section: Download and install Lazarus release version .... Get Lazarus for Windows - use the Sourceforge link above. The only link that I could see above was: Binary releases for various platforms are available via the Lazarus Sourceforge download area. When I clicked on this I got transfered to: http://sourceforge.net/projects/lazarus/files/ This page containes various downloading option, including the file "Download lazarus-0.9.30.4-fpc-2.6.0-win32.exe", which is the one that I said I had downloaded in my previous message. What does SVN mean? Have I got the right donwload? ---------------------------------------------------------------------- Hopestation · 2012-03-31 16:37 Hi. Nobody clarified the meaning of SVN, so I did a search for it. The FreeDictionary gives the following possibilities:- SVN   Subversion (version control system) SVN   Slovenia (international traffic code) SVN   Society for Vascular Nursing SVN   Satellite Vehicle Number SVN   Signal Versus Noise SVN   Switched Virtual Network (IBM) SVN   Software Virtual Network (cyber warfare) SVN   Sozialversicherungsnummer (German: Social Security Number) SVN   Software Version Number SVN   South Vietnam SVN   Supervised Visitation Network SVN   Something Very Naughty SVN   Sinuvertebral Nerve SVN   Secure Virtual Network SVN   Small Volume Nebulizer SVN   Social Venture Network Wikki suggests:-     * Apache Subversion, a revision (or version) control system     * Slovenia, ISO 3166-1 alpha-3 country code SVN     * Social Venture Network, a social responsibility network     * South Vietnam, a former state     * Student Video Network, a television network  I don't think it is any of these, so can someone explain Juha's statement "load the latest version from SVN"? Thanks. ---------------------------------------------------------------------- Bart · 2012-03-31 17:16 Actually Juha means "use svn (subversion) to get  the latest sources from the repository", see the link to the wiki in his post. If you don't want to use "non-stable" (0.9.31) version, just install 0.9.30.4 (the latest stable one), after you got rid of all fpc and Lazarus remnants (*) on your PC (to avoid (again) having mixed versions of fpc and/or Lazarus. (*) In particular make sure there are no fpc.cfg, *.o and *.ppu files left on your computer. Bart ---------------------------------------------------------------------- JuhaManninen · 2012-04-01 20:51 Quote from: Hopestation on March 31, 2012, 06:37:34 pm I don't think it is any of these, so can someone explain Juha's statement "load the latest version from SVN"? I gave a link to the page with the info, under titles   Getting SVN and   Getting Lazarus SVN development version It is easy to install once you have FPC installed. Anyway, as Bart suggested, the latest stable 0.9.30.4 is a good choice. Just don't mix it with old versions. Juha P.S.  Yes, SVN means "Subversion (version control system)"