Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 225413

Summary: [gcc-4.3] sys-fs/lufs-0.9.7-r3 fails to compile with gcc-4.3
Product: Gentoo Linux Reporter: Marek Miller <mlm>
Component: New packagesAssignee: Stefan Schweizer (RETIRED) <genstef>
Status: RESOLVED FIXED    
Severity: normal CC: base-system
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: lufs-0.9.7-gcc43.patch

Description Marek Miller 2008-06-08 18:18:59 UTC
Again missing headers.

Steps to reproduce:
1. USE="debug" emerge -v1 =sys-fs/lufs-0.9.7-r3

The error messages:
1. 
> ftplib.cpp: In member function 'int FTPConnection::connect()':
> ftplib.cpp:93: error: 'memset' was not declared in this scope
> ftplib.cpp:98: error: 'memcpy' was not declared in this scope

	
2.
> ftpfs.cpp: In member function 'int FTPFS::do_mount()':
> ftpfs.cpp:218: error: 'strcmp' was not declared in this scope
> ftpfs.cpp: In member function 'int FTPFS::do_readlink(char*, char*, int)':
> ftpfs.cpp:350: error: 'strlen' was not declared in this scope

3.
> sftplib.cpp: In member function 'int SConnection::connect(char*, char*, int)':
> sftplib.cpp:192: error: 'exit' was not declared in this scope

> sftplib.cpp: In member function 'std::string SConnection::opendir(char*)':
> sftplib.cpp:414: error: 'strlen' was not declared in this scope

My emerge --info: as in bug 225387.
I include the patch.
Comment 1 Marek Miller 2008-06-08 18:19:33 UTC
Created attachment 155981 [details, diff]
lufs-0.9.7-gcc43.patch
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-29 12:20:56 UTC
+  29 Jun 2008; Peter Alfredsen <loki_val@gentoo.org>
+  +files/lufs-0.9.7-gcc43.patch, lufs-0.9.7-r3.ebuild:
+  Fix for gcc-4.3 bug #225413, thanks to Marek Miller <mlm@shells.pl>.
+