Jump to content

'strlcpy' missing?


Guest neckhead
 Share

Recommended Posts

Guest neckhead

Hi,

 

I'm trying to compile a program that contains calls to 'strlcpy', but g++(and gcc) complain the the function is 'undeclared'. Obviously there is something missing on my Linux installation (FC3). Can anybody tell me which library/package in need to install that contains this function?

 

Any help would be greatly appreciated,

 

neckhead

 

[moved from Terminal Shell Commands, etc by spinynorman - welcome aboard :)]

Link to comment
Share on other sites

What is the name of the program you are trying to compile?

 

What is the last say 10-20 lines of the compiler code that is in error?

 

THis might not work for you or give you different programs (I run rawhide)

 

yum provides strlcpy

net-snmp-debuginfo.x86_64                5.2.1-12               development
Matched from:
/usr/src/debug/net-snmp-5.2.1/snmplib/strlcpy.c


openssh-debuginfo.x86_64                 4.0p1-3                development
Matched from:
/usr/src/debug/openssh-4.0p1/openbsd-compat/strlcpy.c


php-debuginfo.x86_64                     5.0.4-10               development
Matched from:
/usr/src/debug/php-5.0.4/main/strlcpy.c


inn-debuginfo.x86_64                     2.4.2-3                development
Matched from:
/usr/src/debug/inn-2.4.2/lib/strlcpy.c


netatalk-debuginfo.x86_64                3:2.0.2-3              development
Matched from:
/usr/src/debug/netatalk-2.0.2/libatalk/util/strlcpy.c


pax-debuginfo.x86_64                     3.0-11                 development
Matched from:
/usr/src/debug/pax-3.0/lib/strlcpy.c


krbafs-debuginfo.x86_64                  1.2.2-7                development
Matched from:
/usr/src/debug/krb4-1.2.2/appl/afsutil/strlcpy.c
/usr/src/debug/krb4-1.2.2/lib/krbafs/strlcpy.c


krbafs-debuginfo.x86_64                  1.2.2-7                development
Matched from:
/usr/src/debug/krb4-1.2.2/appl/afsutil/strlcpy.c
/usr/src/debug/krb4-1.2.2/lib/krbafs/strlcpy.c

 

This probably really depends on "what" you are trying to install and also what does yum provides gives you back for fc3.

Link to comment
Share on other sites

Guest neckhead

I grabbed two files from the OpenBSD FTP site: strlcpy.c and strlcat.c. This basically solved my problem. :thumbs:

 

P.S. Thanks for the reply

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...