Re: [rpm-list] problems compiling rpm on solaris

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

 





On Jan 3, 2007, at 10:36 AM, Edward Quick wrote:


I am using beecrypt-4.1.2, but downloaded it again (http:// sourceforge.net/project/showfiles.php? group_id=8924&package_id=9007&release_id=291479) and recompiled just to be sure (build failed with cc, so ended up using gcc).
beecrypt.api.h doesn't seem to exist though.

# gmake install
...
gmake[2]: Leaving directory `/home/u752359/beecrypt-4.1.2/masm'
gmake[1]: Leaving directory `/home/u752359/beecrypt-4.1.2/masm'
# ls -l /usr/local/include/beecrypt/beecrypt.api.h
/usr/local/include/beecrypt/beecrypt.api.h: No such file or directory
# pwd
/home/u752359/beecrypt-4.1.2
# find . -name beecrypt.api.h
#


This needs to be defined in config.h:

/* Define to 1 if you have the <beecrypt/api.h> header file. */
#define HAVE_BEECRYPT_API_H 1

configure is not detecting because of your oddball /usr/local/ includebeecrypt path.

The root cause is that the logic needs to be inverted in configure.ac, to assume
by default that
    <beecrypt/ap.h>
exists, rather than assuming the older <beecrypt.api.h> if <beecrypt/ api.h>
is not found. I'll try to make that happen this weekend.

Edit config.h after running configure for the quick fix.

73 de Jeff


Jeff,

Thanks for the tips. That really helped and I managed to get a bit further in the compile now but then I got:

gmake[2]: Entering directory `/tmp/rpm-4.4.7/rpmio'
source='macro.c' object='macro.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile --tag=CC cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/beecrypt -I/usr/local/include -I. -I.. -I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib -D_REENTRANT -g -c -o macro.lo macro.c cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/beecrypt -I/usr/local/include -I. -I.. -I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib -D_REENTRANT -g -c macro.c -KPIC -DPIC -o ..libs/macro.o
"macro.c", line 1712: undefined symbol: LC_COLLATE
"macro.c", line 1712: warning: improper pointer/integer combination: op "="
"macro.c", line 1715: undefined symbol: LC_CTYPE
"macro.c", line 1715: warning: improper pointer/integer combination: op "="
cc: acomp failed for macro.c
gmake[2]: *** [macro.lo] Error 1
gmake[2]: Leaving directory `/tmp/rpm-4.4.7/rpmio'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/rpm-4.4.7'
gmake: *** [all] Error 2


So I tried reconfiguring with --disable-nls as well because I recalled Tim saying he did that in one of his posts. I also had to add '-I/usr/local/include/beecrypt -I/usr/local/include -I/usr/local/include/neon' to the include path in the rpmio Makefile. The problem is I now get another error.:

gmake
source='rpmdav.c' object='rpmdav.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile --tag=CC cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/beecrypt -I/usr/local/include -I/usr/local/include/neon -I. -I.. -I/opt/rpm/include/beecrypt -I/opt/rpm/include/neon -I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib -I/usr/local/include -D__FUNCTION__=__func__ -D_REENTRANT -g -c -o rpmdav.lo rpmdav.c cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/beecrypt -I/usr/local/include -I/usr/local/include/neon -I. -I.. -I/opt/rpm/include/beecrypt -I/opt/rpm/include/neon -I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib -I/usr/local/include -D__FUNCTION__=__func__ -D_REENTRANT -g -c rpmdav.c -KPIC -DPIC -o .libs/rpmdav.o
"rpmdav.c", line 382: undefined symbol: __func__
"rpmdav.c", line 382: warning: improper pointer/integer combination: arg #2
"rpmdav.c", line 473: undefined symbol: __func__
"rpmdav.c", line 473: warning: improper pointer/integer combination: arg #2
"rpmdav.c", line 497: undefined symbol: __func__
"rpmdav.c", line 497: warning: improper pointer/integer combination: arg #2
"rpmdav.c", line 708: warning: argument #2 is incompatible with prototype:
prototype: pointer to function(pointer to void, pointer to const struct {pointer to char scheme, pointer to char host, pointer to char ... : "/usr/local/include/neon/ne_props.h", line 223 argument : pointer to function(pointer to void, pointer to const char) returning pointer to void
"rpmdav.c", line 710: warning: argument #3 is incompatible with prototype:
prototype: pointer to function(pointer to void, pointer to const struct {pointer to char scheme, pointer to char host, pointer to char ... : "/usr/local/include/neon/ne_props.h", line 240 argument : pointer to function(pointer to void, pointer to void, pointer to const struct ne_prop_result_set_s {}) returning void
"rpmdav.c", line 1021: cannot recover from previous errors
cc: acomp failed for rpmdav.c
gmake: *** [rpmdav.lo] Error 1

This is what I have on line 223 in ne_props.h:

void ne_propfind_set_private(ne_propfind_handler *handler,
                            ne_props_create_complex creator,
                            ne_props_destroy_complex destructor,
                            void *userdata);

and line 240:

int ne_propfind_named(ne_propfind_handler *handler,
                     const ne_propname *names,
                     ne_props_result result, void *userdata);

_________________________________________________________________
Dave vs. Carl: The Insignificant Championship Series.  Who will win? http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://davevscarl.spaces.live.com/?icid=T001MSN38C07001

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux