All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix portmap on mips, remove old slugos workaround
@ 2009-08-05  6:22 Graham Gower
  2009-08-09 13:30 ` Holger Hans Peter Freyther
  0 siblings, 1 reply; 3+ messages in thread
From: Graham Gower @ 2009-08-05  6:22 UTC (permalink / raw)
  To: openembedded-devel

Portmap built for mipsel with gcc-4.3.3 segfaults instantly, fails to build
with gcc-4.4 and provides the following:

| /home/grg/oe/tmp/cross/mipsel/lib/gcc/mipsel-angstrom-linux/4.4.1/../../../../mipsel-angstrom-linux/bin/ld: portmap.o: relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used when making a shared object; recompile with -fPIC

The CFLAGS in portmap's Makefile contains -fpie, but is ignored. The
CFLAGS I've added below are constructed from portmap's Makefile. When
built with gcc-4.3.3 the resultant binary no longer segfaults.

RE: Remove this patch when SlugOS upgrades to binutils 1.18
It looks like this is now the case, so I've removed the slugos workaround.

-Graham

diff --git a/recipes/portmap/portmap-6.0/no-pie.patch b/recipes/portmap/portmap-6.0/no-pie.patch
deleted file mode 100644
index 4d7e2da..0000000
--- a/recipes/portmap/portmap-6.0/no-pie.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- portmap_6.0/Makefile.orig	2007-11-21 00:35:52.000000000 -0600
-+++ portmap_6.0/Makefile	2007-11-21 00:37:23.000000000 -0600
-@@ -125,9 +125,9 @@
- all:	portmap pmap_dump pmap_set portmap.man
- 
- CPPFLAGS += $(HOSTS_ACCESS)
--portmap: CFLAGS   += -fpie
-+#portmap: CFLAGS   += -fpie
- portmap: LDLIBS   += $(WRAP_LIB)
--portmap: LDFLAGS  += -pie
-+#portmap: LDFLAGS  += -pie
- portmap: portmap.o pmap_check.o from_local.o
- 
- from_local: CPPFLAGS += -DTEST
diff --git a/recipes/portmap/portmap_6.0.bb b/recipes/portmap/portmap_6.0.bb
index cb94a48..501aa5d 100644
--- a/recipes/portmap/portmap_6.0.bb
+++ b/recipes/portmap/portmap_6.0.bb
@@ -1,6 +1,6 @@
 require portmap.inc
 
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "http://www.sourcefiles.org/Networking/Tools/Miscellanenous/portmap-6.0.tgz \
            file://destdir-no-strip.patch;patch=1 \
@@ -8,12 +8,10 @@ SRC_URI = "http://www.sourcefiles.org/Networking/Tools/Miscellanenous/portmap-6.
            file://no-libwrap.patch;patch=1;pnum=0 \
            file://portmap.init "
 
-# Remove this patch when SlugOS upgrades to binutils 1.18
-SRC_URI_append_slugos = " file://no-pie.patch;patch=1 "
-
 S = "${WORKDIR}/${PN}_${PV}/"
 
 CPPFLAGS += "-DFACILITY=LOG_DAEMON -DENABLE_DNS"
+CFLAGS += "-O2 -Wall -Wstrict-prototypes -fpie"
 
 fakeroot do_install() {
     install -d ${D}${mandir}/man8/ ${D}${base_sbindir} ${D}${sysconfdir}/init.d



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] fix portmap on mips, remove old slugos workaround
  2009-08-05  6:22 [PATCH] fix portmap on mips, remove old slugos workaround Graham Gower
@ 2009-08-09 13:30 ` Holger Hans Peter Freyther
  2009-08-09 14:57   ` Mike Westerhof
  0 siblings, 1 reply; 3+ messages in thread
From: Holger Hans Peter Freyther @ 2009-08-09 13:30 UTC (permalink / raw)
  To: openembedded-devel

On Wednesday 05 August 2009 08:22:17 Graham Gower wrote:
> Portmap built for mipsel with gcc-4.3.3 segfaults instantly, fails to build

Great, I would like to hear something from SlugOS people though...






^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] fix portmap on mips, remove old slugos workaround
  2009-08-09 13:30 ` Holger Hans Peter Freyther
@ 2009-08-09 14:57   ` Mike Westerhof
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Westerhof @ 2009-08-09 14:57 UTC (permalink / raw)
  To: openembedded-devel

Holger Hans Peter Freyther wrote:
> On Wednesday 05 August 2009 08:22:17 Graham Gower wrote:
>> Portmap built for mipsel with gcc-4.3.3 segfaults instantly, fails to build
> 
> Great, I would like to hear something from SlugOS people though...

Graham's patch builds for SlugOS, and the resultant binary runs without
problem.

BTW, the portmap-unslung_5-9.bb recipe can be removed; it's obsolete.
I'm not in a position to push that change right now, so let's just add
that to the SlugOS cleanup in Graham's original patch.

Mike (mwester)



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-09 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-05  6:22 [PATCH] fix portmap on mips, remove old slugos workaround Graham Gower
2009-08-09 13:30 ` Holger Hans Peter Freyther
2009-08-09 14:57   ` Mike Westerhof

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.