NetBSD-Users archive

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

Fwd: Re: libdaemon-0.14nb1 - break with dlog.c



Hello Together
After googling...... i found any little solution to fix this :-)

# vi /usr/pkgsrc/devel/libdaemon/work/libdaemon-0.14/libdaemon/Makefile

-LDFLAGS_NOUNDEFINED = -Wl,--no-undefined
+LDFLAGS_NOUNDEFINED = --no-undefined

found only this with "-Wl", but i'am not shure what it necessary.

"-Wl"
Pass option as an option to the linker. If option contains commas, it is split 
into
multiple options at the commas. You can use this syntax to pass an argument
to the option. For example, ‘-Wl,-Map,output.map’ passes ‘-Map output.map’
to the linker. When using the GNU linker, you can also get the same effect
with ‘-Wl,-Map=output.map’."

# pwd
/usr/pkgsrc/devel/libdaemon/work/libdaemon-0.14/libdaemon/

# make
  CC     dlog.lo
  CC     dfork.lo
  CC     dsignal.lo
  CC     dnonblock.lo
  CC     dpid.lo
  CC     dexec.lo
  CCLD   libdaemon.la

but now it's Fixed :-)
Thanks
Mauri

-------- Original-Nachricht --------
> Datum: Sun, 04 Sep 2011 15:41:34 +0200
> Betreff: libdaemon-0.14nb1 - break with dlog.c

> Hello together
> Please, if wan't compile libdaemon-0.14nb1 from Pkgsrc/devel it's break's
> 
> uname -rsa
> NetBSD Stern.ch 5.1 NetBSD 5.1 (NetraX1) #0: Thu Apr  7 11:41:16 CEST 2011
>  maurizio@one:/usr/src/sys/arch/sparc64/compile/NetraX1 sparc64
> 
> For any help i'am Happy
> Best regards
> Mauri
> 
> => Build dependency gcc45>=4.5.3: found gcc45-4.5.3
> ===> Overriding tools for libdaemon-0.14nb1
> ===> Patching for libdaemon-0.14nb1
> ===> Building for libdaemon-0.14nb1
> /usr/bin/make  all-recursive
> Making all in libdaemon
>   CCLD   libdaemon.la
> .libs/dlog.o: In function `daemon_logv':
> dlog.c:(.text+0x10): undefined reference to `__errno'
> dlog.c:(.text+0x4c): undefined reference to `openlog'
> dlog.c:(.text+0x60): undefined reference to `vsyslog'
> dlog.c:(.text+0x9c): undefined reference to `__errno'
> dlog.c:(.text+0xb4): undefined reference to `__sF'
> dlog.c:(.text+0xb8): undefined reference to `__sF'
> dlog.c:(.text+0xc0): undefined reference to `vfprintf'
> dlog.c:(.text+0xcc): undefined reference to `fputc'
> dlog.c:(.text+0xd4): undefined reference to `__errno'
> dlog.c:(.text+0xf0): undefined reference to `__sF'
> dlog.c:(.text+0xf4): undefined reference to `__sF'
> dlog.c:(.text+0xfc): undefined reference to `vfprintf'
> dlog.c:(.text+0x108): undefined reference to `fputc'
> .libs/dlog.o: In function `daemon_ident_from_argv0':
> dlog.c:(.text+0x1c4): undefined reference to `strrchr'
> .libs/dfork.o: In function `move_fd_up':
> dfork.c:(.text+0x28): undefined reference to `dup'
> dfork.c:(.text+0x54): undefined reference to `__errno'
> dfork.c:(.text+0x5c): undefined reference to `strerror'
> dfork.c:(.text+0xa8): undefined reference to `__assert13'
> .libs/dfork.o: In function `_null_open':
> dfork.c:(.text+0xd4): undefined reference to `open'
> dfork.c:(.text+0x108): undefined reference to `dup2'
> dfork.c:(.text+0x11c): undefined reference to `close'
> .libs/dfork.o: In function `atomic_write.clone.0':
> dfork.c:(.text+0x14c): undefined reference to `write'
> .libs/dfork.o: In function `atomic_read.clone.1':
> dfork.c:(.text+0x1a0): undefined reference to `read'
> .libs/dfork.o: In function `daemon_fork':
> dfork.c:(.text+0x234): undefined reference to `__sigaction14
>
> --

-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!               
Jetzt informieren: http://www.gmx.net/de/go/freephone


Home | Main Index | Thread Index | Old Index