• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4585: configure generates apache errors

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   minor  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Configure writes the following error messages into my apache error log:

[Sat Sep 08 16:45:36 2007] [error] [client 131.151.90.98] Subroutine TWiki::Configure::Checker::tmpfile redefined at /usr/lib/perl5/5.8.5/Exporter.pm line 65.
[Sat Sep 08 16:45:36 2007] [error] [client 131.151.90.98] at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/POSIX.pm line 19
[Sat Sep 08 16:45:36 2007] [error] [client 131.151.90.98] Subroutine TWiki::Configure::Checker::tmpnam redefined at /usr/lib/perl5/5.8.5/Exporter.pm line 65.
[Sat Sep 08 16:45:36 2007] [error] [client 131.151.90.98] at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/POSIX.pm line 19
[Sat Sep 08 16:46:21 2007] [error] [client 131.151.90.98] Subroutine TWiki::Configure::Checker::tmpfile redefined at /usr/lib/perl5/5.8.5/Exporter.pm line 65., referer: http://xxxx.xxxx.xxxx/helptwiki/bin/configure
[Sat Sep 08 16:46:21 2007] [error] [client 131.151.90.98] at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/POSIX.pm line 19, referer: http://xxxx.xxxx.xxxx/helptwiki/bin/configure
[Sat Sep 08 16:46:21 2007] [error] [client 131.151.90.98] Subroutine TWiki::Configure::Checker::tmpnam redefined at /usr/lib/perl5/5.8.5/Exporter.pm line 65., referer: http://r03venom.desktop.umr.edu/helptwiki/bin/configure
[Sat Sep 08 16:46:21 2007] [error] [client 131.151.90.98] at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/POSIX.pm line 19, referer: http://xxxx.xxxx.xxxx/helptwiki/bin/configure

-- TWiki:Main/ThomasWeigert - 08 Sep 2007

Yes. We all have these.

And they are bogus errors. But they would be nice to avoid. Many report them in connection with unrelated bugs.

-- TWiki:Main.KennethLavrsen - 08 Sep 2007

Quite a few packages have use strict outside the package, which presumably makes the scope global. It's possible that this just happens to be the first of those that's encountered during compilation, so the warnings get blamed on it. We can try moving the use strict calls inside the package declaration to see if that makes a difference.

-- TWiki:Main.CrawfordCurrie - 09 Sep 2007

Well, that didn;t fix it. But I noticed that when we check for mudule availability we use a 'use' and not a require. On closer analysis, it emerges that File::Temp and POSIX both export the tmpfile symbol into the global namespace by default. A curse on anyone who exports symbols into the global namespace! Idiots!

Anyway, we can get rid of the warning simply by doing a require instead of a use. Since this is just a compile check, we are not relying on it to provide these symbols.

CC

ItemTemplate
Summary configure generates apache errors
ReportedBy TWiki:Main.ThomasWeigert
Codebase 4.1.2
SVN Range TWiki-4.2.0, Sat, 08 Sep 2007, build 14780
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:14797
TargetRelease minor
ReleasedIn

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r7 - 2008-01-22 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback