[lokisetup] Loki : rpm issues (does loki support it ?)

Stéphane Peter megastep at megastep.org
Sat Aug 6 13:15:47 EDT 2005

Setup's RPM support is some very old code that has not been used in  
quite some time as far as I know.

It uses librpm to extract the archive information, and later the CPIO  
code to actually extract the files (RPM files are compressed CPIO  
files with headers). However this code is so old, that the RPM  
library has since been broken into several libraries, and even some  
of the functions used by Setup may no longer exist. The RPM code was  
design around the Redhat 6.x era, and should be able to compile on  
these versions of Linux.

I did make a few changes for RPM4 support in CVS, so make sure you  
are using that version of that code, but it is likely that even this  
code is outdated now.

On Aug 6, 2005, at 8:00 AM, Ram wrote:

> Hi,
>     I am trying to make Loki Setup to install rpms. Does Loki Support
> RPMs. (Heard that
>     it is broken please clarify)
>      I am having some compilation problems. I was getting  errors  
> show such as
>    loki_setup/plugins/rpm.c:71: undefined reference to  
> `rpmReadPackageHeader'
>   so i installed rpm-devel. But still i could not get it to compile.
>   Honestly i dont know which lib has the defnition of  
> `rpmReadPackageHeader'.
>   googling suggested librpm has it. my system already has a librpm
> (4.3.X) but that function
>    does not exist (i did an nm librpm.a)
>   Does anyone know which lib supports that.
>      Mean while, i was chatting on IRC #liflg on freenode.
>    someone told me Loki_Setup rpm handling code is broken (it does  
> not work).
>    Is it true. it has taken me 3 days to make Loki_Setup to compile
> with rpm support. i am still unsuccessful. any body knows if it is
> true.
> Please do clarify.
> Thanks and Regards,
> Ram
> P.S:
> My Compilation Error Messages:
> make[1]: Entering directory `/home/ram/gu/loki_setup/dialog'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/ram/gu/loki_setup/dialog'
> gcc  -o setup log.o install_log.o detect.o plugins.o network.o
> install.o copy.o file.o loki_launchurl.o main.o  console_ui.o
> dialog_ui.o plugins/libplugins.a  dialog/libdialog.a
> /home/ram/gu/loki_setup/../loki_setupdb/x86/libsetupdb.a
> -L/usr/local/lib -lutil  -Wl,-Bstatic -L/usr/lib -lxml -Wl,-Bdynamic
> -Wl,-Bstatic -lrpm -ldb1 -lpopt   -Wl,-Bdynamic -Wl,-Bstatic -lz
> -Wl,-Bdynamic -lm  -Wl,-Bstatic -lncurses -Wl,-Bdynamic -lgpm
> plugins/libplugins.a(rpm.o)(.text+0xbf): In function `RPMSize':
> /home/ram/gu/loki_setup/plugins/rpm.c:70: undefined reference to  
> `fdio'
> plugins/libplugins.a(rpm.o)(.text+0xec):/home/ram/gu/loki_setup/ 
> plugins/rpm.c:71:
> undefined reference to `rpmReadPackageHeader'
> plugins/libplugins.a(rpm.o)(.text+0xfb):/home/ram/gu/loki_setup/ 
> plugins/rpm.c:73:
> undefined reference to `rpmlogMessage'
> plugins/libplugins.a(rpm.o)(.text+0x260): In function `RPMCopy':
> /home/ram/gu/loki_setup/plugins/rpm.c:104: undefined reference to  
> `fdio'
> plugins/libplugins.a(rpm.o)(.text+0x295):/home/ram/gu/loki_setup/ 
> plugins/rpm.c:105:
> undefined reference to `rpmReadPackageHeader'
> plugins/libplugins.a(rpm.o)(.text+0x30a):/home/ram/gu/loki_setup/ 
> plugins/rpm.c:192:
> undefined reference to `fdio'
> plugins/libplugins.a(rpm.o)(.text+0x366):/home/ram/gu/loki_setup/ 
> plugins/rpm.c:201:
> undefined reference to `fdio'
> plugins/libplugins.a(rpm.o)(.text+0x441):/home/ram/gu/loki_setup/ 
> plugins/rpm.c:230:
> undefined reference to `fdio'
> plugins/libplugins.a(rpm.o)(.text+0x58c):/home/ram/gu/loki_setup/ 
> plugins/rpm.c:199:
> undefined reference to `fdio'
> plugins/libplugins.a(rpm.o)(.text+0x5a0):/home/ram/gu/loki_setup/ 
> plugins/rpm.c:199:
> undefined reference to `bzdopen'
> plugins/libplugins.a(rpm.o)(.text+0xa5c):/home/ram/gu/loki_setup/ 
> plugins/rpm.c:107:
> undefined reference to `rpmlogMessage'
> collect2: ld returned 1 exit status
> make: *** [setup] Error 1

Stéphane Peter
megastep at megastep.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/lokisetup/attachments/20050806/b7e8a333/attachment.htm>

More information about the Lokisetup mailing list