On 18 July 2010 21:40, Josh Rickmar <joshua_rickmar_AT_eumx.net> wrote:
> I'm having the following problem when building dmenu tip on OpenBSD
> current. At first I thought it was a problem with OpenBSD, but a user
> in the irc channel said he remembers a similar problem when linking with
> ld on Linux. Any ideas?
>
> dmenu build options:
> CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/local/include -I/usr/X11R6/include -D_BSD_SOURCE -DVERSION="4.1.1"
> LDFLAGS = -s -L/usr/lib -L/usr/local/lib -lc -L/usr/X11R6/lib -lX11 -ldraw
> CC = cc
> CC dinput.c
> config.h:9: warning: 'spaceitem' defined but not used
> CC common.c
> config.h:9: warning: 'spaceitem' defined but not used
> CC -o dinput
> /usr/X11R6/lib/libX11.so.13.0: warning: strcpy() is almost always misused, please use strlcpy()
> /usr/X11R6/lib/libX11.so.13.0: warning: strcat() is almost always misused, please use strlcat()
> /usr/X11R6/lib/libX11.so.13.0: warning: sprintf() is often misused, please use snprintf()
> /usr/lib/crt0.o(.text+0x9d): In function `___start':
> : undefined reference to `main'
> collect2: ld returned 1 exit status
> *** Error code 1
>
> Stop in /home/joshua/src/dmenu (line 28 of Makefile)
Make sure to
hg clone http://hg.suckless.org/libdraw
cd libdraw
make install
before you build dmenu. Does this fix your issues?
Kind regards,
Anselm
Received on Mon Jul 19 2010 - 08:45:16 CEST
This archive was generated by hypermail 2.2.0 : Mon Jul 19 2010 - 08:48:02 CEST