ccscript-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ccscript-devel] address@hidden: Bug#126585: libccscript: build failure


From: Mark Purcell
Subject: [Ccscript-devel] address@hidden: Bug#126585: libccscript: build failure with gcc 3.0 (hppa/unstable)]
Date: Thu, 27 Dec 2001 23:37:44 +1100
User-agent: Mutt/1.3.24i

forwarded 126585 address@hidden
quit

Hi ccscript-devel,

I have received the following bug report for the GNU ccscript library, I have
applied it cleanly to the Debian GNU/Linux packaged version of ccscript, 
but I would also be interested in your comments on this patch.

Please maitain the Cc: on this email so the correspondance is
logged correctly within the Debian Bug tracking system.

Thanks,
Mark

----- Forwarded message from LaMont Jones <address@hidden> -----

From: LaMont Jones <address@hidden>
Date: Wed, 26 Dec 2001 23:57:20 -0700 (MST)
To: address@hidden
X-Mailer: bug 3.3.10
Subject: Bug#126585: libccscript: build failure with gcc 3.0 (hppa/unstable)
Reply-To: LaMont Jones <address@hidden>, address@hidden

Package: libccscript
Version: 1.8.1-3
Severity: important

Build fails on hppa because of gcc 3.0 errors, the patch below fixes most? of
those.  We then die because the build attempts to link non-PIC code into
a shared lib, which is illegal.

c++ -g -O2 -D_REENTRANT -D_THREAD_SAFE -g -O2 -D_GNU_SOURCE 
-DSCRIPT_MODULE_PATH=\"/usr/lib/ccscript\" -o url.pkg -shared -lccext -lxml2 
-lz url.o -L/usr/lib -lccgnu -ldl -lpthread
/usr/bin/ld: url.o: relocation R_PARISC_DPREL21L can not be used when making a 
shared object; recompile with -fPIC

lamont
==========================================================================
diff -ur t/libccscript-1.8.1/src/module.cpp libccscript-1.8.1/src/module.cpp
--- t/libccscript-1.8.1/src/module.cpp  Thu Nov  1 17:05:55 2001
+++ libccscript-1.8.1/src/module.cpp    Wed Dec 26 23:33:00 2001
@@ -141,7 +141,7 @@
 
        if(!canAccess(name))
        {
-               slog(SLOG_ERROR) << "use: cannot find " << name << endl;
+               slog(SLOG_ERROR) << "use: cannot find " << name << std::endl;
                return false;
        }
 
@@ -151,7 +151,7 @@
        }
        catch (DSO *dso)
        {
-               slog(SLOG_ERROR) << "use: cannot load " << name << endl;
+               slog(SLOG_ERROR) << "use: cannot load " << name << std::endl;
                delete dso;
                return false;
        }
diff -ur t/libccscript-1.8.1/src/shell.cpp libccscript-1.8.1/src/shell.cpp
--- t/libccscript-1.8.1/src/shell.cpp   Thu Nov  1 17:00:05 2001
+++ libccscript-1.8.1/src/shell.cpp     Wed Dec 26 23:45:06 2001
@@ -77,7 +77,7 @@
        bool scrAlarm(void);
 
        void Exit(void)
-               {cout << "exiting..." << endl; exit(0);};
+               {std::cout << "exiting..." << std::endl; exit(0);};
 
 public:
        void Signal(const char *sigid)
@@ -123,9 +123,9 @@
 {
        char *val;
        while(NULL != (val = getValue(NULL)))
-               cout << val;
+               std::cout << val;
 
-       cout << endl;
+       std::cout << std::endl;
        Advance();
        return true;
 }
@@ -212,7 +212,7 @@
 {
        if(argc != 2)
        {
-               cerr << "use: ccscript scriptname" << endl;
+               std::cerr << "use: ccscript scriptname" << std::endl;
                exit(-1);
        }
 
==========================================================================
-- System Information
Debian Release: 3.0
Kernel Version: Linux smallone 2.4.9-pa79 #2 Thu Nov 8 18:18:02 MST 2001 
parisc64 unknown



----- End forwarded message -----

Attachment: pgpnHHZZ0oAo1.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]