Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405829 - net-ftp/vsftpd-2.3.4 - sysdeputil.c:1334:18: error: '__NR_getpid' undeclared (first use in this function)
Summary: net-ftp/vsftpd-2.3.4 - sysdeputil.c:1334:18: error: '__NR_getpid' undeclared ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Alpha Linux
: Normal normal (vote)
Assignee: Alpha Porters
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-02-25 22:33 UTC by mach1
Modified: 2012-11-17 19:12 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info ... output (info,4.20 KB, text/plain)
2012-02-25 22:36 UTC, mach1
Details
emerge -pqv ... output (pqv,83 bytes, text/plain)
2012-02-25 22:37 UTC, mach1
Details
Environment file (environment,73.99 KB, text/plain)
2012-02-25 22:39 UTC, mach1
Details
Build log (build.log,5.73 KB, text/plain)
2012-02-25 22:52 UTC, mach1
Details
Build log for new failure (new-build.log,5.73 KB, text/plain)
2012-04-13 14:52 UTC, mach1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mach1 2012-02-25 22:33:14 UTC
Ebuild of net-ftp/vsftpd-2.3.4 fails when compiling the file sysdeputil.c at line 1334 with an undeclared reference to __NR_getpid.
Comment 1 mach1 2012-02-25 22:36:03 UTC
Created attachment 303233 [details]
emerge --info ... output
Comment 2 mach1 2012-02-25 22:37:52 UTC
Created attachment 303235 [details]
emerge -pqv ... output
Comment 3 mach1 2012-02-25 22:39:27 UTC
Created attachment 303237 [details]
Environment file
Comment 4 mach1 2012-02-25 22:52:16 UTC
Created attachment 303239 [details]
Build log
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2012-02-29 21:34:50 UTC
Not our problem. Seems like this syscall is missing from Alpha kernel headers. If I am correct, we need to drop the alpha keywords
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2012-04-12 10:11:29 UTC
alpha/~alpha keywords dropped
Comment 7 mach1 2012-04-12 15:59:07 UTC
(In reply to comment #6)
> alpha/~alpha keywords dropped

I did an emerge-webrsync followed by an emerge vsftpd which resulted in a different failure early in the source compile (i.e., emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die fails). Is this related to this bug or should I open a new  bug report?
Comment 8 Markos Chandras (RETIRED) gentoo-dev 2012-04-12 20:04:10 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > alpha/~alpha keywords dropped
> 
> I did an emerge-webrsync followed by an emerge vsftpd which resulted in a
> different failure early in the source compile (i.e., emake
> CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die fails). Is this related to this
> bug or should I open a new  bug report?

How should I know? I need a build.log to see what the problem is. If you think this is not related to this bug, please open a new one
Comment 9 mach1 2012-04-13 14:52:15 UTC
Created attachment 308767 [details]
Build log for new failure

Here is the build log for the new build failure. I'm just a user, you are better equipped to evaluate whether this is related to the fix to the original failure. If you need additional information, just ask politely. If this is a new issue, just say so and I will submit a new, complete bug report.
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2012-04-13 18:37:32 UTC
It is the same problem

sysdeputil.c:1334:18: error: '__NR_getpid' undeclared (first use in this function)
sysdeputil.c:1334:18: note: each undeclared identifier is reported only once for each function it appears in

However, this bug seems to be fixed in debian so it would be possible to use their patch
Comment 11 Markos Chandras (RETIRED) gentoo-dev 2012-04-13 18:39:55 UTC
Could you please try this patch?

http://patch-tracker.debian.org/patch/series/view/vsftpd/2.3.5-3/11-alpha.patch
Comment 12 mach1 2012-04-14 20:48:09 UTC
(In reply to comment #11)
> Could you please try this patch?
> 
> http://patch-tracker.debian.org/patch/series/view/vsftpd/2.3.5-3/11-alpha.
> patch

I downloaded the patch but I don't know how to get it applied. I tried the user patch mechanism described in the installation documentation with no success. I tried to just add the patch file to the protage tree with the other patches but emerge complains about the extra file. How do I get the patch applied?
Comment 13 Markos Chandras (RETIRED) gentoo-dev 2012-04-14 21:59:13 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > Could you please try this patch?
> > 
> > http://patch-tracker.debian.org/patch/series/view/vsftpd/2.3.5-3/11-alpha.
> > patch
> 
> I downloaded the patch but I don't know how to get it applied. I tried the
> user patch mechanism described in the installation documentation with no
> success. I tried to just add the patch file to the protage tree with the
> other patches but emerge complains about the extra file. How do I get the
> patch applied?

Ehm, put that file in /usr/portage/net-ftp/vsftpd/files/ and adjust the vsftd-2.3.5.ebuild to apply this patch as well. Have a look at the ebuild to see how to apply patches.
Comment 14 mach1 2012-04-16 14:38:14 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > (In reply to comment #11)
> > > Could you please try this patch?
> > > 
> > > http://patch-tracker.debian.org/patch/series/view/vsftpd/2.3.5-3/11-alpha.
> > > patch
> > 
> > I downloaded the patch but I don't know how to get it applied. I tried the
> > user patch mechanism described in the installation documentation with no
> > success. I tried to just add the patch file to the protage tree with the
> > other patches but emerge complains about the extra file. How do I get the
> > patch applied?
> 
> Ehm, put that file in /usr/portage/net-ftp/vsftpd/files/ and adjust the
> vsftd-2.3.5.ebuild to apply this patch as well. Have a look at the ebuild to
> see how to apply patches.

I have done as instructed, but the emerge fails complaining that the ebuild file length does not match the expected length. How do I tell emerge to skip this and any other related consistency checks (like the presence of the extra new patch file)? I read the man page for emerge, but saw nothing that seemed applicable. If there is no way to make emerge ignore the checks, how can I rebuild whatever files (Manifest, etc.?) contain the information used in these checks?
Comment 15 Markos Chandras (RETIRED) gentoo-dev 2012-04-16 15:18:11 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > (In reply to comment #12)
> > > (In reply to comment #11)
> > > > Could you please try this patch?
> > > > 
> > > > http://patch-tracker.debian.org/patch/series/view/vsftpd/2.3.5-3/11-alpha.
> > > > patch
> > > 
> > > I downloaded the patch but I don't know how to get it applied. I tried the
> > > user patch mechanism described in the installation documentation with no
> > > success. I tried to just add the patch file to the protage tree with the
> > > other patches but emerge complains about the extra file. How do I get the
> > > patch applied?
> > 
> > Ehm, put that file in /usr/portage/net-ftp/vsftpd/files/ and adjust the
> > vsftd-2.3.5.ebuild to apply this patch as well. Have a look at the ebuild to
> > see how to apply patches.
> 
> I have done as instructed, but the emerge fails complaining that the ebuild
> file length does not match the expected length. How do I tell emerge to skip
> this and any other related consistency checks (like the presence of the
> extra new patch file)? I read the man page for emerge, but saw nothing that
> seemed applicable. If there is no way to make emerge ignore the checks, how
> can I rebuild whatever files (Manifest, etc.?) contain the information used
> in these checks?

"cd" to /usr/portage/net-ftp/vsftpd and run "repoman manifest". Then try to emerge vsftpd again
Comment 16 mach1 2012-04-16 18:31:06 UTC
(In reply to comment #11)
> Could you please try this patch?
> 
> http://patch-tracker.debian.org/patch/series/view/vsftpd/2.3.5-3/11-alpha.
> patch

I applied the patch. The emerge now succeeds. The server runs, but does not allow connections. All connection requests produce the following response:

500 OOPS: not session leader

I don't know if this is related to the patch (the problem had something to do getting the process ID and thus might be related to the patch) or is just a configuration problem. I am using a vsftpd.conf file that is essentially the same as that used on a debian installation where the server works fine. I will continue to try other things.
Comment 17 Matt Turner gentoo-dev 2012-05-27 02:07:15 UTC
It seems plausible that alpha's getxpid syscall hasn't been kept in sync with the other architectures' recently.

See

http://marc.info/?l=linux-alpha&m=128547570428943&w=2
http://marc.info/?l=linux-alpha&m=128551378724908&w=2
http://marc.info/?l=linux-alpha&m=128551399625123&w=2

If you want, you can try applying those patches to your kernel. I'll ping the appropriate people upstream and see if we can get getxpid fixed.

Thanks a lot for the report. It seems you've discovered a kernel bug. :)
Comment 18 Matt Turner gentoo-dev 2012-06-02 16:04:17 UTC
I just tested vsftpd-2.3.5 with the patch from Debian (no kernel patches) and it seems to work. I at least can't reproduce the error the original reporter had.
Comment 19 Markos Chandras (RETIRED) gentoo-dev 2012-10-27 00:32:43 UTC
Ping?
Comment 20 mach1 2012-10-28 15:28:46 UTC
I'm not sure what comment 19 means. For my part, I concur the Debian bug fix solves the original build problem, but the running server still does not allow any connections (see comment 16). If you want me to file a separate bug report for this just let me know.
Comment 21 Markos Chandras (RETIRED) gentoo-dev 2012-10-28 15:51:52 UTC
(In reply to comment #20)
> I'm not sure what comment 19 means. For my part, I concur the Debian bug fix
> solves the original build problem, but the running server still does not
> allow any connections (see comment 16). If you want me to file a separate
> bug report for this just let me know.

Probably means that the patch is not correct. Have you tried any later version of vsftpd, say 3.0.2 (and the latest kernel)?
Comment 22 Markos Chandras (RETIRED) gentoo-dev 2012-11-04 10:43:43 UTC
Please test the latest one along with the latest kernel headers and report back. Otherwise I will have to drop the alpha keywords because I need to get rid off all the 2.X releases
Comment 23 mach1 2012-11-05 16:18:42 UTC
(In reply to comment #22)
> Please test the latest one along with the latest kernel headers and report
> back. Otherwise I will have to drop the alpha keywords because I need to get
> rid off all the 2.X releases

I am working on it. I am having trouble getting gdm to run under the latest version of the kernel--it doesn't accept any input (mouse or keyboard). I had this problem once before, but I don't remember all the details about how I finally fixed it. When I solve this problem I'll try the newest version of vsftpd.
Comment 24 Matt Turner gentoo-dev 2012-11-05 16:44:40 UTC
Sounds like you updated your X server, but not your drivers. Rebuild your xf86-{input,video}-* packages.
Comment 25 mach1 2012-11-05 18:26:26 UTC
(In reply to comment #24)
> Sounds like you updated your X server, but not your drivers. Rebuild your
> xf86-{input,video}-* packages.

All I have done is build and boot the 3.3.8 kernel. Making no alterations at all (just the SRM boot command line) I can boot the 3.2.1 kernel and X runs just fine. I don't want to touch anything else, if at all possible, for fear of breaking the older version configuration (I still need to get daily work done on the machine) before getting the new version running. If I have to step off the cliff, I will, but I'm a bit nervous.
Comment 26 Matt Turner gentoo-dev 2012-11-05 21:01:39 UTC
(In reply to comment #25)
> (In reply to comment #24)
> > Sounds like you updated your X server, but not your drivers. Rebuild your
> > xf86-{input,video}-* packages.
> 
> All I have done is build and boot the 3.3.8 kernel.

In that case, diff the 3.3.8 .config with your previous .config. Perhaps evdev got turned off or something like that.
Comment 27 mach1 2012-11-12 20:12:54 UTC
(In reply to comment #22)
> Please test the latest one along with the latest kernel headers and report
> back. Otherwise I will have to drop the alpha keywords because I need to get
> rid off all the 2.X releases

I have been able to build vsftpd-3.0.2 under 3.3.8 of the kernel and it seems to work. I did need to add the debian patch to get the build to succeed.
Comment 28 Markos Chandras (RETIRED) gentoo-dev 2012-11-12 21:32:13 UTC
Right. Thanks. I am wondering why this bug is not fixed upstream then...
Comment 29 Markos Chandras (RETIRED) gentoo-dev 2012-11-17 19:12:17 UTC
Thanks. Fixed on 3.0.2