DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 21st August 2011
mgh21 mgh21 is offline
Real Name: Michael Hill
New User
 
Join Date: Aug 2011
Location: Australia
Posts: 7
Default OpenBSD 4.9: strcpy warnings & FORTRAN compiler

Hello,

I have installed OpenBSD 4.9 (on a Dell Optiplex) to update the hardware for an application written in FORTRAN. I am using the GNU FORTRAN compiler from the packages collection. (g95-4.2.4p5v0.tgz ). Compiling produces warnings about misuse of strcpy(), sprintf() and strcat().

/usr/local/.../libgfortran.so.2.0: warning: strcpy() is almost always misused, please use strlcpy()

and similar for sprintf() and snprintf(), and strcat() and strlcat()

I assume that these warnings come from issues within the FORTRAN compiler, and hence cannot be fixed by changing the FORTRAN code.

Is there a way to stop these warnings from coming up, as they are annoying the owner of the FORTRAN application.


Thank-you,

Michael Hill
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD/pf without compiler HOWTO update? zazen OpenBSD Installation and Upgrading 6 26th June 2011 06:47 AM
BSD licensed C, C++ and Fortran compiler released. BSDfan666 News 5 14th June 2011 04:03 PM
Build Process Warnings IronForge OpenBSD Installation and Upgrading 9 22nd January 2010 11:21 AM
pkg_chk c++ compiler not available fenrisW0lf NetBSD Package System (pkgsrc) 15 30th June 2008 10:48 AM
pcc compiler question ChineseBroccoli FreeBSD General 1 11th June 2008 11:29 PM


All times are GMT. The time now is 05:58 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick