ccscript-devel
[Top][All Lists]
Advanced

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

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


From: David Sugar
Subject: Re: [Ccscript-devel] address@hidden: Bug#126585: libccscript: build failure with gcc 3.0 (hppa/unstable)]
Date: Thu, 27 Dec 2001 09:27:15 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010914

The problem with -fPIC I assumed would nornally be handled in libtool. Shouldn't libtool be adding correct linker options for shared libs, since pic options may vary based on the target platforms linker, especially when not a binutils toolchain?

The changes relevant to gcc 3.0 I will incorporate as a patch for the next release.

Mark Purcell wrote:

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 -----






reply via email to

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