You are not logged in.

#1 2008-03-31 16:28:28

snort
Member
Registered: 2008-03-31
Posts: 3

Problems from Wbar.. Help..

-> Downloading wbar-1.3.3.tbz2...
--2008-03-31 13:12:22--  http://freshmeat.net/redir/wbar/66660/u … 1.3.3.tbz2
Resolving freshmeat.net... 66.35.250.168
Connecting to freshmeat.net|66.35.250.168|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.tecapli.com.ar/warlock/wbar-1.3.3.tbz2 [following]
--2008-03-31 13:12:24--  http://www.tecapli.com.ar/warlock/wbar-1.3.3.tbz2
Resolving www.tecapli.com.ar... 190.15.195.143
Connecting to www.tecapli.com.ar|190.15.195.143|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 429098 (419K) [text/plain]
Saving to: `wbar-1.3.3.tbz2'

100%[=======================================>] 429,098      107K/s   in 4.1s   

2008-03-31 13:12:29 (102 KB/s) - `wbar-1.3.3.tbz2' saved [429098/429098]

==> Validating source files with md5sums...
    wbar-1.3.3.tbz2 ... Passed
==> Extracting Sources...
  -> bsdtar -x -f wbar-1.3.3.tbz2
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
g++ `imlib2-config --cflags` -Wall -O2    -c -o XWin.o XWin.cc
XWin.cc: In constructor 'XWin::XWin(int, int, int, int)':
XWin.cc:33: warning: deprecated conversion from string constant to 'char*'
XWin.cc:33: warning: deprecated conversion from string constant to 'char*'
g++ `imlib2-config --cflags` -Wall -O2    -c -o Icon.o Icon.cc
g++ `imlib2-config --cflags` -Wall -O2    -c -o Bar.o Bar.cc
g++ `imlib2-config --cflags` -Wall -O2    -c -o IconLoader.o IconLoader.cc
IconLoader.cc: In constructor 'IconLoader::IconLoader(const char*)':
IconLoader.cc:20: error: 'getenv' was not declared in this scope
make: *** [IconLoader.o] Error 1
==> ERROR: Build Failed.
    Aborting...
[code@obnoxious wbar]$

Anybody have idea ?

Offline

#2 2008-03-31 17:10:37

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Problems from Wbar.. Help..

Patch the file IconLoader by including a line

#include <cstdlib>

and try again.

Offline

#3 2008-03-31 17:29:35

snort
Member
Registered: 2008-03-31
Posts: 3

Re: Problems from Wbar.. Help..

IconLoader.cc  IconLoader.h   IconLoader.o  from src ??
Necessary to include this in which of these?
tnks

Offline

#4 2008-03-31 17:44:02

snort
Member
Registered: 2008-03-31
Posts: 3

Re: Problems from Wbar.. Help..

Thank you Stefan...

Im including <cstdlib> in IncoLoader.cc and SuperBar.cc

Perfect!

Offline

#5 2008-03-31 17:50:00

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Problems from Wbar.. Help..

Sorry, I wanted to say IconLoader.cc. But putting it into IconLoader.h may also work.

If you put the line into the source directly, it would probably overwritten withe the next makepkg call. Try to make a patch.
To do so you can copy (not move) the file IconLoader.cc from <where_it_is> to $startdir and do a

cd $startdir
diff <where_it_is>/IconLoader.cc IconLoader.cc > IconLoader.cc.patch

Add IconLoader.cc.patch to the source array of your PKGBUILD and put a line like

patch <where_it_is>/IconLoader.cc IconLoader.cc.patch

between the .configure line and the make line. Updating md5sums would be nice, but not necessary in the first step.

Offline

#6 2008-04-09 00:32:23

brncmp
Member
Registered: 2008-02-29
Posts: 21

Re: Problems from Wbar.. Help..

I'm having the same problem. 

Could someone just update the pkgbuild?  Or, post a exact howto.

I have no idea what you are talking out.  Patch what with what.  I thought a patch is part of a file. Where is this file?

Thanks
brncmp

Offline

#7 2008-04-14 17:44:54

UnplayedNamer
Member
Registered: 2007-04-06
Posts: 15

Re: Problems from Wbar.. Help..

I've updated the pkgbuild in aur. wink

Offline

Board footer

Powered by FluxBB