Re: c compile error on implicit declaration
Usually this means, that you (in the code) forgot to include a header for (in this case) sym_forget() system function, but the compiler recognised which header you forgot to include and got it covered for you. This its only a warning and you can ignore it but should consider this to fix this in your code for higher compatibility with the c language and to avoid errors caused by this, like it didn't imported the right header for instance. Is this your c code, a library you've downloaded or is this gcc as in the c compiler? 2013.12.11. 8:26 ezt írta (Gmail yangz...@gmail.com): Hi all I am trying to compile the c code and got the following error. cc -DIWORDSIZE=4 -DMAX_HISTORY=25 -DNMM_CORE=0 -c -g registry.c registry.c:60:3: warning: implicit declaration of function 'sym_forget' is invalid in C99 [-Wimplicit-function-declaration] sym_forget() ; ^ Do anybody have any ideas on it? Thank you Bruce ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Undefined symbols for architecture x86_64 error on fortran compiling
On Dec 11, 2013, at 01:40, Gmail wrote: When I compile a fortran code, I got the error Undefined symbols for architecture x86_64 My mac is 64bits. The fortran compiler used here is ifort. The relevant information would be *what* symbols were undefined, what your code looks like, and where those symbols are actually defined. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Undefined symbols for architecture x86_64 error on fortran compiling
On Wed, Dec 11, 2013 at 2:40 AM, Gmail yangz...@gmail.com wrote: Hi all When I compile a fortran code, I got the error Undefined symbols for architecture x86_64 My mac is 64bits. The fortran compiler used here is ifort. This is an incomplete error message. Please show the full command and full output. -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Undefined symbols for architecture x86_64 error on fortran compiling
Here is the whole error Undefined symbols for architecture x86_64: ___kmpc_end_master, referenced from: _wrf_message_ in module_wrf_error.o _wrf_message2_ in module_wrf_error.o _wrf_check_error_ in module_wrf_error.o _wrf_error_fatal_ in module_wrf_error.o _wrf_error_fatal3_ in module_wrf_error.o ___kmpc_global_thread_num, referenced from: _wrf_message_ in module_wrf_error.o _wrf_message2_ in module_wrf_error.o _wrf_check_error_ in module_wrf_error.o _wrf_error_fatal_ in module_wrf_error.o _wrf_error_fatal3_ in module_wrf_error.o _module_wrf_error._ in module_wrf_error.o ___kmpc_master, referenced from: _wrf_message_ in module_wrf_error.o _wrf_message2_ in module_wrf_error.o _wrf_check_error_ in module_wrf_error.o _wrf_error_fatal_ in module_wrf_error.o _wrf_error_fatal3_ in module_wrf_error.o ld: symbol(s) not found for architecture x86_64 make[2]: [diffwrf] Error 1 (ignored) Actually the code is fine, no error in the code. Because it’s from WRF committee. I guess the reason that I get the error is from compiler or its flags. But I am not sure currently. Thank you Bruce On Dec 11, 2013, at 10:06 AM, Ryan Schmidt ryandes...@macports.org wrote: On Dec 11, 2013, at 01:40, Gmail wrote: When I compile a fortran code, I got the error Undefined symbols for architecture x86_64 My mac is 64bits. The fortran compiler used here is ifort. The relevant information would be *what* symbols were undefined, what your code looks like, and where those symbols are actually defined. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Installing mysql for digikam
Remember to Reply All so the discussion stays on the mailing list. On Dec 11, 2013, at 15:11, David Lyon wrote: In anticipation of following the guideline which you provided to install mysql5, I thought it best to make sure that I had no installed components of mysql5. As you can see from below, mysql5 is installed. I'm unclear what I should do now. Any suggestions will be appreciated. I would like to run digikam but if it is too much bother to you or others, due to my lack of sophistication using the appropriate programing language, I can wait until digikam becomes packaged for Mac installation @dmg. Thanks for your help, David bash-3.2$ sudo port uninstall mysql5 Password: Sorry, try again. Password: --- Unable to uninstall mysql5 @5.1.72_0, the following ports depend on it: ---mysql5-server @5.1.72_0 ---qt4-mac-mysql5-plugin @4.8.5_0 Error: org.macports.uninstall for port mysql5 returned: Please uninstall the ports that depend on mysql5 first. Please see the log file for port mysql5 for details: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_mysql5_5.1.72_0/mysql5/main.log Warning: Failed to execute portfile from registry for mysql5 @5.1.72_0 --- Unable to uninstall mysql5 @5.1.72_0, the following ports depend on it: ---mysql5-server @5.1.72_0 ---qt4-mac-mysql5-plugin @4.8.5_0 Error: port uninstall failed: Please uninstall the ports that depend on mysql5 first. bash-3.2$ sudo port uninstall mysql5-server --- Unable to uninstall mysql5-server @5.1.72_0, the following ports depend on it: ---akonadi @1.11.0_0+mysql5 Error: org.macports.uninstall for port mysql5-server returned: Please uninstall the ports that depend on mysql5-server first. If you want to run a MySQL server, it appears you’ve already installed the needed ports. The MAMP page tells you what to do now to set it up and get it running. But are you sure digikam needs a MySQL server? What happens if you run digikam without setting one up? ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Installing mysql for digikam
It appears that Mysql is installed successfully. I'll now attempt to digikam. Thanks for your guidance. David Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] y ... Success! Cleaning up... All done! If you've completed all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL! bash-3.2$ On Wed, 11 Dec 2013 16:44:33 -0500, Ryan Schmidt ryandes...@macports.org wrote: Remember to Reply All so the discussion stays on the mailing list. On Dec 11, 2013, at 15:11, David Lyon wrote: In anticipation of following the guideline which you provided to install mysql5, I thought it best to make sure that I had no installed components of mysql5. As you can see from below, mysql5 is installed. I'm unclear what I should do now. Any suggestions will be appreciated. I would like to run digikam but if it is too much bother to you or others, due to my lack of sophistication using the appropriate programing language, I can wait until digikam becomes packaged for Mac installation @dmg. Thanks for your help, David bash-3.2$ sudo port uninstall mysql5 Password: Sorry, try again. Password: --- Unable to uninstall mysql5 @5.1.72_0, the following ports depend on it: ---mysql5-server @5.1.72_0 ---qt4-mac-mysql5-plugin @4.8.5_0 Error: org.macports.uninstall for port mysql5 returned: Please uninstall the ports that depend on mysql5 first. Please see the log file for port mysql5 for details: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_mysql5_5.1.72_0/mysql5/main.log Warning: Failed to execute portfile from registry for mysql5 @5.1.72_0 --- Unable to uninstall mysql5 @5.1.72_0, the following ports depend on it: ---mysql5-server @5.1.72_0 ---qt4-mac-mysql5-plugin @4.8.5_0 Error: port uninstall failed: Please uninstall the ports that depend on mysql5 first. bash-3.2$ sudo port uninstall mysql5-server --- Unable to uninstall mysql5-server @5.1.72_0, the following ports depend on it: ---akonadi @1.11.0_0+mysql5 Error: org.macports.uninstall for port mysql5-server returned: Please uninstall the ports that depend on mysql5-server first. If you want to run a MySQL server, it appears you’ve already installed the needed ports. The MAMP page tells you what to do now to set it up and get it running. But are you sure digikam needs a MySQL server? What happens if you run digikam without setting one up? -- Using Opera's mail client: http://www.opera.com/mail/ - VFEmail.net - http://www.vfemail.net ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options! ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: Installing mysql for digikam
On Dec 11, 2013, at 17:58, David Lyon wrote: OK-- one small step which is probably the critical one has been missing. I have attached the log from XQuartx and a screen shot of the set up within digikam once it's opened which requires the mysql server set up. I have never made it to this point and saw the necessity of setting the preferences for mysql server. If someone can help me understand the answers to: Host Name: Port: my user ID for mysql is known as is my pssword Anything required in the Datbase Connections Options? I think that will provide a stable program. If the MySQL server is running on the same computer on which you want to run digikam, then the hostname should be “localhost”, otherwise the hostname should be the hostname or IP address of the computer running the MySQL server. The port should be the default MySQL server port, which is 3306. The username should be a valid MySQL username on your MySQL server; the server comes preconfigured with a single user, “root”, with its password set to the empty string. Since the root account is the administrator account which can be used to do anything on your server, including reading or deleting all data, you should secure it against unauthorized access by changing the MySQL server’s root password to something else (the MAMP page includes instructions for doing so). Having done this, you could fill “root” and the MySQL root account’s password into digikam. Alternately, if you’re going to use your MySQL server for other things as well, you may want to make a separate MySQL account for digikam and use that. I don’t know what kind of “database connection options” they’re referring to. I’d try leaving them blank, or finding the digikam documentation to see what kinds of options you can use and if any of them would be useful to you. Your screen shot showed you filled in the value “/Users/David/Desktop/PICS TO PRACTICS” into the two fields “Schema Name” and “Thumbnails Schema Name”. This is probably not correct. A schema name in MySQL is a database name; it’s asking you what names you want it to use when creating the databases in your MySQL server. Alternately, you might need to create them yourself, and then tell it here what names you used; I’m not sure; you’d have to consult the digikam documentation. I would make up two database names and fill them in and see what happens. Either it’ll create them and use them, or it’ll complain that they don’t exist, in which case you’ll need to create them. You should probably read a digikam-specific tutorial about this. I found this one about setting it up to use MySQL: http://userbase.kde.org/Digikam/Using_digiKam_with_MySQL It also says it’s not necessary, and that usually it uses SQLite instead, which requires no setup. It says: “Of course, you might wonder why you’d want to switch to MySQL when SQLite already does a good job of managing the data? Using MySQL as digiKam’s database back-end allows you to store the data on a remote server. This way, you can use multiple digiKam installations (e.g., on your notebook and desktop machine) to access and manage your photo collections.” So if that’s something you want to do, then using MySQL is a good idea. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users